net.java.sen
Class SenFactory

java.lang.Object
  extended by 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


Field Summary
static String unknownPOS
           
 
Method Summary
static SenFactory getInstance(String dictionaryDir)
          Get the singleton factory instance
static StringTagger getStringTagger(String dictionaryDir)
          Creates a StringTagger from the given configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unknownPOS

public static final String unknownPOS
See Also:
Constant Field Values
Method Detail

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.