public class PredicateArgumentView extends View
constituents, endSpan, relations, score, startSpan, textAnnotation, tokensToConstituents, viewGenerator, viewName
Constructor and Description |
---|
PredicateArgumentView(String viewName,
String viewGenerator,
TextAnnotation text,
double score) |
Modifier and Type | Method and Description |
---|---|
void |
addPredicateArguments(Constituent predicate,
List<Constituent> args,
String[] relations,
double[] scores) |
List<Relation> |
getArguments(Constituent predicate) |
String |
getPredicateLemma(Constituent predicate) |
List<Constituent> |
getPredicates() |
String |
getPredicateSense(Constituent predicate) |
String |
toString() |
addConstituent, addRelation, 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 PredicateArgumentView(String viewName, String viewGenerator, TextAnnotation text, double score)
id
- viewName
- viewGenerator
- text
- score
- public void addPredicateArguments(Constituent predicate, List<Constituent> args, String[] relations, double[] scores)
public List<Relation> getArguments(Constituent predicate)
public List<Constituent> getPredicates()
public String getPredicateLemma(Constituent predicate)
public String getPredicateSense(Constituent predicate)
Copyright © 2015. All rights reserved.