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

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

Introduction

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

Prototype

String DEFAULT_TRUECASE_DISAMBIGUATION_LIST

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

Click Source Link

Usage

From source file:edu.illinois.cs.cogcomp.pipeline.handlers.StanfordTrueCaseHandler.java

License:Open Source License

@Override
public void initialize(ResourceManager rm) {
    Properties props = new Properties();
    props.put("annotators", "tokenize, ssplit, pos, lemma, truecase");
    props.put("truecase.model", DefaultPaths.DEFAULT_TRUECASE_MODEL);
    props.put("truecase.bias", TrueCaseAnnotator.DEFAULT_MODEL_BIAS);
    props.put("truecase.mixedcasefile", DefaultPaths.DEFAULT_TRUECASE_DISAMBIGUATION_LIST);

    this.pipeline = new StanfordCoreNLP(props);
}