Uses of Class
opennlp.spellcheck.dictionary.SymSpellModel
Packages that use SymSpellModel
Package
Description
-
Uses of SymSpellModel in opennlp.spellcheck.dictionary
Methods in opennlp.spellcheck.dictionary that return SymSpellModelModifier and TypeMethodDescriptionstatic SymSpellModelSymSpellModels.buildModel(String language, SymSpellConfig config, Charset charset, opennlp.tools.util.InputStreamFactory unigramSource, opennlp.tools.util.InputStreamFactory bigramSource) Builds aSymSpellModelfrom a unigram dictionary and an optional bigram dictionary using the supplied configuration.SymSpellModelSerializer.create(InputStream in) static SymSpellModelSymSpellModels.deserialize(InputStream in) Deserializes a model from the given stream usingSymSpellModelSerializer.static SymSpellModelSymSpellModels.fromBytes(byte[] bytes) Deserializes a model from a byte array.Methods in opennlp.spellcheck.dictionary that return types with arguments of type SymSpellModelModifier and TypeMethodDescriptionSymSpellModelResolver.resolveByLanguage(String language) Resolves a spellcheck model for the given language from the current classpath.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 SymSpellModelModifier and TypeMethodDescriptionstatic PropertiesSymSpellModels.buildProperties(SymSpellModel model, byte[] modelBytes) Builds themodel.propertiesdescriptor for a serialized model, computing themodel.sha256over the supplied binary form.static voidSymSpellModels.serialize(SymSpellModel model, OutputStream out) Serializes a model to the given stream usingSymSpellModelSerializer.voidSymSpellModelSerializer.serialize(SymSpellModel model, OutputStream out) static byte[]SymSpellModels.toBytes(SymSpellModel model) Serializes a model to a byte array.static voidSymSpellModels.writePackage(SymSpellModel model, OutputStream binaryOut, OutputStream propertiesOut) Writes a packaged model pair to the given streams: the binary model and the matchingmodel.properties. -
Uses of SymSpellModel in opennlp.spellcheck.normalizer
Methods in opennlp.spellcheck.normalizer with parameters of type SymSpellModelModifier and TypeMethodDescriptionSpellCheckingCharSequenceNormalizer.builder(SymSpellModel model) Constructors in opennlp.spellcheck.normalizer with parameters of type SymSpellModelModifierConstructorDescriptionCreates a normalizer inSpellCheckingCharSequenceNormalizer.Mode.PER_TOKENmode with default guards from a loadedSymSpellModel(uses the model'sengine). -
Uses of SymSpellModel in opennlp.spellcheck.stream
Constructors in opennlp.spellcheck.stream with parameters of type SymSpellModelModifierConstructorDescriptionSpellCorrectingObjectStream(opennlp.tools.util.ObjectStream<String> samples, SymSpellModel model) Wrapssampleswith a default per-token corrector backed by a loadedSymSpellModel.SpellCorrectingTokenStream(opennlp.tools.util.ObjectStream<String> samples, SymSpellModel model)