Example usage for Java edu.stanford.nlp.parser.lexparser LexicalizedParser fields, constructors, methods, implement or subclass
The text is from its open source code.
String | DEFAULT_PARSER_LOC |
Tree | apply(List extends HasWord> words) Parses the list of HasWord. |
Options | getOp() |
LexicalizedParser | getParserFromSerializedFile(String serializedFileOrUrl) |
TreebankLangParserParams | getTLPParams() |
TreePrint | getTreePrint() Return a TreePrint for formatting parsed output trees. |
LexicalizedParser | loadModel(ObjectInputStream ois) Reads one object from the given ObjectInputStream, which is assumed to be a LexicalizedParser. |
LexicalizedParser | loadModel() Construct a new LexicalizedParser object from a previously serialized grammar read from a System property edu.stanford.nlp.SerializedLexicalizedParser , or a default classpath location ( edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz ). |
LexicalizedParser | loadModel(Options op, String... extraFlags) Construct a new LexicalizedParser object from a previously serialized grammar read from a System property edu.stanford.nlp.SerializedLexicalizedParser , or a default classpath location ( edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz ). |
LexicalizedParser | loadModel(String parserFileOrUrl, String... extraFlags) |
LexicalizedParser | loadModel(String parserFileOrUrl, List |
Tree | parse(List extends HasWord> lst) Parses the list of HasWord. |
ParserQuery | parserQuery() |
Tree | parseTree(List extends HasWord> sentence) Similar to parse(), but instead of returning an X tree on failure, returns null. |
void | saveParserToSerialized(String filename) Saves the parser defined by pd to the given filename. |
void | saveParserToTextFile(String filename) Saves the parser defined by pd to the given filename. |
void | setOptionFlags(String... flags) This will set options to the parser, in a way exactly equivalent to passing in the same sequence of command-line arguments. |
TreebankLanguagePack | treebankLanguagePack() |