nltk.chunk.api module¶
- class nltk.chunk.api.ChunkParserI[source]¶
- Bases: - ParserI- A processing interface for identifying non-overlapping groups in unrestricted text. Typically, chunk parsers are used to find base syntactic constituents, such as base noun phrases. Unlike - ParserI,- ChunkParserIguarantees that the- parse()method will always generate a parse.- accuracy(gold)[source]¶
- Score the accuracy of the chunker against the gold standard. Remove the chunking the gold standard text, rechunk it using the chunker, and return a - ChunkScoreobject reflecting the performance of this chunk parser.- Parameters:
- gold (list(Tree)) – The list of chunked sentences to score the chunker on. 
- Return type:
 
 - evaluate(**kwargs)¶
- @deprecated: Use accuracy(gold) instead.