public class LvgApi
extends java.lang.Object
All LVG API consists methods for three phases:
History:
| Constructor and Description |
|---|
LvgApi()
Creates an LvgApi object and initiate related data (default).
|
LvgApi(java.util.Hashtable<java.lang.String,java.lang.String> 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<java.lang.String,java.lang.String> properties)
Creates an LvgApi object and initiate related data, using
a specified configuration file, with properties to be overwritten
in configuration
|
| Modifier and Type | Method and Description |
|---|---|
void |
CleanUp()
Close Lvg database connection and persistent tries.
|
void |
CloseConnection(java.sql.Connection conn)
Close the Lvg database connection.
|
Configuration |
GetConfiguration()
A method to get the configuration object
|
java.util.Vector<java.lang.String> |
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<java.lang.Character,java.lang.Character> |
GetDiacriticMap()
Get the list of diacritics mapping list
|
RamTrie |
GetInflectionTrie()
Get the ram trie object for Lvg inflection rules.
|
java.util.Hashtable<java.lang.Character,java.lang.String> |
GetLigatureMap()
Get the list of ligatures mapping list
|
int |
GetMaxCodeLength()
Get the maximum length for metaphone code.
|
int |
GetMaxTerm()
Get the maximum terms for permuting uninflection words.
|
java.util.Vector<java.lang.String> |
GetNonInfoWords()
Get the list of non-info words
|
java.util.Hashtable<java.lang.Character,java.lang.String> |
GetNonStripMap()
Get the list of non-Strip mapping list
|
RTrieTree |
GetRemoveSTree()
Get the ram trie object for Lvg removeS tree.
|
java.util.Vector<java.lang.String> |
GetStopWords()
Get the list of stop words
|
java.util.Hashtable<java.lang.Character,java.lang.String> |
GetSymbolMap()
Get the list of symbols mapping list
|
java.util.Hashtable<java.lang.Character,java.lang.String> |
GetUnicodeMap()
Get the list of Unicode mapping list
|
java.util.Hashtable<java.lang.Character,java.lang.Character> |
GetUnicodeSynonymMap()
Get the list of Unicode synonym mapping list
|
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<java.lang.String,java.lang.String> properties)
CleanUp( ) method must be called to close Db connection after using a LvgApi object
properties - properties to be overwrite in configurationpublic LvgApi(java.lang.String configFile,
java.util.Hashtable<java.lang.String,java.lang.String> 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 configurationpublic Configuration GetConfiguration()
public java.sql.Connection GetConnection()
public void CloseConnection(java.sql.Connection conn)
conn - the JDBC connection to Lvg databasepublic RamTrie GetInflectionTrie()
public RamTrie GetDerivationTrie()
public RTrieTree GetRemoveSTree()
public void CleanUp()
public int GetMaxTerm()
public int GetMaxCodeLength()
public java.util.Vector<java.lang.String> GetStopWords()
public java.util.Vector<java.lang.String> GetNonInfoWords()
public java.util.Vector<java.lang.String> GetConjunctionWords()
public java.util.Hashtable<java.lang.Character,java.lang.Character> GetDiacriticMap()
public java.util.Hashtable<java.lang.Character,java.lang.String> GetLigatureMap()
public java.util.Hashtable<java.lang.Character,java.lang.Character> GetUnicodeSynonymMap()
public java.util.Hashtable<java.lang.Character,java.lang.String> GetSymbolMap()
public java.util.Hashtable<java.lang.Character,java.lang.String> GetUnicodeMap()
public java.util.Hashtable<java.lang.Character,java.lang.String> GetNonStripMap()
Submit a bug or feature
Copyright © 2020 National Library of Medicine