nltk.chunk.ChunkParserI.evaluate

ChunkParserI.evaluate(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 ChunkScore object reflecting the performance of this chunk peraser.

Parameters:gold (list(Tree)) – The list of chunked sentences to score the chunker on.
Return type:ChunkScore