A utility class for scoring chunk parsers. ChunkScore
can
evaluate a chunk parser's output, based on a number of statistics
(precision, recall, f-measure, misssed chunks, incorrect chunks). It can
also combine the scores from the parsing of multiple texts; this makes it
signifigantly easier to evaluate a chunk parser that operates one
sentence at a time.
Texts are evaluated with the
Method Summary |
|
__init__(self,
**kwargs)
|
|
__len__(self)
|
String
|
__repr__ (self)
Return a concise representation of this ChunkScoring . |
String
|
__str__ (self)
Return a verbose representation of this ChunkScoring . |
list of chunks
|
correct (self)
Return the chunks which were included in the correct chunk structures, listed
in input order. |
float
|
f_measure (self,
alpha)
Return the overall F measure for all texts that have been scored by this
ChunkScore . |
list of chunks
|
guessed (self)
Return the chunks which were included in the guessed chunk structures, listed
in input order. |
list of chunks
|
incorrect (self)
Return the chunks which were included in the guessed chunk structures, but
not in the correct chunk structures, listed in input order. |
list of chunks
|
missed (self)
Return the chunks which were included in the correct chunk structures, but
not in the guessed chunk structures, listed in input order. |
float
|
precision (self)
Return the overall precision for all texts that have been scored by this
ChunkScore . |
float
|
recall (self)
Return the overall recall for all texts that have been scored by this
ChunkScore . |
|
score (self,
correct,
guessed)
Given a correctly chunked sentence, score another chunked version of
the same sentence. |
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|