public class CorefFilter extends Object
The standard representation of coreference used internally by Jet is a set of 'entity' Annotations, where each 'entity' annotation has a 'mentions' feature. The value of the 'mentions' feature is an array of Annotations, where each Annotation is of type 'mention' or 'constit'. The mentions in the array are coreferential.
Such a representation using Annotations pointing to other Annotations is not convenient for external (XML) representation. Two other representations are used externally, a numbered-entity representation and a linked-mention representation.
The linked-mention representation was used as the standard for MUC-6
and MUC-6. Each mention is marked by an Annotation
< COREF ID="n1" REF="n2" >
indicating that the mention with ID n2 is the antecedent of the mention
with ID n1.
In the numbered-entity representation, each mention is marked by
an Annotation
< mention entity=entity-ID :gt;
where mentions with the same entity-ID are coreferential.
| Constructor and Description |
|---|
CorefFilter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
buildEntitiesFromLinkedMentions(Document doc)
buildEntitiesFromLinkedMentions takes a Document with annotations
following the MUC standard (linked-mention representation)
coref id=mention-ID ref=prior-mention-ID and generates the internal representation of coreference, with annotations of the form entity mentions=Vector(mentions) |
static void |
buildEntitiesFromMentions(Document doc)
buildEntitiesFromMentions takes a Document with coreference marked
in numbered-entity form, with Annotations
of the form
mention entity=entity-ID where coreferential entities share the same entity-ID, and generates annotations of the form entity mentions=Vector(mentions) |
static void |
buildLinkedMentionsFromEntities(Document doc)
buildLinkedMentionsFromEntities takes a Document with coreference information
in the form of mention attributes on entities and generates Annotations
of the form
COREF ID="n1" REF="n2" over the heads of mentions, where coreferential mentions are linked by having the same entity-ID. |
static void |
buildMentionsFromEntities(Document doc)
buildMentionsFromEntities takes a Document with coreference information
in the form of mention attributes on entities and generates Annotations
of the form
mention entity=entity-ID over the heads of mentions, where coreferential mentions are linked by having the same entity-ID. |
public static void buildEntitiesFromMentions(Document doc)
public static void buildEntitiesFromLinkedMentions(Document doc)
public static void buildMentionsFromEntities(Document doc)
public static void buildLinkedMentionsFromEntities(Document doc)
Copyright © 2016 New York University. All rights reserved.