nltk.tree2conllstr()

nltk.tree2conllstr(t)[source]

Return a multiline string where each line contains a word, tag and IOB tag. Convert a tree to the CoNLL IOB string format

Parameters:t (Tree) – The tree to be converted.
Return type:str