nltk.chunk.named_entity module

Named entity chunker

class nltk.chunk.named_entity.NEChunkParser[source]

Bases: ChunkParserI

Expected input: list of pos-tagged words

__init__(train)[source]
parse(tokens)[source]

Each token should be a pos-tagged word

class nltk.chunk.named_entity.NEChunkParserTagger[source]

Bases: ClassifierBasedTagger

The IOB tagger used by the chunk parser.

__init__(train)[source]
nltk.chunk.named_entity.build_model(fmt='binary')[source]
nltk.chunk.named_entity.cmp_chunks(correct, guessed)[source]
nltk.chunk.named_entity.load_ace_data(roots, fmt='binary', skip_bnews=True)[source]
nltk.chunk.named_entity.load_ace_file(textfile, fmt)[source]
nltk.chunk.named_entity.postag_tree(tree)[source]
nltk.chunk.named_entity.shape(word)[source]
nltk.chunk.named_entity.simplify_pos(s)[source]