public static class MatchedExpression.SingleAnnotationExtractor extends java.lang.Object implements Function<CoreMap,Value>
Modifier and Type | Field and Description |
---|---|
boolean |
includeNested |
java.lang.String |
name |
double |
priority |
Function<MatchedExpression,?> |
resultAnnotationExtractor |
java.util.List<java.lang.Class> |
resultAnnotationField |
java.lang.Class |
resultNestedAnnotationField |
java.util.Map<java.lang.Class,CoreMapAttributeAggregator> |
tokensAggregators |
java.lang.Class |
tokensAnnotationField |
java.util.List<java.lang.Class> |
tokensResultAnnotationField |
Function<CoreMap,Value> |
valueExtractor |
double |
weight |
Constructor and Description |
---|
MatchedExpression.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)
Converts a T1 to a different T2.
|
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 Function<MatchedExpression,?> resultAnnotationExtractor
public java.util.Map<java.lang.Class,CoreMapAttributeAggregator> tokensAggregators
public MatchedExpression.SingleAnnotationExtractor()
public Value apply(CoreMap in)
Function
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)