csli.util.nlp
Class LemmatiserFactory

java.lang.Object
  extended by csli.util.nlp.LemmatiserFactory
All Implemented Interfaces:
Serializable

public class LemmatiserFactory
extends Object
implements Serializable

A factory that returns a lemmatiser.

See Also:
Serialized Form

Field Summary
static String DEFAULT_KEY
           
 
Constructor Summary
LemmatiserFactory()
           
 
Method Summary
static Lemmatiser getLemmatiser()
          Get the static instance of the default lemmatiser; if none exists, a new one will be created, of the class specified by the default util.nlp.lemmatiser config key
static Lemmatiser getLemmatiser(String key)
          Get the static instance of the lemmatiser associated with the given config key OR class name; if none exists, create a new one
static Lemmatiser getNewLemmatiser()
          Get a new lemmatiser of the class specified by the default util.nlp.lemmatiser config key
static Lemmatiser getNewLemmatiser(String key)
          Get a new lemmatiser of the class specified by the given config keyN OR class name
 
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

LemmatiserFactory

public LemmatiserFactory()
Method Detail

getLemmatiser

public static Lemmatiser getLemmatiser()
Get the static instance of the default lemmatiser; if none exists, a new one will be created, of the class specified by the default util.nlp.lemmatiser config key

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

getLemmatiser

public static Lemmatiser getLemmatiser(String key)
Get the static instance of the lemmatiser 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.

getNewLemmatiser

public static Lemmatiser getNewLemmatiser()
Get a new lemmatiser of the class specified by the default util.nlp.lemmatiser config key

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

getNewLemmatiser

public static Lemmatiser getNewLemmatiser(String key)
Get a new lemmatiser of the class specified by the given config keyN 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.