edu.stanford.nlp.pipeline
Class AnnotatorFactory

java.lang.Object
  extended by edu.stanford.nlp.pipeline.AnnotatorFactory
All Implemented Interfaces:
Factory<Annotator>, java.io.Serializable

public abstract class AnnotatorFactory
extends java.lang.Object
implements Factory<Annotator>

A Factory for creating a certain type of Annotator.

Author:
Mihai Surdeanu
See Also:
Serialized Form

Field Summary
protected  java.util.Properties properties
           
 
Constructor Summary
protected AnnotatorFactory(java.util.Properties properties)
           
 
Method Summary
abstract  Annotator create()
          Creates and returns an Annotator given the local properties.
abstract  java.lang.String signature()
          Creates the annotator's signature given the current properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected final java.util.Properties properties
Constructor Detail

AnnotatorFactory

protected AnnotatorFactory(java.util.Properties properties)
Method Detail

create

public abstract Annotator create()
Creates and returns an Annotator given the local properties.

Specified by:
create in interface Factory<Annotator>
Returns:
A new instance of the type T

signature

public abstract java.lang.String signature()
Creates the annotator's signature given the current properties. We use this to understand if the user wants to recreate the same annotator type but with different parameters.



Stanford NLP Group