# Uses of Class
opennlp.spellcheck.dictionary.SymSpellModel

Packages that use SymSpellModel
Package
Description
opennlp.spellcheck.dictionary
opennlp.spellcheck.normalizer
opennlp.spellcheck.stream

- ## Uses of SymSpellModel in opennlp.spellcheck.dictionary

  Methods in opennlp.spellcheck.dictionary that return SymSpellModel
  Modifier and Type
  Method
  Description
  `static SymSpellModel`
  SymSpellModels.`buildModel(String language, SymSpellConfig config, Charset charset, opennlp.tools.util.InputStreamFactory unigramSource, opennlp.tools.util.InputStreamFactory bigramSource)`
  Builds a `SymSpellModel` from a unigram dictionary and an optional bigram dictionary using the supplied configuration.
  `SymSpellModel`
  SymSpellModelSerializer.`create(InputStream in)`
  `static SymSpellModel`
  SymSpellModels.`deserialize(InputStream in)`
  Deserializes a model from the given stream using `SymSpellModelSerializer`.
  `static SymSpellModel`
  SymSpellModels.`fromBytes(byte[] bytes)`
  Deserializes a model from a byte array.
  Methods in opennlp.spellcheck.dictionary that return types with arguments of type SymSpellModel
  Modifier and Type
  Method
  Description
  `Optional<SymSpellModel>`
  SymSpellModelResolver.`resolveByLanguage(String language)`
  Resolves a spellcheck model for the given language from the current classpath.
  `Optional<SymSpellModel>`
  SymSpellModelResolver.`resolveByLanguage(String language, boolean reloadCache)`
  Resolves a spellcheck model for the given language from the current classpath.
  Methods in opennlp.spellcheck.dictionary with parameters of type SymSpellModel
  Modifier and Type
  Method
  Description
  `static Properties`
  SymSpellModels.`buildProperties(SymSpellModel model, byte[] modelBytes)`
  Builds the `model.properties` descriptor for a serialized model, computing the `model.sha256` over the supplied binary form.
  `static void`
  SymSpellModels.`serialize(SymSpellModel model, OutputStream out)`
  Serializes a model to the given stream using `SymSpellModelSerializer`.
  `void`
  SymSpellModelSerializer.`serialize(SymSpellModel model, OutputStream out)`
  `static byte[]`
  SymSpellModels.`toBytes(SymSpellModel model)`
  Serializes a model to a byte array.
  `static void`
  SymSpellModels.`writePackage(SymSpellModel model, OutputStream binaryOut, OutputStream propertiesOut)`
  Writes a packaged model pair to the given streams: the binary model and the matching `model.properties`.

- ## Uses of SymSpellModel in opennlp.spellcheck.normalizer

  Methods in opennlp.spellcheck.normalizer with parameters of type SymSpellModel
  Modifier and Type
  Method
  Description
  `static SpellCheckingCharSequenceNormalizer.Builder`
  SpellCheckingCharSequenceNormalizer.`builder(SymSpellModel model)`
  Constructors in opennlp.spellcheck.normalizer with parameters of type SymSpellModel
  Modifier
  Constructor
  Description
  ``
  `SpellCheckingCharSequenceNormalizer(SymSpellModel model)`
  Creates a normalizer in `SpellCheckingCharSequenceNormalizer.Mode.PER_TOKEN` mode with default guards from a loaded `SymSpellModel` (uses the model's `engine`).

- ## Uses of SymSpellModel in opennlp.spellcheck.stream

  Constructors in opennlp.spellcheck.stream with parameters of type SymSpellModel
  Modifier
  Constructor
  Description
  ``
  `SpellCorrectingObjectStream(opennlp.tools.util.ObjectStream<String> samples, SymSpellModel model)`
  Wraps `samples` with a default per-token corrector backed by a loaded `SymSpellModel`.
  ``
  `SpellCorrectingTokenStream(opennlp.tools.util.ObjectStream<String> samples, SymSpellModel model)`
  Wraps `samples` with a default corrector (`space` delimited) backed by a loaded `SymSpellModel`.