Package opennlp.morfologik.builder
Klasse MorfologikDictionaryBuilder
java.lang.Object
opennlp.morfologik.builder.MorfologikDictionaryBuilder
Utility class to build Morfologik dictionaries from a tab separated
values file.
The first column is the word, the second its lemma and the third a POS tag (base,inflected,tag). If there is no lemma information leave the second column empty.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Konstruktordetails
-
MorfologikDictionaryBuilder
public MorfologikDictionaryBuilder()
-
-
Methodendetails
-
build
public Path build(Path input, boolean overwrite, boolean validate, boolean acceptBom, boolean acceptCr, boolean ignoreEmpty) throws Exception Helper to compile a morphological dictionary automaton.- Parameter:
input
- Theinput file
(base,inflected,tag). An associated metadata (*.info
) file must exist.overwrite
- Whether to overwrite the output file if it exists, or not.validate
- Whether to validate input to make sure it makes sense.acceptBom
- Whether to accept leading BOM bytes (UTF-8), or not.acceptCr
- Whether to accept CR bytes in input sequences (\r
), or not.ignoreEmpty
- Whether to ignore empty lines in the input, or not.- Gibt zurück:
- The resulting dictionary
Path
. - Löst aus:
Exception
- Thrown if errors occurred during dictionary compilation.
-
build
Helper to compile a morphological dictionary automaton using default parameters.- Parameter:
input
- Theinput file
(base,inflected,tag). An associated metadata (*.info
) file must exist.- Gibt zurück:
- The resulting dictionary
Path
. - Löst aus:
Exception
- Thrown if errors occurred during dictionary compilation.
-