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