Package opennlp.tools.util.featuregen
Class GeneratorFactory.AbstractXmlFeatureGeneratorFactory
- java.lang.Object
-
- opennlp.tools.util.featuregen.GeneratorFactory.AbstractXmlFeatureGeneratorFactory
-
- Direct Known Subclasses:
AggregatedFeatureGeneratorFactory,BigramNameFeatureGeneratorFactory,BrownClusterBigramFeatureGeneratorFactory,BrownClusterTokenClassFeatureGeneratorFactory,BrownClusterTokenFeatureGeneratorFactory,CachedFeatureGeneratorFactory,CharacterNgramFeatureGeneratorFactory,DefinitionFeatureGeneratorFactory,DictionaryFeatureGeneratorFactory,DocumentBeginFeatureGeneratorFactory,PosTaggerFeatureGeneratorFactory,POSTaggerNameFeatureGeneratorFactory,PrefixFeatureGeneratorFactory,PreviousMapFeatureGeneratorFactory,SentenceFeatureGeneratorFactory,SuffixFeatureGeneratorFactory,TokenClassFeatureGeneratorFactory,TokenFeatureGeneratorFactory,TokenPatternFeatureGeneratorFactory,TrigramNameFeatureGeneratorFactory,WindowFeatureGeneratorFactory,WordClusterFeatureGeneratorFactory
- Enclosing class:
- GeneratorFactory
public abstract static class GeneratorFactory.AbstractXmlFeatureGeneratorFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlFeatureGeneratorFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AdaptiveFeatureGeneratorcreate()Map<String,ArtifactSerializer<?>>getArtifactSerializerMapping()booleangetBool(String name)booleangetBool(String name, boolean defValue)doublegetDouble(String name)doublegetDouble(String name, double defValue)floatgetFloat(String name)floatgetFloat(String name, float defValue)intgetInt(String name)intgetInt(String name, int defValue)longgetLong(String name)longgetLong(String name, long defValue)StringgetStr(String name)StringgetStr(String name, String defValue)
-
-
-
Method Detail
-
getArtifactSerializerMapping
public Map<String,ArtifactSerializer<?>> getArtifactSerializerMapping() throws InvalidFormatException
- Throws:
InvalidFormatException
-
getInt
public int getInt(String name) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getInt
public int getInt(String name, int defValue) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getLong
public long getLong(String name) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getLong
public long getLong(String name, long defValue) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getFloat
public float getFloat(String name) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getFloat
public float getFloat(String name, float defValue) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getDouble
public double getDouble(String name) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getDouble
public double getDouble(String name, double defValue) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getStr
public String getStr(String name) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getStr
public String getStr(String name, String defValue) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getBool
public boolean getBool(String name) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getBool
public boolean getBool(String name, boolean defValue) throws InvalidFormatException
- Throws:
InvalidFormatException
-
create
public abstract AdaptiveFeatureGenerator create() throws InvalidFormatException
- Returns:
- null if the subclass uses
resourceManagerto instantiate - Throws:
InvalidFormatException
-
-