|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.lvg.Api.LvgApi
public class LvgApi
This class provides an LVG API for users to setup flows by calling Mutate( ) method in flow compoment classes. The input of this API can be either an LexItem or a Vector composes of LexItems. The output is a Vector composes of LexItems.
All LVG API consists methods for three phases:
History:
| Constructor Summary | |
|---|---|
LvgApi()
Creates an LvgApi object and initiate related data (default). |
|
LvgApi(java.util.Hashtable properties)
Creates an LvgApi object and initiate related data with properties to be overwritten in configuration. |
|
LvgApi(java.lang.String configFile)
Creates an LvgApi object and initiate related data (default), using a specified configuration file. |
|
LvgApi(java.lang.String configFile,
java.util.Hashtable properties)
Creates an LvgApi object and initiate related data, using a specified configuration file, with properties to be overwritten in configuration |
|
| Method Summary | |
|---|---|
void |
CleanUp()
Close Lvg database connection and persistent tries. |
void |
CloseConnection(java.sql.Connection conn)
Close the Lvg database connection. |
java.util.Vector |
GetConjunctionWords()
Get the list of conjunction words |
java.sql.Connection |
GetConnection()
Get the Lvg database connection. |
RamTrie |
GetDerivationTrie()
Get the ram trie object for Lvg derivation rules. |
java.util.Hashtable |
GetDiacriticMap()
Get the list of diacritics mapping list |
RamTrie |
GetInflectionTrie()
Get the ram trie object for Lvg inflection rules. |
int |
GetMaxCodeLength()
Get the maximum length for metaphone code. |
int |
GetMaxTerm()
Get the maximum terms for permuting uninflection wrods. |
java.util.Vector |
GetNonInfoWords()
Get the list of non-info words |
java.util.Vector |
GetStopWords()
Get the list of stop words |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LvgApi()
CleanUp( ) method must be called to close Db connection after using a LvgApi object
public LvgApi(java.lang.String configFile)
This constructor is consider as a preprocess method.
CleanUp( ) method must be called to close Db connection after using a LvgApi object
configFile - the absolute path of the configuration filepublic LvgApi(java.util.Hashtable properties)
CleanUp( ) method must be called to close Db connection after using a LvgApi object
properties - properties to be overwrite in configuration
public LvgApi(java.lang.String configFile,
java.util.Hashtable properties)
CleanUp( ) method must be called to close Db connection after using a LvgApi object
configFile - the absolute path of the configuration fileproperties - properties to be overwrite in configuration| Method Detail |
|---|
public java.sql.Connection GetConnection()
public void CloseConnection(java.sql.Connection conn)
conn - JDBC connection to Lvg databasepublic RamTrie GetInflectionTrie()
public RamTrie GetDerivationTrie()
public void CleanUp()
public int GetMaxTerm()
public int GetMaxCodeLength()
public java.util.Vector GetStopWords()
public java.util.Vector GetNonInfoWords()
public java.util.Vector GetConjunctionWords()
public java.util.Hashtable GetDiacriticMap()
|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||