Uses of Class
opennlp.tools.stemmer.hunspell.HunspellDictionary.AffixFile
Packages that use HunspellDictionary.AffixFile
-
Uses of HunspellDictionary.AffixFile in opennlp.tools.stemmer.hunspell
Methods in opennlp.tools.stemmer.hunspell that return HunspellDictionary.AffixFileModifier and TypeMethodDescriptionprivate static HunspellDictionary.AffixFileHunspellDictionary.parseAffix(String content) Parses the affix file: theFLAGdeclaration, theAFflag alias table, the compound and blocking flag declarations, and thePFXandSFXblocks.Methods in opennlp.tools.stemmer.hunspell with parameters of type HunspellDictionary.AffixFileModifier and TypeMethodDescriptionprivate static intHunspellDictionary.parseAffixBlock(String[][] fieldsByLine, int index, String[] header, HunspellDictionary.AffixFile result) Parses onePFXorSFXblock: the header line naming the flag, the cross-product marker, and the rule count, followed by exactly that many rule lines.HunspellDictionary.parseWordList(String content, HunspellDictionary.AffixFile affix) Parses the word list: an optional leading entry count, then one entry per line consisting of the word, an optional/flagsrun, and optional trailing morphological fields.private static booleanHunspellDictionary.readCompoundSetting(String[] fields, int line, HunspellDictionary.AffixFile result) Reads a compound setting: the size limits, the boundary checks, the syllable rules, and the compound switches.private static booleanHunspellDictionary.readFlagDeclaration(String[] fields, int line, HunspellDictionary.AffixFile result) Reads a directive that declares one flag, such asCOMPOUNDFLAGorNEEDAFFIX.private static voidHunspellDictionary.readGeneralSetting(String[] fields, int line, HunspellDictionary.AffixFile result) Reads a general setting outside compounding: the affix switches, the sharp-s and warning rules, and the language.Constructors in opennlp.tools.stemmer.hunspell with parameters of type HunspellDictionary.AffixFileModifierConstructorDescriptionprivateHunspellDictionary(Map<String, List<int[]>> entries, HunspellDictionary.AffixFile affix, List<HunspellDictionary.UnsupportedDirective> unsupportedDirectives) Initializes the dictionary from the two parsed files.