public class CorefCompare extends Object
| Constructor and Description |
|---|
CorefCompare() |
| Modifier and Type | Method and Description |
|---|---|
static void |
compareCollections(DocumentCollection response,
DocumentCollection key)
compare the entity annotations (coreference) in all documents in
Document Collections 'response' and 'key', updating the documents
in DocumentCollection 'response'.
|
static void |
compareDocuments(Document response,
Document key)
compare the entity annotations (coreference) in Documents
'response' and 'key', updating Document 'response'.
|
public static void compareDocuments(Document response, Document key)
Two mentions are considered the same if their spans (or the spans of their heads, if they have headC attributes) are the same. Two entities are considered the same if they have the same set of mentions ("mentions" attribute).
There are three cases:
public static void compareCollections(DocumentCollection response, DocumentCollection key)
Copyright © 2016 New York University. All rights reserved.