Example usage for edu.stanford.nlp.pipeline DefaultPaths DEFAULT_PARSER_MODEL

List of usage examples for edu.stanford.nlp.pipeline DefaultPaths DEFAULT_PARSER_MODEL

Introduction

In this page you can find the example usage for edu.stanford.nlp.pipeline DefaultPaths DEFAULT_PARSER_MODEL.

Prototype

String DEFAULT_PARSER_MODEL

To view the source code for edu.stanford.nlp.pipeline DefaultPaths DEFAULT_PARSER_MODEL.

Click Source Link

Usage

From source file:org.ets.research.nlp.stanford_thrift.parser.StanfordParserThrift.java

License:Open Source License

private void loadModel(String modelFile) {
    if (modelFile.equals("") || modelFile == null) {
        parser = LexicalizedParser.loadModel(DefaultPaths.DEFAULT_PARSER_MODEL, new String[] {});
    } else {/*from w ww. j a  va2 s.  c o m*/
        parser = LexicalizedParser.loadModel(modelFile, new String[] {});
    }
}