Search in sources :

Example 1 with NumberAnnotator

use of edu.stanford.nlp.pipeline.NumberAnnotator in project CoreNLP by stanfordnlp.

the class TokenSequenceMatcherITest method setUp.

@Before
public void setUp() throws Exception {
    synchronized (TokenSequenceMatcherITest.class) {
        if (pipeline == null) {
            pipeline = new AnnotationPipeline();
            pipeline.addAnnotator(new TokenizerAnnotator(false, "en", "invertible,splitHyphenated=false"));
            pipeline.addAnnotator(new WordsToSentencesAnnotator(false));
            pipeline.addAnnotator(new POSTaggerAnnotator(false));
            pipeline.addAnnotator(new NumberAnnotator(false, false));
        // pipeline.addAnnotator(new QuantifiableEntityNormalizingAnnotator(false));
        }
    }
}
Also used : POSTaggerAnnotator(edu.stanford.nlp.pipeline.POSTaggerAnnotator) AnnotationPipeline(edu.stanford.nlp.pipeline.AnnotationPipeline) WordsToSentencesAnnotator(edu.stanford.nlp.pipeline.WordsToSentencesAnnotator) NumberAnnotator(edu.stanford.nlp.pipeline.NumberAnnotator) TokenizerAnnotator(edu.stanford.nlp.pipeline.TokenizerAnnotator) Before(org.junit.Before)

Aggregations

AnnotationPipeline (edu.stanford.nlp.pipeline.AnnotationPipeline)1 NumberAnnotator (edu.stanford.nlp.pipeline.NumberAnnotator)1 POSTaggerAnnotator (edu.stanford.nlp.pipeline.POSTaggerAnnotator)1 TokenizerAnnotator (edu.stanford.nlp.pipeline.TokenizerAnnotator)1 WordsToSentencesAnnotator (edu.stanford.nlp.pipeline.WordsToSentencesAnnotator)1 Before (org.junit.Before)1