public static class MatchedExpression.SingleAnnotationExtractor extends Object implements Function<CoreMap,Value>
| Modifier and Type | Field and Description |
|---|---|
boolean |
includeNested |
String |
name |
double |
priority |
Function<MatchedExpression,?> |
resultAnnotationExtractor |
List<Class> |
resultAnnotationField |
Class |
resultNestedAnnotationField |
Map<Class,CoreMapAttributeAggregator> |
tokensAggregators |
Class |
tokensAnnotationField |
List<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,
List<? extends CoreMap> nested) |
Value |
apply(CoreMap in)
Converts a T1 to a different T2.
|
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,?> resultAnnotationExtractor
public Map<Class,CoreMapAttributeAggregator> tokensAggregators
public MatchedExpression.SingleAnnotationExtractor()
public Value apply(CoreMap in)
Functionpublic void annotate(MatchedExpression matchedExpression, List<? extends CoreMap> nested)
public void annotate(MatchedExpression matchedExpression)
public MatchedExpression createMatchedExpression(Interval<Integer> charOffsets, Interval<Integer> tokenOffsets)