|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.nih.nlm.nls.gspell.BagOWordsPlusIndex
BagOWordsPlusIndex This class creates the index for multi word retrieval using a bag-o-words method, with some help from gspell for those words that are not initially found in the index. Thu Jan 23 14:48:11 EST 2003, divita Initial Version
| Constructor Summary | |
BagOWordsPlusIndex(GlobalBehavior pSettings)
This is a constructor for BagOWordsPlusIndex |
|
BagOWordsPlusIndex(java.lang.String[] args)
This is a constructor for BagOWordsPlusIndex. |
|
| Method Summary | |
(package private) void |
cleanup()
Method cleanup |
(package private) void |
exportWordHash()
Method exportWordHash |
(package private) void |
exportWuiTuis()
Method exportWuiTuis |
void |
flushIndexesOutToDisk()
Method flushIndexesOutToDisk flushes the cached indexes out to disk and should be called if you are using the index(string) or index(string[]) methods. |
(package private) void |
flushWordHash()
Method flushWordHash converts the wordHash to the db. |
(package private) void |
flushWuiTuis()
Method flushWuiTuis writes out the index of wui|tui[] ( word ui's|by an array of term uis) |
(package private) void |
gspellIndexWords()
Method gspellIndexWords indexes the words for spelling suggestion. |
void |
index()
Method index opens up the input file (from --inputFile= commandline option) itterates through each line of it, calling index( String pLine) |
void |
index(java.util.Collection pTerms)
Method index takes a Collection of terms and adds it to the indexes. |
void |
index(java.lang.String pTerm)
Method index takes a term and adds it to the indexes. |
void |
index(java.lang.String[] pTerm)
Method index takes an array of terms and adds it to the indexes. |
static void |
main(java.lang.String[] args)
main |
static void |
run(java.lang.String[] args)
Method run |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BagOWordsPlusIndex(java.lang.String[] args)
throws GSpellException
args -
GSpellException
public BagOWordsPlusIndex(GlobalBehavior pSettings)
throws java.lang.Exception
pSettings -
java.lang.Exception| Method Detail |
public static void run(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
public void index()
throws java.lang.Exception
java.lang.Exception
public void index(java.lang.String pTerm)
throws java.lang.Exception
pTerm -
java.lang.Exception
public void index(java.lang.String[] pTerm)
throws java.lang.Exception
pTerm -
java.lang.Exception
public void index(java.util.Collection pTerms)
throws java.lang.Exception
java.lang.Exception
void cleanup()
throws java.lang.Exception
java.lang.Exception
public void flushIndexesOutToDisk()
throws java.lang.Exception
java.lang.Exception
final void gspellIndexWords()
throws java.lang.Exception
java.lang.Exception
final void exportWordHash()
throws java.lang.Exception
java.lang.Exception
final void exportWuiTuis()
throws java.lang.Exception
java.lang.Exception
final void flushWordHash()
throws java.lang.Exception
java.lang.Exception
final void flushWuiTuis()
throws java.lang.Exception
java.lang.Exceptionpublic static final void main(java.lang.String[] args)
args - The command line input, tokenized
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||