edu.stanford.nlp.pipeline
Class NERCombinerAnnotator

java.lang.Object
  extended by edu.stanford.nlp.pipeline.NERCombinerAnnotator
All Implemented Interfaces:
Annotator

public class NERCombinerAnnotator
extends java.lang.Object
implements Annotator

This class will add NER information to an Annotation using a combination of NER models. It assumes that the Annotation already contains the tokenized words as a List<? extends CoreLabel> or a List<List<? extends CoreLabel>> under Annotation.WORDS_KEY and adds NER information to each CoreLabel, in the CoreLabel.NER_KEY field. It uses the NERClassifierCombiner class in the ie package.

Author:
Jenny Finkel, Mihai Surdeanu (modified it to work with the new NERClassifierCombiner)

Constructor Summary
NERCombinerAnnotator()
           
NERCombinerAnnotator(boolean verbose)
           
NERCombinerAnnotator(boolean verbose, java.lang.String... classifiers)
           
NERCombinerAnnotator(NERClassifierCombiner ner, boolean verbose)
           
 
Method Summary
 void annotate(Annotation annotation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NERCombinerAnnotator

public NERCombinerAnnotator()
                     throws java.io.IOException,
                            java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

NERCombinerAnnotator

public NERCombinerAnnotator(boolean verbose)
                     throws java.io.IOException,
                            java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

NERCombinerAnnotator

public NERCombinerAnnotator(boolean verbose,
                            java.lang.String... classifiers)
                     throws java.io.IOException,
                            java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

NERCombinerAnnotator

public NERCombinerAnnotator(NERClassifierCombiner ner,
                            boolean verbose)
Method Detail

annotate

public void annotate(Annotation annotation)
Specified by:
annotate in interface Annotator


Stanford NLP Group