List of usage examples for edu.stanford.nlp.tagger.maxent TaggerConfig TaggerConfig
public TaggerConfig(Properties props)
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(); } }