nltk.chunk.named_entity module

Named entity chunker

class nltk.chunk.named_entity.NEChunkParserTagger[source]

Bases: nltk.tag.sequential.ClassifierBasedTagger

The IOB tagger used by the chunk parser.

__init__(train)[source]
class nltk.chunk.named_entity.NEChunkParser[source]

Bases: nltk.chunk.api.ChunkParserI

Expected input: list of pos-tagged words

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

Each token should be a pos-tagged word

nltk.chunk.named_entity.shape(word)[source]
nltk.chunk.named_entity.simplify_pos(s)[source]
nltk.chunk.named_entity.postag_tree(tree)[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.cmp_chunks(correct, guessed)[source]
nltk.chunk.named_entity.build_model(fmt='binary')[source]