edu.stanford.nlp.pipeline
Class CoreMapAttributeAggregator

java.lang.Object
  extended by edu.stanford.nlp.pipeline.CoreMapAttributeAggregator
Direct Known Subclasses:
CoreMapAttributeAggregator.ConcatAggregator, CoreMapAttributeAggregator.ConcatCoreMapListAggregator, CoreMapAttributeAggregator.ConcatListAggregator, CoreMapAttributeAggregator.MostFreqAggregator

public abstract class CoreMapAttributeAggregator
extends java.lang.Object

Functions for aggregating token attributes

Author:
Angel Chang

Nested Class Summary
static class CoreMapAttributeAggregator.ConcatAggregator
           
static class CoreMapAttributeAggregator.ConcatCoreMapListAggregator<T extends CoreMap>
           
static class CoreMapAttributeAggregator.ConcatListAggregator<T>
           
static class CoreMapAttributeAggregator.MostFreqAggregator
           
 
Field Summary
static CoreMapAttributeAggregator CONCAT
           
static CoreMapAttributeAggregator.ConcatCoreMapListAggregator<CoreMap> CONCAT_COREMAP
           
static CoreMapAttributeAggregator.ConcatCoreMapListAggregator<CoreLabel> CONCAT_TOKENS
           
static CoreMapAttributeAggregator COUNT
           
static java.util.Map<java.lang.Class,CoreMapAttributeAggregator> DEFAULT_AGGREGATORS
           
static java.util.Map<java.lang.Class,CoreMapAttributeAggregator> DEFAULT_NUMERIC_AGGREGATORS
           
static java.util.Map<java.lang.Class,CoreMapAttributeAggregator> DEFAULT_NUMERIC_TOKENS_AGGREGATORS
           
static CoreMapAttributeAggregator FIRST
           
static CoreMapAttributeAggregator FIRST_NON_NIL
           
static CoreMapAttributeAggregator LAST
           
static CoreMapAttributeAggregator LAST_NON_NIL
           
static CoreMapAttributeAggregator MAX
           
static CoreMapAttributeAggregator MIN
           
static CoreMapAttributeAggregator MOST_FREQ
           
static CoreMapAttributeAggregator SUM
           
 
Constructor Summary
CoreMapAttributeAggregator()
           
 
Method Summary
abstract  java.lang.Object aggregate(java.lang.Class key, java.util.List<? extends CoreMap> in)
           
static CoreMapAttributeAggregator getAggregator(java.lang.String str)
           
static java.util.Map<java.lang.Class,CoreMapAttributeAggregator> getDefaultAggregators()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIRST_NON_NIL

public static final CoreMapAttributeAggregator FIRST_NON_NIL

FIRST

public static final CoreMapAttributeAggregator FIRST

LAST_NON_NIL

public static final CoreMapAttributeAggregator LAST_NON_NIL

LAST

public static final CoreMapAttributeAggregator LAST

CONCAT_TOKENS

public static final CoreMapAttributeAggregator.ConcatCoreMapListAggregator<CoreLabel> CONCAT_TOKENS

CONCAT_COREMAP

public static final CoreMapAttributeAggregator.ConcatCoreMapListAggregator<CoreMap> CONCAT_COREMAP

CONCAT

public static final CoreMapAttributeAggregator CONCAT

COUNT

public static final CoreMapAttributeAggregator COUNT

SUM

public static final CoreMapAttributeAggregator SUM

MIN

public static final CoreMapAttributeAggregator MIN

MAX

public static final CoreMapAttributeAggregator MAX

MOST_FREQ

public static final CoreMapAttributeAggregator MOST_FREQ

DEFAULT_AGGREGATORS

public static final java.util.Map<java.lang.Class,CoreMapAttributeAggregator> DEFAULT_AGGREGATORS

DEFAULT_NUMERIC_AGGREGATORS

public static final java.util.Map<java.lang.Class,CoreMapAttributeAggregator> DEFAULT_NUMERIC_AGGREGATORS

DEFAULT_NUMERIC_TOKENS_AGGREGATORS

public static final java.util.Map<java.lang.Class,CoreMapAttributeAggregator> DEFAULT_NUMERIC_TOKENS_AGGREGATORS
Constructor Detail

CoreMapAttributeAggregator

public CoreMapAttributeAggregator()
Method Detail

getDefaultAggregators

public static java.util.Map<java.lang.Class,CoreMapAttributeAggregator> getDefaultAggregators()

getAggregator

public static CoreMapAttributeAggregator getAggregator(java.lang.String str)

aggregate

public abstract java.lang.Object aggregate(java.lang.Class key,
                                           java.util.List<? extends CoreMap> in)


Stanford NLP Group