nltk.ChunkParserI¶
-
class
nltk.ChunkParserI[source]¶ 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 theparse()method will always generate a parse.
Methods¶
evaluate(gold) |
Score the accuracy of the chunker against the gold standard. | ||
grammar() |
|
||
parse(tokens) |
Return the best chunk structure for the given tokens and return a tree. | ||
parse_all(sent, *args, **kwargs) |
|
||
parse_one(sent, *args, **kwargs) |
|
||
parse_sents(sents, *args, **kwargs) |
Apply self.parse() to each element of sents. |