|
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.FilterApi.InputFilter
public class InputFilter
This class provides methods for input filter of TC tools
History:
Constructor Summary | |
---|---|
InputFilter()
Initiate the InputFilter object. |
Method Summary | |
---|---|
static java.util.Vector<java.lang.String> |
FilterUniqueWords(java.util.Vector<java.lang.String> inVec)
Use unique filter to get Unique words and filter out duplicated words |
java.lang.String |
GetDebugMsg()
Get debug message of text and MeSH inputFilter. |
java.util.Vector<java.lang.String> |
GetFinalMeshs()
Get the final (legal) MeSHs. |
java.util.Vector<java.lang.String> |
GetFinalWords()
Get the final words after all |
static java.lang.String |
GetIdFromInputWithId(java.lang.String inStr)
Get the id (unique Identifier) from inStr when the inStr in the format of: ID|string |
java.lang.String |
GetMeshDebugMsg()
Get debug message of MeSH inputFilter. |
static java.lang.String |
GetStringFromInputWithId(java.lang.String inStr)
Get the string from inStr when the inStr in the format of: ID|string |
java.lang.String |
GetTextDebugMsg()
Get debug message of text inputFilter. |
boolean |
MeshInputFilter(java.lang.String inMeshStr,
Subheadings shs,
java.sql.Connection conn)
MeSH InputFilter, used in JDI for MeSH input. |
static java.util.Vector<java.lang.String> |
TermToWords(java.lang.String term)
Converts a string (term) into a collection of words. |
boolean |
TextInputFilter(java.lang.String inTextStr,
InputFilterOption inputFilterOption,
WordExtractionFilter wordExtractionFilter,
LegalWords legalWordsObj)
Text InputFilter, used in JDI and STI for text input. |
boolean |
TextInputFilter(java.lang.String inTextStr,
InputFilterOption inputFilterOption,
WordExtractionFilter wordExtractionFilter,
LegalWords legalWordsObj,
java.util.Vector<java.lang.String> forcedLegalWords)
Text InputFilter with forces legal words, used in STI for WSD. |
static java.lang.String |
WordsToTerm(java.util.Vector<java.lang.String> words)
Converts a collection of words into a string (term). |
static java.lang.String |
WordsToTerm(java.util.Vector<java.lang.String> words,
java.lang.String fieldSep)
Converts a collection of words into a string (term) with specified field separator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputFilter()
Method Detail |
---|
public static java.lang.String GetIdFromInputWithId(java.lang.String inStr)
inStr
- the input string in format of ID|string
public static java.lang.String GetStringFromInputWithId(java.lang.String inStr)
inStr
- the input string in format of ID|string
public java.util.Vector<java.lang.String> GetFinalWords()
public java.util.Vector<java.lang.String> GetFinalMeshs()
public java.lang.String GetDebugMsg()
public java.lang.String GetTextDebugMsg()
public java.lang.String GetMeshDebugMsg()
public boolean TextInputFilter(java.lang.String inTextStr, InputFilterOption inputFilterOption, WordExtractionFilter wordExtractionFilter, LegalWords legalWordsObj)
inTextStr
- input text str to be processedinputFilterOption
- inputFilter options objectwordExtractionFilter
- the word extractinfilter java objectlegalWordsObj
- the legal words java objectpublic boolean TextInputFilter(java.lang.String inTextStr, InputFilterOption inputFilterOption, WordExtractionFilter wordExtractionFilter, LegalWords legalWordsObj, java.util.Vector<java.lang.String> forcedLegalWords)
inTextStr
- input text str to be processedinputFilterOption
- inputFilter options objectwordExtractionFilter
- the word extractinfilter java objectlegalWordsObj
- the legal words java objectforcedLegalWords
- forces legal wordspublic boolean MeshInputFilter(java.lang.String inMeshStr, Subheadings shs, java.sql.Connection conn)
inMeshStr
- input MeSH str to be processedshs
- Subheadings java objectconn
- database connectionpublic static java.util.Vector<java.lang.String> TermToWords(java.lang.String term)
term
- the term to be converts (string)
public static java.lang.String WordsToTerm(java.util.Vector<java.lang.String> words)
words
- a collection of words
public static java.lang.String WordsToTerm(java.util.Vector<java.lang.String> words, java.lang.String fieldSep)
words
- a collection of wordsfieldSep
- field separator
public static java.util.Vector<java.lang.String> FilterUniqueWords(java.util.Vector<java.lang.String> inVec)
inVec
- a Vecotr of input words
|
TC Java 2011 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |