nltk.chunk.ieerstr2tree()

nltk.chunk.ieerstr2tree(s, chunk_types=[u'LOCATION', u'ORGANIZATION', u'PERSON', u'DURATION', u'DATE', u'CARDINAL', u'PERCENT', u'MONEY', u'MEASURE'], root_label=u'S')[source]

Return a chunk structure containing the chunked tagged text that is encoded in the given IEER style string. Convert a string of chunked tagged text in the IEER named entity format into a chunk structure. Chunks are of several types, LOCATION, ORGANIZATION, PERSON, DURATION, DATE, CARDINAL, PERCENT, MONEY, and MEASURE.

Return type:Tree