Package edu.stanford.nlp.pipeline

Examples of edu.stanford.nlp.pipeline.AnnotationPipeline


          throw new AssertionError("Parser required tagger, but failed to find the pos annotator");
        }
        List<Annotator> annotators = Generics.newArrayList();
        annotators.add(tagger);
        annotators.add(parser);       
        parserProcessor = new AnnotationPipeline(annotators);
      } else {
        parserProcessor = parser;
      }
    }
    return parserProcessor;
View Full Code Here


    pipeline = makeNumericPipeline();
    cache = Generics.newHashMap();
  }

  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;
  }
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.pipeline.AnnotationPipeline

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.