Modifier and Type | Field and Description |
---|---|
static CoreMapAggregator |
DEFAULT_AGGREGATOR |
static CoreMapAggregator |
DEFAULT_NUMERIC_TOKENS_AGGREGATOR |
Constructor and Description |
---|
CoreMapAggregator(Map<Class,CoreMapAttributeAggregator> aggregators) |
CoreMapAggregator(Map<Class,CoreMapAttributeAggregator> aggregators,
Class mergedKey,
CoreLabelTokenFactory tokenFactory) |
Modifier and Type | Method and Description |
---|---|
CoreMap |
apply(List<? extends CoreMap> in) |
static CoreMapAggregator |
getAggregator(Map<Class,CoreMapAttributeAggregator> aggregators) |
static CoreMapAggregator |
getAggregator(Map<Class,CoreMapAttributeAggregator> aggregators,
Class key) |
static CoreMapAggregator |
getAggregator(Map<Class,CoreMapAttributeAggregator> aggregators,
Class key,
CoreLabelTokenFactory tokenFactory) |
static CoreMapAggregator |
getDefaultAggregator() |
CoreMap |
merge(List<? extends CoreMap> in) |
CoreMap |
merge(List<? extends CoreMap> in,
int start,
int end) |
List<CoreMap> |
merge(List<? extends CoreMap> list,
List<? extends HasInterval<Integer>> matched) |
<M> List<CoreMap> |
merge(List<? extends CoreMap> list,
List<M> matched,
Function<M,Interval<Integer>> toIntervalFunc) |
public static final CoreMapAggregator DEFAULT_AGGREGATOR
public static final CoreMapAggregator DEFAULT_NUMERIC_TOKENS_AGGREGATOR
public CoreMapAggregator(Map<Class,CoreMapAttributeAggregator> aggregators)
public CoreMapAggregator(Map<Class,CoreMapAttributeAggregator> aggregators, Class mergedKey, CoreLabelTokenFactory tokenFactory)
public static CoreMapAggregator getDefaultAggregator()
public static CoreMapAggregator getAggregator(Map<Class,CoreMapAttributeAggregator> aggregators)
public static CoreMapAggregator getAggregator(Map<Class,CoreMapAttributeAggregator> aggregators, Class key)
public static CoreMapAggregator getAggregator(Map<Class,CoreMapAttributeAggregator> aggregators, Class key, CoreLabelTokenFactory tokenFactory)
public List<CoreMap> merge(List<? extends CoreMap> list, List<? extends HasInterval<Integer>> matched)