Search in sources :

Example 1 with TokenizerAnnotator

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

the class SUTimeSimpleParser method makeNumericPipeline.

private static AnnotationPipeline makeNumericPipeline() {
    AnnotationPipeline pipeline = new AnnotationPipeline();
    pipeline.addAnnotator(new TokenizerAnnotator(false, "en"));
    pipeline.addAnnotator(new WordsToSentencesAnnotator(false));
    pipeline.addAnnotator(new POSTaggerAnnotator(false));
    pipeline.addAnnotator(new TimeAnnotator(true));
    return pipeline;
}
Also used : POSTaggerAnnotator(edu.stanford.nlp.pipeline.POSTaggerAnnotator) AnnotationPipeline(edu.stanford.nlp.pipeline.AnnotationPipeline) WordsToSentencesAnnotator(edu.stanford.nlp.pipeline.WordsToSentencesAnnotator) TokenizerAnnotator(edu.stanford.nlp.pipeline.TokenizerAnnotator)

Aggregations

AnnotationPipeline (edu.stanford.nlp.pipeline.AnnotationPipeline)1 POSTaggerAnnotator (edu.stanford.nlp.pipeline.POSTaggerAnnotator)1 TokenizerAnnotator (edu.stanford.nlp.pipeline.TokenizerAnnotator)1 WordsToSentencesAnnotator (edu.stanford.nlp.pipeline.WordsToSentencesAnnotator)1