Example usage for edu.stanford.nlp.tagger.maxent TaggerConfig TaggerConfig

List of usage examples for edu.stanford.nlp.tagger.maxent TaggerConfig TaggerConfig

Introduction

In this page you can find the example usage for edu.stanford.nlp.tagger.maxent TaggerConfig TaggerConfig.

Prototype

public TaggerConfig(Properties props) 

Source Link

Usage

From source file:preprocess.POSParser.java

License:Open Source License

public POSParser(String pathResources) {
    pathModel = pathResources + "/" + PARSE_MODEL;

    Properties properties = new Properties();
    properties.setProperty("tokenize", "false");
    properties.setProperty("delimiter", "/");
    properties.setProperty("model", pathModel);

    TaggerConfig configs = new TaggerConfig(properties);
    try {//  w  w  w .  ja  va2  s.  com
        tagger = new MaxentTagger(pathModel, configs);
    } catch (Exception e) {
        e.printStackTrace();

    }

}