Example usage for edu.stanford.nlp.pipeline NERCombinerAnnotator NERCombinerAnnotator

List of usage examples for edu.stanford.nlp.pipeline NERCombinerAnnotator NERCombinerAnnotator

Introduction

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

Prototype

public NERCombinerAnnotator(NERClassifierCombiner ner, boolean verbose) 

Source Link

Usage

From source file:org.ets.research.nlp.stanford_thrift.ner.StanfordNERThrift.java

License:Open Source License

public StanfordNERThrift(List<String> nerModels) {
    try {/*w  ww  . ja  v a2 s. c  o  m*/
        String[] models = new String[nerModels.size()];
        nerModels.toArray(models);
        ner = new NERCombinerAnnotator(false, models);
    } catch (Exception e) {
        // TODO
        e.printStackTrace();
    }
}