public interface ViterbiParserWithOptions extends ViterbiParser
null
if no parse exists.Modifier and Type | Method and Description |
---|---|
void |
setOptionFlags(String... flags)
This will set options to a parser, in a way generally equivalent to
passing in the same sequence of command-line arguments.
|
getBestParse
void setOptionFlags(String... flags)
flags
- Arguments to the parser, for example,
{"-outputFormat", "typedDependencies", "-maxLength", "70"}IllegalArgumentException
- If an unknown flag is passed in