Class TokenizerModel

java.lang.Object
opennlp.tools.util.model.BaseModel
opennlp.tools.tokenize.TokenizerModel
All Implemented Interfaces:
Serializable, ArtifactProvider

public final class TokenizerModel extends BaseModel
The TokenizerModel is the model used by a learnable Tokenizer.
See Also:
  • Constructor Details

  • Method Details

    • getFactory

      public TokenizerFactory getFactory()
      Returns:
      Retrieves the active TokenizerFactory.
    • getMaxentModel

      public MaxentModel getMaxentModel()
      Returns:
      Retrieves the model as MaxentModel instance.
    • getAbbreviations

      public Dictionary getAbbreviations()
      Returns:
      Retrieves the active abbreviation Dictionary.
    • useAlphaNumericOptimization

      public boolean useAlphaNumericOptimization()
      Returns:
      true if alphanumeric optimization is active, false otherwise.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object