use of edu.stanford.nlp.pipeline.POSTaggerAnnotator in project CoreNLP by stanfordnlp.
the class QuantifiableEntityExtractorITest method setUp.
@Before
public void setUp() throws Exception {
synchronized (QuantifiableEntityExtractorITest.class) {
if (pipeline == null) {
pipeline = new AnnotationPipeline();
pipeline.addAnnotator(new TokenizerAnnotator(false, "en"));
pipeline.addAnnotator(new WordsToSentencesAnnotator(false));
pipeline.addAnnotator(new POSTaggerAnnotator(DefaultPaths.DEFAULT_POS_MODEL, false));
// pipeline.addAnnotator(new QuantifiableEntityNormalizingAnnotator(false, false));
}
extractor = new QuantifiableEntityExtractor();
// extractor.init(new Options());
}
}
Aggregations