def parse_frog(lines):
    """
    Interpret the output of the frog parser.
    Input should be a sequence of lines (i.e. the output of call_frog)
    Result is a sequence of dicts representing the tokens
    """
    sid = 0
    for i, l in enumerate(lines):
        if not l:
            sid += 1
        else:
            print(l.strip())
            parts = l.split('\t')
            tid, token, lemma, morph, pos, conf, ne, _, parent, rel = parts
            if rel:
                rel = rel, int(parent) - 1
            r = dict(id=i, sentence=sid, word=token, lemma=lemma, pos=pos,
                pos_confidence=float(conf), rel=rel)
            if ne != 'O':
                r['ne'] = ne.split('_', 1)[0][2:]
            yield r
