|
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.JdiApi gov.nih.nlm.nls.tc.Api.StriApi
public class StriApi
This class provides Semantic Type Realtime Indexing API. It takes a term or ID|term as input
History:
Field Summary |
---|
Fields inherited from class gov.nih.nlm.nls.tc.Api.JdiApi |
---|
conf_, configFile_, conn_, inputFilter_, jds_, legalWords_, shs_, verbose_, wordExtractionFilter_ |
Constructor Summary | |
---|---|
StriApi(Configuration conf)
Creates an StriApi object and initiate related data, using a specified configuration object. |
|
StriApi(Configuration conf,
JournalDescriptors jds,
Subheadings shs)
Creates an StriApi object and initiate related data, using a specified configuration object, journal descritor object, and subHeadings object. |
|
StriApi(Configuration conf,
JournalDescriptors jds,
Subheadings shs,
SemanticTypes sts)
Creates an StriApi object and initiate related data, using a specified configuration object, journal descritor object, subHeadings object, and semantic types object. |
|
StriApi(java.sql.Connection conn)
Creates an StriApi object and initiate related data, using a specified database connection object. |
|
StriApi(java.sql.Connection conn,
JournalDescriptors jds,
Subheadings shs)
Creates an StriApi object and initiate related data, using a specified db connection object, journal descritor object, and subHeadings object. |
|
StriApi(java.util.Hashtable<java.lang.String,java.lang.String> properties)
Creates an StriApi object and initiate related data, using a specified properties to be overwritten in configuration. |
|
StriApi(java.lang.String configFile)
Creates an StriApi object and initiate related data, using a specified configuration file. |
Method Summary | |
---|---|
java.lang.String |
GetDetailScoreStrByMesh(java.lang.String inMeshStr,
InputFilterOption inputFilterOption,
OutputFilterOption outputFilterOption)
Get ST detail scores in String for MeSHs. |
java.lang.String |
GetDetailScoreStrByText(java.lang.String inTextStr,
InputFilterOption inputFilterOption,
OutputFilterOption outputFilterOption)
Get ST detail scores in String for words. |
SemanticTypes |
GetSemanticTypes()
Get the Semantic Types object. |
java.util.Vector<Count1f> |
GetStriScoresByMesh(java.lang.String inMeshStr)
Get ST scores by MeSHs. |
java.util.Vector<Count2f> |
GetStriScoresByText(java.lang.String inTextStr,
InputFilterOption inputFilterOption)
Get ST scores by text. |
java.util.Vector<Count2f> |
GetStriScoresByText(java.lang.String inTextStr,
InputFilterOption inputFilterOption,
boolean verbose)
Get ST scores by text. |
Methods inherited from class gov.nih.nlm.nls.tc.Api.JdiApi |
---|
Close, GetDetailScoreStrByTextMesh, GetInputFilter, GetJdiScoresByMesh, GetJdiScoresByMesh, GetJdiScoresByText, GetJdiScoresByText, GetJdiScoresByTextMesh, GetJdiScoresByTextMesh, GetJournalDescriptors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StriApi(Configuration conf)
Close( ) method must be called to close Db connection after using a StriApi object.
conf
- Configuration objectpublic StriApi(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 StriApi(java.sql.Connection conn)
Close( ) method must be called to close Db connection after using a StiApi object.
conn
- Db connection objectpublic StriApi(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 StriApi(Configuration conf, JournalDescriptors jds, Subheadings shs)
Close( ) method must be called to close Db connection after using a StriApi object.
conf
- configuration objectjds
- Journal descriptor objectshs
- MeSH subHeading objectpublic StriApi(Configuration conf, JournalDescriptors jds, Subheadings shs, SemanticTypes sts)
Close( ) method must be called to close Db connection after using a StriApi object.
conf
- configuration objectjds
- Journal descriptor objectshs
- MeSH subHeading objectsts
- Semantic types objectpublic StriApi(java.sql.Connection conn, JournalDescriptors jds, Subheadings shs)
Close( ) method must be called to close Db connection after using a StriApi object.
conn
- db connection objectjds
- Journal descriptor objectshs
- MeSH subHeading objectMethod Detail |
---|
public java.util.Vector<Count1f> GetStriScoresByMesh(java.lang.String inMeshStr)
inMeshStr
- input starred MeSH (separated by "|")
public java.util.Vector<Count2f> GetStriScoresByText(java.lang.String inTextStr, InputFilterOption inputFilterOption)
inTextStr
- input text (phrase, TI, AB)inputFilterOption
- the inputFilter option java object
public java.util.Vector<Count2f> GetStriScoresByText(java.lang.String inTextStr, InputFilterOption inputFilterOption, boolean verbose)
inTextStr
- input text (phrase, TI, AB)inputFilterOption
- the inputFilter option java objectverbose
- boolean flag for verbose message
public java.lang.String GetDetailScoreStrByMesh(java.lang.String inMeshStr, InputFilterOption inputFilterOption, OutputFilterOption outputFilterOption)
GetDetailScoreStrByMesh
in class JdiApi
inMeshStr
- input MeSHs (MH or SH)inputFilterOption
- the inputFilter option java objectoutputFilterOption
- the output filter option java object
public java.lang.String GetDetailScoreStrByText(java.lang.String inTextStr, InputFilterOption inputFilterOption, OutputFilterOption outputFilterOption)
GetDetailScoreStrByText
in class JdiApi
inTextStr
- input text (phrase, TI, AB)inputFilterOption
- the inputFilter option java objectoutputFilterOption
- the output filter option java object
public SemanticTypes GetSemanticTypes()
|
TC Java 2011 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |