nltk.chunk.conlltags2tree

nltk.chunk.conlltags2tree(sentence, chunk_types=('NP', 'PP', 'VP'), root_label='S', strict=False)[source]

Convert the CoNLL IOB format to a tree.