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

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

Introduction

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

Prototype

public MorphaAnnotator(boolean verbose) 

Source Link

Usage

From source file:de.tudarmstadt.ukp.dkpro.core.corenlp.CoreNlpLemmatizer.java

License:Open Source License

@Override
public void initialize(UimaContext aContext) throws ResourceInitializationException {
    super.initialize(aContext);

    annotatorProvider = new ModelProviderBase<MorphaAnnotator>(this, "stanfordnlp", "lemma") {
        {// w  ww.  jav  a 2s  . c o  m
            setDefault(LOCATION, NOT_REQUIRED);
        }

        @Override
        protected MorphaAnnotator produceResource(URL aUrl) throws IOException {
            MorphaAnnotator annotator = new MorphaAnnotator(verbose);
            return annotator;
        }
    };
}