Uses of Class opennlp.tools.util.InvalidFormatException (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

## Uses of Class
opennlp.tools.util.InvalidFormatException

- Packages that use InvalidFormatException
  Package | Description
  --- | ---
  opennlp.tools.chunker | Package related to finding non-recursive syntactic annotation such as noun phrase chunks.
  opennlp.tools.cmdline.parser |
  opennlp.tools.dictionary.serializer |
  opennlp.tools.doccat | Package for classifying a document into a category.
  opennlp.tools.formats.muc |
  opennlp.tools.langdetect |
  opennlp.tools.lemmatizer | Package related with the lemmatizer tool
  opennlp.tools.namefind | Package related to finding proper names and numeric amounts.
  opennlp.tools.parser | Package containing common code for performing full syntactic parsing.
  opennlp.tools.postag | Package related to part-of-speech tagging.
  opennlp.tools.sentdetect | Package related to identifying sentece boundries.
  opennlp.tools.tokenize | Contains classes related to finding token or words in a string.
  opennlp.tools.util | Package containing utility data structures and algorithms used by multiple other packages.
  opennlp.tools.util.featuregen | This package contains classes for generating sequence features.
  opennlp.tools.util.model |

- - ### Uses of InvalidFormatException in opennlp.tools.chunker

    Methods in opennlp.tools.chunker that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `static ChunkerFactory` | ChunkerFactory.`create(String subclassName)`
    `void` | ChunkerFactory.`validateArtifactMap()`
    `protected void` | ChunkerModel.`validateArtifactMap()`

    Constructors in opennlp.tools.chunker that throw InvalidFormatException
    Constructor and Description
    `ChunkerModel(File modelFile)`
    `ChunkerModel(InputStream in)`
    `ChunkerModel(Path modelPath)`
    `ChunkerModel(URL modelURL)`

  - ### Uses of InvalidFormatException in opennlp.tools.cmdline.parser

    Methods in opennlp.tools.cmdline.parser that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `protected ParserModel` | ParserModelLoader.`loadModel(InputStream modelIn)`

  - ### Uses of InvalidFormatException in opennlp.tools.dictionary.serializer

    Methods in opennlp.tools.dictionary.serializer that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `void` | EntryInserter.`insert(Entry entry)`

  - ### Uses of InvalidFormatException in opennlp.tools.doccat

    Methods in opennlp.tools.doccat that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `static DoccatFactory` | DoccatFactory.`create(String subclassName, FeatureGenerator[] featureGenerators)`
    `protected void` | DoccatModel.`validateArtifactMap()`
    `void` | DoccatFactory.`validateArtifactMap()`

    Constructors in opennlp.tools.doccat that throw InvalidFormatException
    Constructor and Description
    `NGramFeatureGenerator()` Default constructor for Bi grams
    `NGramFeatureGenerator(int minGram, int maxGram)` Constructor for ngrams.

  - ### Uses of InvalidFormatException in opennlp.tools.formats.muc

    Methods in opennlp.tools.formats.muc that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `void` | SgmlParser.ContentHandler.`characters(CharSequence chars)`
    `void` | SgmlParser.ContentHandler.`endElement(String name)`
    `void` | SgmlParser.ContentHandler.`startElement(String name, Map<String,String> attributes)`
    `void` | MucNameContentHandler.`startElement(String name, Map<String,String> attributes)`

  - ### Uses of InvalidFormatException in opennlp.tools.langdetect

    Methods in opennlp.tools.langdetect that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `static LanguageDetectorFactory` | LanguageDetectorFactory.`create(String subclassName)`
    `protected void` | LanguageDetectorModel.`validateArtifactMap()`
    `void` | LanguageDetectorFactory.`validateArtifactMap()`

  - ### Uses of InvalidFormatException in opennlp.tools.lemmatizer

    Methods in opennlp.tools.lemmatizer that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `static LemmatizerFactory` | LemmatizerFactory.`create(String subclassName)`
    `protected void` | LemmatizerModel.`validateArtifactMap()`
    `void` | LemmatizerFactory.`validateArtifactMap()`

    Constructors in opennlp.tools.lemmatizer that throw InvalidFormatException
    Constructor and Description
    `LemmatizerModel(File modelFile)`
    `LemmatizerModel(InputStream in)`
    `LemmatizerModel(Path modelPath)`
    `LemmatizerModel(URL modelURL)`

  - ### Uses of InvalidFormatException in opennlp.tools.namefind

    Methods in opennlp.tools.namefind that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `static TokenNameFinderFactory` | TokenNameFinderFactory.`create(String subclassName, byte[] featureGeneratorBytes, Map<String,Object> resources, SequenceCodec<String> seqCodec)`
    `void` | TokenNameFinderFactory.`validateArtifactMap()`
    `protected void` | TokenNameFinderModel.`validateArtifactMap()`

  - ### Uses of InvalidFormatException in opennlp.tools.parser

    Methods in opennlp.tools.parser that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | ParserModel.`validateArtifactMap()`

  - ### Uses of InvalidFormatException in opennlp.tools.postag

    Methods in opennlp.tools.postag that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `static POSTaggerFactory` | POSTaggerFactory.`create(String subclassName, byte[] featureGeneratorBytes, Map<String,Object> resources, TagDictionary posDictionary)`
    `static POSTaggerFactory` | POSTaggerFactory.`create(String subclassName, Dictionary ngramDictionary, TagDictionary posDictionary)` Deprecated.
    `static POSSample` | POSSample.`parse(String sentenceString)`
    `void` | POSTaggerFactory.`validateArtifactMap()`
    `protected void` | POSModel.`validateArtifactMap()`
    `protected void` | POSTaggerFactory.`validatePOSDictionary(POSDictionary posDict, AbstractModel posModel)`

  - ### Uses of InvalidFormatException in opennlp.tools.sentdetect

    Methods in opennlp.tools.sentdetect that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `static SentenceDetectorFactory` | SentenceDetectorFactory.`create(String subclassName, String languageCode, boolean useTokenEnd, Dictionary abbreviationDictionary, char[] eosCharacters)`
    `void` | SentenceDetectorFactory.`validateArtifactMap()`
    `protected void` | SentenceModel.`validateArtifactMap()`

  - ### Uses of InvalidFormatException in opennlp.tools.tokenize

    Methods in opennlp.tools.tokenize that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `static TokenizerFactory` | TokenizerFactory.`create(String subclassName, String languageCode, Dictionary abbreviationDictionary, boolean useAlphaNumericOptimization, Pattern alphaNumericPattern)` Factory method the framework uses create a new `TokenizerFactory`.
    `protected void` | TokenizerModel.`validateArtifactMap()`
    `void` | TokenizerFactory.`validateArtifactMap()`

  - ### Uses of InvalidFormatException in opennlp.tools.util

    Methods in opennlp.tools.util that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `static BaseToolFactory` | BaseToolFactory.`create(Class<? extends BaseToolFactory> factoryClass, ArtifactProvider artifactProvider)`
    `static BaseToolFactory` | BaseToolFactory.`create(String subclassName, ArtifactProvider artifactProvider)`
    `abstract void` | BaseToolFactory.`validateArtifactMap()` Validates the parsed artifacts.

  - ### Uses of InvalidFormatException in opennlp.tools.util.featuregen

    Methods in opennlp.tools.util.featuregen that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `abstract AdaptiveFeatureGenerator` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | DocumentBeginFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | DictionaryFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | TokenPatternFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | TokenClassFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | PrefixFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | WordClusterFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | SuffixFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | TrigramNameFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | DefinitionFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | BrownClusterBigramFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | WindowFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | CachedFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | AggregatedFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | BrownClusterTokenClassFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | SentenceFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | PreviousMapFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | POSTaggerNameFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | TokenFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | BrownClusterTokenFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | CharacterNgramFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | BigramNameFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | PosTaggerFeatureGeneratorFactory.`create()`
    `AdaptiveFeatureGenerator` | DictionaryFeatureGeneratorFactory.`create(Element generatorElement, FeatureGeneratorResourceProvider resourceManager)` Deprecated.
    `AdaptiveFeatureGenerator` | WordClusterFeatureGeneratorFactory.`create(Element generatorElement, FeatureGeneratorResourceProvider resourceManager)` Deprecated.
    `AdaptiveFeatureGenerator` | DefinitionFeatureGeneratorFactory.`create(Element generatorElement, FeatureGeneratorResourceProvider resourceManager)` Deprecated.
    `AdaptiveFeatureGenerator` | BrownClusterBigramFeatureGeneratorFactory.`create(Element generatorElement, FeatureGeneratorResourceProvider resourceManager)` Deprecated.
    `AdaptiveFeatureGenerator` | WindowFeatureGeneratorFactory.`create(Element generatorElement, FeatureGeneratorResourceProvider resourceManager)` Deprecated.
    `AdaptiveFeatureGenerator` | CachedFeatureGeneratorFactory.`create(Element generatorElement, FeatureGeneratorResourceProvider resourceManager)` Deprecated.
    `AdaptiveFeatureGenerator` | AggregatedFeatureGeneratorFactory.`create(Element generatorElement, FeatureGeneratorResourceProvider resourceManager)` Deprecated.
    `AdaptiveFeatureGenerator` | BrownClusterTokenClassFeatureGeneratorFactory.`create(Element generatorElement, FeatureGeneratorResourceProvider resourceManager)` Deprecated.
    `AdaptiveFeatureGenerator` | POSTaggerNameFeatureGeneratorFactory.`create(Element generatorElement, FeatureGeneratorResourceProvider resourceManager)` Deprecated.
    `AdaptiveFeatureGenerator` | BrownClusterTokenFeatureGeneratorFactory.`create(Element generatorElement, FeatureGeneratorResourceProvider resourceManager)` Deprecated.
    `AdaptiveFeatureGenerator` | CharacterNgramFeatureGeneratorFactory.`create(Element generatorElement, FeatureGeneratorResourceProvider resourceManager)` Deprecated.
    `Map<String,ArtifactSerializer<?>>` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getArtifactSerializerMapping()`
    `Map<String,ArtifactSerializer<?>>` | DictionaryFeatureGeneratorFactory.`getArtifactSerializerMapping()`
    `Map<String,ArtifactSerializer<?>>` | WordClusterFeatureGeneratorFactory.`getArtifactSerializerMapping()`
    `Map<String,ArtifactSerializer<?>>` | BrownClusterBigramFeatureGeneratorFactory.`getArtifactSerializerMapping()`
    `Map<String,ArtifactSerializer<?>>` | BrownClusterTokenClassFeatureGeneratorFactory.`getArtifactSerializerMapping()`
    `Map<String,ArtifactSerializer<?>>` | POSTaggerNameFeatureGeneratorFactory.`getArtifactSerializerMapping()`
    `Map<String,ArtifactSerializer<?>>` | BrownClusterTokenFeatureGeneratorFactory.`getArtifactSerializerMapping()`
    `boolean` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getBool(String name)`
    `boolean` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getBool(String name, boolean defValue)`
    `double` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getDouble(String name)`
    `double` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getDouble(String name, double defValue)`
    `float` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getFloat(String name)`
    `float` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getFloat(String name, float defValue)`
    `int` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getInt(String name)`
    `int` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getInt(String name, int defValue)`
    `long` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getLong(String name)`
    `long` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getLong(String name, long defValue)`
    `String` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getStr(String name)`
    `String` | GeneratorFactory.AbstractXmlFeatureGeneratorFactory.`getStr(String name, String defValue)`
    `abstract void` | CustomFeatureGenerator.`init(Map<String,String> properties, FeatureGeneratorResourceProvider resourceProvider)` Deprecated. Initialized the Custom Feature Generator with defined properties and loaded resources.

  - ### Uses of InvalidFormatException in opennlp.tools.util.model

    Methods in opennlp.tools.util.model that throw InvalidFormatException
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | BaseModel.`validateArtifactMap()` Validates the parsed artifacts.

Copyright © 2026 The Apache Software Foundation. All rights reserved.