|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.nih.nlm.nls.gspell.Candidates
Candidates is a collection of candididate. This container has the property that it can distribute candidates sorted by rank. Mon Jul 23 11:24:40 EDT 2001, divita Initial Version
| Constructor Summary | |
Candidates(int pInitialSize)
This is a constructor for Candidates |
|
Candidates(int pInitialSize,
SimpleCorpusStatistics pCorpusLookupInstance)
This is a constructor for Candidates |
|
| Method Summary | |
void |
add(java.lang.String pDocument,
int pRank,
java.lang.String pMethod)
Method add |
void |
calculateCorpusFrequencies()
Method calculateCorpusFrequencies |
void |
clear()
|
Candidate[] |
get()
|
Candidate[] |
get(int pTruncateSize)
|
boolean |
isCorrect()
Method isCorrect returns true if one of the candidates matches the query |
void |
setIsCorrect()
Method setIsCorrect this flag should be turned on if one of the candidates matches the query |
int |
size()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Candidates(int pInitialSize)
pInitialSize -
public Candidates(int pInitialSize,
SimpleCorpusStatistics pCorpusLookupInstance)
throws java.lang.Exception
pInitialSize - pCorpusLookupInstance - | Method Detail |
public final int size()
public final void add(java.lang.String pDocument,
int pRank,
java.lang.String pMethod)
pDocument - pRank - An int rankingpMethod - A method such as NGrams|MetaPhone|CommonMisspelling|...public final void setIsCorrect()
public final boolean isCorrect()
public final Candidate[] get()
public final Candidate[] get(int pTruncateSize)
public final void clear()
public void calculateCorpusFrequencies()
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||