public class CorefScorer extends DocumentScorer
Mentions in the response and key files are aligned based on the final character of the head of the mentions.
| Modifier and Type | Field and Description |
|---|---|
int |
mappedMentionCount
number of mentions in current response Document which have a corresponding
mention in key Document (a mention whose head ends at the same position).
|
int |
overallMappedMentionCount
number of corresponding mentions in all documents processed by this
instance of CorefScorer.
|
float |
overallPrecision
coreference link precison for all documents processed by this instance
of CorefScorer.
|
float |
overallRecall
coreference link recall for all documents processed by this instance
of CorefScorer.
|
float |
precision
coreference link precision for the most recently processed document.
|
float |
recall
coreference link recall for the most recently processed document.
|
| Constructor and Description |
|---|
CorefScorer()
create a new coreference scorer.
|
| Modifier and Type | Method and Description |
|---|---|
static Vector |
findMentions(Document doc)
return a Vector of all the mentions in the document (the union of
the 'mentions' feature of all entities).
|
static void |
main(String[] args) |
void |
report()
writes to standard output a report on the most recently
scored document.
|
void |
score(Document responseDoc,
Document keyDoc)
compare the two documents,
responseDoc and
keyDoc, setting recall and
precision. |
void |
summary()
writes to standard output a report on the overall accuracy
for all documents processed so far.
|
public float recall
public float precision
public float overallRecall
public float overallPrecision
public int mappedMentionCount
public int overallMappedMentionCount
public void score(Document responseDoc, Document keyDoc)
responseDoc and
keyDoc, setting recall and
precision.score in class DocumentScorerpublic static Vector findMentions(Document doc)
public void report()
report in class DocumentScorerpublic void summary()
summary in class DocumentScorerpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2016 New York University. All rights reserved.