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 SummaryConstructors Constructor Description AbstractXmlFeatureGeneratorFactory()
 - 
Method SummaryAll 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- 
getArtifactSerializerMappingpublic Map<String,ArtifactSerializer<?>> getArtifactSerializerMapping() throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getIntpublic int getInt(String name) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getIntpublic int getInt(String name, int defValue) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getLongpublic long getLong(String name) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getLongpublic long getLong(String name, long defValue) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getFloatpublic float getFloat(String name) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getFloatpublic float getFloat(String name, float defValue) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getDoublepublic double getDouble(String name) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getDoublepublic double getDouble(String name, double defValue) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getStrpublic String getStr(String name) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getStrpublic String getStr(String name, String defValue) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getBoolpublic boolean getBool(String name) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getBoolpublic boolean getBool(String name, boolean defValue) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
createpublic abstract AdaptiveFeatureGenerator create() throws InvalidFormatException - Returns:
- null if the subclass uses resourceManagerto instantiate
- Throws:
- InvalidFormatException
 
 
- 
 
-