public class CoreferenceView extends View
Modifier and Type | Field and Description |
---|---|
protected gnu.trove.map.hash.TIntIntHashMap |
canonicalEntitiesMap |
constituents, endSpan, relations, score, startSpan, textAnnotation, tokensToConstituents, viewGenerator, viewName
Constructor and Description |
---|
CoreferenceView(String viewName,
String viewGenerator,
TextAnnotation text,
double score) |
Modifier and Type | Method and Description |
---|---|
void |
addConstituent(Constituent constituent)
Adds a new constituent to this view
|
void |
addCorefEdges(Constituent canonicalMention,
List<Constituent> coreferentMentions,
double[] scores) |
void |
addRelation(Relation relation)
Adds a new relation to this view.
|
Set<Constituent> |
getCanonicalEntities() |
Constituent |
getCanonicalEntity(Constituent c) |
List<Constituent> |
getCoreferentMentions(Constituent mention) |
String |
toString() |
containsConstituent, count, getConstituents, getConstituentsCovering, getConstituentsCoveringSpan, getConstituentsCoveringToken, getConstituentsCoveringTokens, getEndSpan, getFilteredConstituents, getLabelsCovering, getLabelsCoveringSpan, getLabelsCoveringToken, getLabelsCoveringTokens, getNumberOfConstituents, getRelations, getRestrictedView, getScore, getStartSpan, getTextAnnotation, getViewCoveringSpan, getViewCoveringToken, getViewCoveringTokens, getViewGenerator, getViewName, iterator, orderBy, select, unique, where
public CoreferenceView(String viewName, String viewGenerator, TextAnnotation text, double score)
id
- viewName
- viewGenerator
- text
- score
- public void addConstituent(Constituent constituent)
View
addConstituent
in class View
constituent
- The new constituent to be added.public void addRelation(Relation relation)
View
addRelation
in class View
relation
- The relation to be addedpublic void addCorefEdges(Constituent canonicalMention, List<Constituent> coreferentMentions, double[] scores)
public Set<Constituent> getCanonicalEntities()
public Constituent getCanonicalEntity(Constituent c)
public List<Constituent> getCoreferentMentions(Constituent mention)
Copyright © 2015. All rights reserved.