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 java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlFeatureGeneratorFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AdaptiveFeatureGenerator
create()
java.util.Map<java.lang.String,ArtifactSerializer<?>>
getArtifactSerializerMapping()
boolean
getBool(java.lang.String name)
boolean
getBool(java.lang.String name, boolean defValue)
double
getDouble(java.lang.String name)
double
getDouble(java.lang.String name, double defValue)
float
getFloat(java.lang.String name)
float
getFloat(java.lang.String name, float defValue)
int
getInt(java.lang.String name)
int
getInt(java.lang.String name, int defValue)
long
getLong(java.lang.String name)
long
getLong(java.lang.String name, long defValue)
java.lang.String
getStr(java.lang.String name)
java.lang.String
getStr(java.lang.String name, java.lang.String defValue)
-
-
-
Method Detail
-
getArtifactSerializerMapping
public java.util.Map<java.lang.String,ArtifactSerializer<?>> getArtifactSerializerMapping() throws InvalidFormatException
- Throws:
InvalidFormatException
-
getInt
public int getInt(java.lang.String name) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getInt
public int getInt(java.lang.String name, int defValue) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getLong
public long getLong(java.lang.String name) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getLong
public long getLong(java.lang.String name, long defValue) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getFloat
public float getFloat(java.lang.String name) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getFloat
public float getFloat(java.lang.String name, float defValue) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getDouble
public double getDouble(java.lang.String name) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getDouble
public double getDouble(java.lang.String name, double defValue) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getStr
public java.lang.String getStr(java.lang.String name) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getStr
public java.lang.String getStr(java.lang.String name, java.lang.String defValue) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getBool
public boolean getBool(java.lang.String name) throws InvalidFormatException
- Throws:
InvalidFormatException
-
getBool
public boolean getBool(java.lang.String name, boolean defValue) throws InvalidFormatException
- Throws:
InvalidFormatException
-
create
public abstract AdaptiveFeatureGenerator create() throws InvalidFormatException
- Returns:
- null if the subclass uses
resourceManager
to instantiate - Throws:
InvalidFormatException
-
-