Search in sources :

Example 11 with POSTaggerAnnotator

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());
    }
}
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) Before(org.junit.Before)

Aggregations

POSTaggerAnnotator (edu.stanford.nlp.pipeline.POSTaggerAnnotator)11 ChunkerAnnotator (edu.illinois.cs.cogcomp.chunker.main.ChunkerAnnotator)7 StanfordDepHandler (edu.illinois.cs.cogcomp.pipeline.handlers.StanfordDepHandler)7 POSAnnotator (edu.illinois.cs.cogcomp.pos.POSAnnotator)7 ParserAnnotator (edu.stanford.nlp.pipeline.ParserAnnotator)7 Properties (java.util.Properties)7 ChunkerConfigurator (edu.illinois.cs.cogcomp.chunker.main.ChunkerConfigurator)6 MentionAnnotator (org.cogcomp.md.MentionAnnotator)5 AnnotationPipeline (edu.stanford.nlp.pipeline.AnnotationPipeline)4 TokenizerAnnotator (edu.stanford.nlp.pipeline.TokenizerAnnotator)4 WordsToSentencesAnnotator (edu.stanford.nlp.pipeline.WordsToSentencesAnnotator)4 TextAnnotationBuilder (edu.illinois.cs.cogcomp.annotation.TextAnnotationBuilder)3 TextAnnotation (edu.illinois.cs.cogcomp.core.datastructures.textannotation.TextAnnotation)3 ResourceConfigurator (edu.illinois.cs.cogcomp.core.resources.ResourceConfigurator)3 StatefulTokenizer (edu.illinois.cs.cogcomp.nlp.tokenizer.StatefulTokenizer)3 TokenizerTextAnnotationBuilder (edu.illinois.cs.cogcomp.nlp.utility.TokenizerTextAnnotationBuilder)3 File (java.io.File)3 Datastore (org.cogcomp.Datastore)3 Relation (edu.illinois.cs.cogcomp.core.datastructures.textannotation.Relation)2 IOException (java.io.IOException)2