public class SGMLScorer extends Object
SGMLScorer class analyzes the agreement of two Documents
according to one type of their annotations. More specifically, it compares
an automatically generated response Document with a key Document, reporting
the recall and precision of the response file relative to the key file.
It also highlights the annotations which differ in the two files.| Modifier and Type | Field and Description |
|---|---|
Document |
doc1 |
Document |
doc2 |
Vector |
mismatch1 |
Vector |
mismatch2 |
int |
numOfMatchingAttrs |
int |
numOfMatchingTags |
int |
numOfTagsInDoc1 |
int |
numOfTagsInDoc2 |
int |
totalMatchingAttrs |
int |
totalMatchingTags |
int |
totalTagsInDoc1 |
int |
totalTagsInDoc2 |
| Constructor and Description |
|---|
SGMLScorer(Document doc1,
Document doc2)
Construct an
SGMLScorer to compare two Documents. |
| Modifier and Type | Method and Description |
|---|---|
void |
match(String annType)
Compares documents
doc1 and doc2 with respect to
annotations of type annType. |
void |
match(String annType1,
String annType2)
Compares annotations of type
annType1 of document doc1
with annotations of type annType2 of document doc2. |
void |
match(String annType1,
String annType2,
Span span) |
String |
report() |
public Document doc1
public Document doc2
public Vector mismatch1
public Vector mismatch2
public int numOfTagsInDoc1
public int numOfTagsInDoc2
public int numOfMatchingTags
public int numOfMatchingAttrs
public int totalTagsInDoc1
public int totalTagsInDoc2
public int totalMatchingTags
public int totalMatchingAttrs
public void match(String annType)
doc1 and doc2 with respect to
annotations of type annType.public void match(String annType1, String annType2)
annType1 of document doc1
with annotations of type annType2 of document doc2.public String report()
Copyright © 2016 New York University. All rights reserved.