public class MorfologikDictionayBuilder extends Object
Constructor and Description |
---|
MorfologikDictionayBuilder() |
Modifier and Type | Method and Description |
---|---|
Path |
build(Path input)
Helper to compile a morphological dictionary automaton using default
parameters.
|
Path |
build(Path input,
boolean overwrite,
boolean validate,
boolean acceptBom,
boolean acceptCr,
boolean ignoreEmpty)
Helper to compile a morphological dictionary automaton.
|
public Path build(Path input, boolean overwrite, boolean validate, boolean acceptBom, boolean acceptCr, boolean ignoreEmpty) throws Exception
input
- The input file (base,inflected,tag). An associated metadata
(*.info) file must exist.overwrite
- Overwrite the output file if it exists.validate
- Validate input to make sure it makes sense.acceptBom
- Accept leading BOM bytes (UTF-8).acceptCr
- Accept CR bytes in input sequences (\r).ignoreEmpty
- Ignore empty lines in the input.Exception
Copyright © 2017 The Apache Software Foundation. All rights reserved.