Package morfologik.tools
Class DictApply
- java.lang.Object
-
- morfologik.tools.CliTool
-
- morfologik.tools.DictApply
-
- All Implemented Interfaces:
java.util.concurrent.Callable<ExitStatus>
public class DictApply extends CliTool
Applies a morphological dictionary automaton to the input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
DictApply.LineSupplier
private class
DictApply.ReaderLineSupplier
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
ARG_ENCODING
private java.nio.file.Path
dictionary
private java.nio.file.Path
input
private java.lang.String
inputEncoding
private boolean
skipTags
-
Fields inherited from class morfologik.tools.CliTool
ARG_OVERWRITE, ARG_VALIDATE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExitStatus
call()
private DictApply.LineSupplier
determineInput()
static void
main(java.lang.String[] args)
private ExitStatus
validateArguments()
-
Methods inherited from class morfologik.tools.CliTool
checkNotNull, main, main, printf, setCallSystemExit
-
-
-
-
Field Detail
-
ARG_ENCODING
private static final java.lang.String ARG_ENCODING
- See Also:
- Constant Field Values
-
input
private java.nio.file.Path input
-
dictionary
private java.nio.file.Path dictionary
-
inputEncoding
private java.lang.String inputEncoding
-
skipTags
private boolean skipTags
-
-
Method Detail
-
call
public ExitStatus call() throws java.lang.Exception
- Throws:
java.lang.Exception
-
determineInput
private DictApply.LineSupplier determineInput() throws java.io.IOException
- Throws:
java.io.IOException
-
validateArguments
private ExitStatus validateArguments()
-
main
public static void main(java.lang.String[] args)
-
-