public class PredicateArgumentView extends View
| Modifier and Type | Field and Description |
|---|---|
static String |
LemmaIdentifier |
static String |
SenseIdentifer |
constituents, endSpan, relations, score, startSpan, textAnnotation, tokensToConstituents, viewGenerator, viewName| Constructor and Description |
|---|
PredicateArgumentView(String viewName,
String viewGenerator,
TextAnnotation text,
double score) |
PredicateArgumentView(String viewName,
TextAnnotation text)
Create a new PredicateArgumentView with default
View.viewGenerator and View.score. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPredicateArguments(Constituent predicate,
List<Constituent> args,
String[] relations,
double[] scores) |
void |
findPredicates()
force update of 'predicates' field.
|
List<Relation> |
getArguments(Constituent predicate) |
String |
getPredicateLemma(Constituent predicate) |
List<Constituent> |
getPredicates() |
String |
getPredicateSense(Constituent predicate) |
void |
removeAllConsituents() |
String |
toString() |
addConstituent, addRelation, containsConstituent, count, getConstituents, getConstituentsCovering, getConstituentsCoveringCharSpan, getConstituentsCoveringSpan, getConstituentsCoveringToken, getConstituentsCoveringTokens, getConstituentsOverlappingCharSpan, getConstituentsWithSpan, getEndSpan, getFilteredConstituents, getLabelsCovering, getLabelsCoveringSpan, getLabelsCoveringToken, getLabelsCoveringTokens, getNumberOfConstituents, getRelations, getRestrictedView, getScore, getStartSpan, getTextAnnotation, getViewCoveringSpan, getViewCoveringToken, getViewCoveringTokens, getViewGenerator, getViewName, iterator, orderBy, removeAllRelations, removeAttributes, removeConstituent, removeRelation, select, unique, whereclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String LemmaIdentifier
public static final String SenseIdentifer
public PredicateArgumentView(String viewName, TextAnnotation text)
View.viewGenerator and View.score.viewName - the name of the viewtext - the TextAnnotation to augmentpublic PredicateArgumentView(String viewName, String viewGenerator, TextAnnotation text, double score)
public void addPredicateArguments(Constituent predicate, List<Constituent> args, String[] relations, double[] scores)
public void findPredicates()
public List<Relation> getArguments(Constituent predicate)
public List<Constituent> getPredicates()
public String getPredicateLemma(Constituent predicate)
public String getPredicateSense(Constituent predicate)
public void removeAllConsituents()
removeAllConsituents in class ViewCopyright © 2017. All rights reserved.