|
TC Java 2011 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nih.nlm.nls.tc.Api.StiApi
public class StiApi
This class provides Semantic Type Indexing API. It takes a term or ID|term as input.
History:
Field Summary | |
---|---|
protected Configuration |
conf_
|
protected java.lang.String |
configFile_
|
protected SemanticTypes |
sts_
|
protected boolean |
verbose_
|
Constructor Summary | |
---|---|
StiApi(Configuration conf)
Creates an StiApi object and initiate related data, using a specified configuration object. |
|
StiApi(Configuration conf,
SemanticTypes sts)
Creates an StiApi object and initiate related data, using a specified configuration object and semantic types object. |
|
StiApi(java.sql.Connection conn)
Creates an StiApi object and initiate related data, using a specified database connection object. |
|
StiApi(java.sql.Connection conn,
SemanticTypes sts)
Creates an StiApi object and initiate related data, using a specified database connection object and semantic types object. |
|
StiApi(java.util.Hashtable<java.lang.String,java.lang.String> properties)
Creates an StiApi object and initiate related data, using a specified properties to be overwritten in configuration. |
|
StiApi(java.lang.String configFile)
Creates an StiApi object and initiate related data, using a specified configuration file. |
Method Summary | |
---|---|
void |
Close()
Close STI database connection. |
java.lang.String |
GetDetailScoreStrByText(java.lang.String inTextStr,
InputFilterOption inputFilterOption,
OutputFilterOption outputFilterOption)
Get ST detail scores in String for words. |
InputFilter |
GetInputFilter()
Get the inputFilter Java object. |
SemanticTypes |
GetSemanticTypes()
Get the Semantic Types object. |
java.util.Vector<Count2f> |
GetStiScoresByText(java.lang.String inTextStr,
InputFilterOption inputFilterOption)
Get ST scores by text. |
java.util.Vector<Count2f> |
GetStiScoresByText(java.lang.String inTextStr,
InputFilterOption inputFilterOption,
java.util.Vector<java.lang.String> forcedLegalWords)
Get ST scores by text with forced legal words. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String configFile_
protected Configuration conf_
protected boolean verbose_
protected SemanticTypes sts_
Constructor Detail |
---|
public StiApi(Configuration conf)
Close( ) method must be called to close Db connection after using a StiApi object.
conf
- Configuration objectpublic StiApi(java.lang.String configFile)
Close( ) method must be called to close Db connection after using a StiApi object.
configFile
- the absolute path of the configuration filepublic StiApi(java.sql.Connection conn)
Close( ) method must be called to close Db connection after using a StiApi object.
conn
- Db connection objectpublic StiApi(java.util.Hashtable<java.lang.String,java.lang.String> properties)
Close( ) method must be called to close Db connection after using a StiApi object.
properties
- properties to be overwrite in configurationpublic StiApi(Configuration conf, SemanticTypes sts)
Close( ) method must be called to close Db connection after using a StiApi object.
conf
- Configuration objectsts
- Semantic types objectspublic StiApi(java.sql.Connection conn, SemanticTypes sts)
Close( ) method must be called to close Db connection after using a StiApi object.
conn
- Database connection objectsts
- Semantic types objectsMethod Detail |
---|
public java.util.Vector<Count2f> GetStiScoresByText(java.lang.String inTextStr, InputFilterOption inputFilterOption)
inTextStr
- input text (phrase, TI, AB)inputFilterOption
- the inputFilter option java object
public java.util.Vector<Count2f> GetStiScoresByText(java.lang.String inTextStr, InputFilterOption inputFilterOption, java.util.Vector<java.lang.String> forcedLegalWords)
inTextStr
- input text (phrase, TI, AB)inputFilterOption
- the inputFilter option java object
public java.lang.String GetDetailScoreStrByText(java.lang.String inTextStr, InputFilterOption inputFilterOption, OutputFilterOption outputFilterOption)
inTextStr
- input text (phrase, TI, AB)inputFilterOption
- the inputFilter option java objectoutputFilterOption
- the output filter option java object
public InputFilter GetInputFilter()
public SemanticTypes GetSemanticTypes()
public void Close()
|
TC Java 2011 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |