Class SymSpell
java.lang.Object
org.languagetool.rules.spelling.symspell.implementation.SymSpell
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSymSpell(int initialCapacity, int maxDictionaryEditDistance, int prefixLength, int countThreshold) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommitStaged(SuggestionStage staging) booleancreateDictionary(String corpus) booleancreateDictionaryEntry(String key, long count, SuggestionStage staging) booleanloadDictionary(BufferedReader br, int termIndex, int countIndex) booleanloadDictionary(InputStream corpus, int termIndex, int countIndex) booleanloadDictionary(String corpus, int termIndex, int countIndex) lookup(String input, SymSpell.Verbosity verbosity) lookup(String input, SymSpell.Verbosity verbosity, int maxEditDistance) lookupCompound(String input) lookupCompound(String input, int maxEditDistance) voidorg.languagetool.rules.spelling.symspell.implementation.SymSpell.SegmentedSuggestionwordSegmentation(String input) org.languagetool.rules.spelling.symspell.implementation.SymSpell.SegmentedSuggestionwordSegmentation(String input, int maxEditDistance) org.languagetool.rules.spelling.symspell.implementation.SymSpell.SegmentedSuggestionwordSegmentation(String input, int maxEditDistance, int maxSegmentationWordLength)
-
Constructor Details
-
SymSpell
public SymSpell(int initialCapacity, int maxDictionaryEditDistance, int prefixLength, int countThreshold)
-
-
Method Details
-
createDictionaryEntry
-
loadDictionary
-
loadDictionary
-
loadDictionary
-
createDictionary
-
purgeBelowThresholdWords
public void purgeBelowThresholdWords() -
commitStaged
-
lookup
-
lookup
-
lookupCompound
-
lookupCompound
-
wordSegmentation
public org.languagetool.rules.spelling.symspell.implementation.SymSpell.SegmentedSuggestion wordSegmentation(String input) -
wordSegmentation
public org.languagetool.rules.spelling.symspell.implementation.SymSpell.SegmentedSuggestion wordSegmentation(String input, int maxEditDistance) -
wordSegmentation
public org.languagetool.rules.spelling.symspell.implementation.SymSpell.SegmentedSuggestion wordSegmentation(String input, int maxEditDistance, int maxSegmentationWordLength)
-