def get_paragraphs(doc):
    """Return list of paragraph values of sentences, assuming each line is one paragraph."""
    par = [0] * len(list(doc.sents))
    lines = doc.text.splitlines()
    for idx, line in enumerate(lines):
        for id2, s in enumerate(doc._.sentences):
            if str(s) in line:
                par[id2] = idx
    return par