net.java.sen
Class SenFactory
java.lang.Object
net.java.sen.SenFactory
public class SenFactory
- extends Object
A factory to manage creation of Viterbi, StringTagger, and
ReadingProcessor objects
Thread Safety: This class and all its public methods are thread safe.
The objects constructed by the factory are NOT thread safe and should
not be accessed simultaneously by multiple threads
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
unknownPOS
public static final String unknownPOS
- See Also:
- Constant Field Values
getInstance
public static SenFactory getInstance(String dictionaryDir)
- Get the singleton factory instance
- Parameters:
dictionaryDir - a directory of dictinaries
getStringTagger
public static StringTagger getStringTagger(String dictionaryDir)
- Creates a StringTagger from the given configuration
- Parameters:
dictionaryDir - a directory of dictionary
- Returns:
- A StringTagger
Copyright © 2012. All Rights Reserved.