public static class MatchedExpression.SingleAnnotationExtractor extends Object implements Function<CoreMap,Value>
Modifier and Type | Field and Description |
---|---|
Function<MatchedExpression,Value> |
expressionToValue |
boolean |
includeNested |
String |
name |
double |
priority |
Function<MatchedExpression,?> |
resultAnnotationExtractor |
List<Class> |
resultAnnotationField |
Class |
resultNestedAnnotationField |
CoreMapAggregator |
tokensAggregator |
Class |
tokensAnnotationField |
List<Class> |
tokensResultAnnotationField |
Function<CoreMap,Value> |
valueExtractor |
double |
weight |
Constructor and Description |
---|
SingleAnnotationExtractor() |
Modifier and Type | Method and Description |
---|---|
void |
annotate(MatchedExpression matchedExpression) |
void |
annotate(MatchedExpression matchedExpression,
List<? extends CoreMap> nested) |
Value |
apply(CoreMap in) |
MatchedExpression |
createMatchedExpression(Interval<Integer> charOffsets,
Interval<Integer> tokenOffsets) |
public String name
public double priority
public double weight
public Class tokensAnnotationField
public Class resultNestedAnnotationField
public boolean includeNested
public Function<MatchedExpression,Value> expressionToValue
public Function<MatchedExpression,?> resultAnnotationExtractor
public CoreMapAggregator tokensAggregator
public void annotate(MatchedExpression matchedExpression, List<? extends CoreMap> nested)
public void annotate(MatchedExpression matchedExpression)
public MatchedExpression createMatchedExpression(Interval<Integer> charOffsets, Interval<Integer> tokenOffsets)