Package opennlp.tools.stemmer.hunspell
Class HunspellAffixTable
java.lang.Object
opennlp.tools.stemmer.hunspell.HunspellAffixTable
Affix tables with entry counts and source locations for validation errors.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final recordAn entry including the directive name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static List<HunspellAffixTable.Entry> Checks a table header, entry count, and field counts.
-
Constructor Details
-
HunspellAffixTable
private HunspellAffixTable()Prevents construction.
-
-
Method Details
-
read
static List<HunspellAffixTable.Entry> read(String[][] lines, String tag, int minimumFields, int maximumFields) throws IOException Checks a table header, entry count, and field counts.- Parameters:
lines- The tokenized affix content.tag- The table directive.minimumFields- The minimum fields in an entry, including the directive.maximumFields- The maximum fields in an entry, including the directive.- Returns:
- The entries, or null if the file has no declaration for this table.
- Throws:
IOException- Thrown if the header, entries, or count is invalid.
-