|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.nih.nlm.nls.gspell.Candidate
Candidate is an association between a document and a rank to some other document. Mon Jul 23 11:24:40 EDT 2001, divita Initial Version
| Constructor Summary | |
Candidate()
This is a constructor for Candidate |
|
Candidate(java.lang.String pDocument,
int pEditDistance,
java.lang.String pMethod)
This is a constructor for Candidate |
|
| Method Summary | |
long |
getCorpusFrequency()
Method getCorpusFrequency returns the number of times this term has appeared in a corpus (such as MedLINE). |
double |
getEditDistance()
Method getEditDistance returns the edit Distance between the query and the candidate |
int |
getEditDistance1000()
Method getEditDistance1000 returns the edit Distance between the query and the candidate multiplied by 1000. |
java.lang.String |
getFromMethod()
Method getFromMethod |
java.lang.String |
getMessage()
Method getMessage returns either nothing, "Correct" or "Case difference" |
java.lang.String |
getName()
Method getDocument |
double |
getRank()
Method getRank The rank is the normalized ranking with a value between 0 and 1, where 1 is an exact match, and 0 is there is no match at all. |
int |
getSortValue()
Method getSortValue returns the value that candidates should be sorted against. |
boolean |
isCorrect()
Method isCorrect returns true if the candidate is the same as the query or if there is a case difference. |
void |
set(java.lang.String pDocument,
int pEditDistance,
java.lang.String pMethod)
set sets the value of this instance |
void |
setCorpusFrequency(long pFrequency)
Method setCorpusFrequency adds the number of times this term has appeared in a corpus (such as MedLINE). |
void |
setMaxFreq(long pMaxFreq)
Method setMaxFreq sets the frequency of the most prolific word in corpus. |
void |
setMethod(java.lang.String pMethod)
Method setMethod |
java.lang.String |
toString()
Method toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Candidate(java.lang.String pDocument,
int pEditDistance,
java.lang.String pMethod)
pDocument - pEditDistance - pMethod - public Candidate()
| Method Detail |
public void set(java.lang.String pDocument,
int pEditDistance,
java.lang.String pMethod)
pDocument - pEditDistance - pMethod - public double getEditDistance()
public int getEditDistance1000()
public int getSortValue()
public java.lang.String getName()
public java.lang.String getFromMethod()
public java.lang.String getMessage()
public boolean isCorrect()
public void setMethod(java.lang.String pMethod)
public void setCorpusFrequency(long pFrequency)
public long getCorpusFrequency()
public java.lang.String toString()
public double getRank()
This distribution is likely to change behavior as we become more safisticated at calculating the differences between two strings.
public void setMaxFreq(long pMaxFreq)
pMaxFreq -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||