nltk.chunk.accuracy()
¶
-
nltk.chunk.
accuracy
(chunker, gold)[source]¶ Score the accuracy of the chunker against the gold standard. Strip the chunk information from the gold standard and rechunk it using the chunker, then compute the accuracy score.
Parameters: - chunker (ChunkParserI) – The chunker being evaluated.
- gold (tree) – The chunk structures to score the chunker on.
Return type: float