csli.util.nlp
Class PoSTaggerFactory

java.lang.Object
  extended by csli.util.nlp.PoSTaggerFactory

public class PoSTaggerFactory
extends Object

A factory that returns a part-of-speech tagger.


Field Summary
static String DEFAULT_KEY
           
 
Constructor Summary
PoSTaggerFactory()
           
 
Method Summary
static PoSTagger getNewTagger()
          Get a new PoS-tagger of the class specified by the default util.nlp.tagger config key
static PoSTagger getNewTagger(String key)
          Get a new PoS-tagger of the class specified by the given config key OR class name
static PoSTagger getTagger()
          Get the static instance of the default PoS-tagger; if none exists, a new one will be created, of the class specified by the default util.nlp.tagger config key
static PoSTagger getTagger(String key)
          Get the static instance of the POS-tagger associated with the given config key OR class name; if none exists, create a new one
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_KEY

public static final String DEFAULT_KEY
See Also:
Constant Field Values
Constructor Detail

PoSTaggerFactory

public PoSTaggerFactory()
Method Detail

getTagger

public static PoSTagger getTagger()
Get the static instance of the default PoS-tagger; if none exists, a new one will be created, of the class specified by the default util.nlp.tagger config key

Returns:
null if the key doesn't exist, class can't be instantiated etc.

getTagger

public static PoSTagger getTagger(String key)
Get the static instance of the POS-tagger associated with the given config key OR class name; if none exists, create a new one

Parameters:
key - the name of the desired class, or a config key which points at one
Returns:
null if the key doesn't exist, class can't be instantiated etc.

getNewTagger

public static PoSTagger getNewTagger()
Get a new PoS-tagger of the class specified by the default util.nlp.tagger config key

Returns:
null if the key doesn't exist, class can't be instantiated etc.

getNewTagger

public static PoSTagger getNewTagger(String key)
Get a new PoS-tagger of the class specified by the given config key OR class name

Parameters:
key - the name of the desired class, or a config key which points at one
Returns:
null if the key doesn't exist, class can't be instantiated etc.