nltk.chunk.RegexpChunkParser.evaluate

RegexpChunkParser.evaluate(gold)

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