use of edu.illinois.cs.cogcomp.annotation.BasicAnnotatorService in project cogcomp-nlp by CogComp.
the class ClauseAnnotatorFactory method buildPipeline.
/**
* @param rm non-default config options
* @return AnnotatorService with specified NLP components
* @throws IOException
* @throws AnnotatorException
*/
public static BasicAnnotatorService buildPipeline(ResourceManager rm) throws IOException, AnnotatorException {
TextAnnotationBuilder taBldr = new TokenizerTextAnnotationBuilder(new StatefulTokenizer(false, false));
Map<String, Annotator> annotators = buildAnnotators();
return new BasicAnnotatorService(taBldr, annotators, rm);
}
Aggregations