public static class MatchedExpression.SingleAnnotationExtractor extends Object implements java.util.function.Function<CoreMap,Value>
| Modifier and Type | Field and Description |
|---|---|
boolean |
includeNested |
String |
name |
double |
priority |
java.util.function.Function<MatchedExpression,?> |
resultAnnotationExtractor |
List<Class> |
resultAnnotationField |
Class |
resultNestedAnnotationField |
Map<Class,CoreMapAttributeAggregator> |
tokensAggregators |
Class |
tokensAnnotationField |
List<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,
List<? extends CoreMap> nested) |
Value |
apply(CoreMap in) |
MatchedExpression |
createMatchedExpression(Interval<Integer> charOffsets,
Interval<Integer> tokenOffsets) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, compose, identitypublic String name
public double priority
public double weight
public Class tokensAnnotationField
public Class resultNestedAnnotationField
public boolean includeNested
public java.util.function.Function<CoreMap,Value> valueExtractor
public java.util.function.Function<MatchedExpression,?> resultAnnotationExtractor
public Map<Class,CoreMapAttributeAggregator> tokensAggregators
public Value apply(CoreMap in)
apply in interface java.util.function.Function<CoreMap,Value>public void annotate(MatchedExpression matchedExpression, List<? extends CoreMap> nested)
public void annotate(MatchedExpression matchedExpression)
public MatchedExpression createMatchedExpression(Interval<Integer> charOffsets, Interval<Integer> tokenOffsets)