|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.terrier.structures.ExpansionTerms.ExpansionTerm
public static class ExpansionTerms.ExpansionTerm
This class implements a data structure for a term in the top-retrieved documents.
| Constructor Summary | |
|---|---|
ExpansionTerms.ExpansionTerm(int termID,
double withinDocumentFrequency)
The constructor of ExpansionTerm. |
|
| Method Summary | |
|---|---|
int |
getDocumentFrequency()
The method returns the document frequency of term in the top-retrieved documents. |
int |
getTermID()
Returns the ID of the term. |
double |
getWeightExpansion()
The method returns the expansion weight of the term. |
double |
getWithinDocumentFrequency()
The method returns the frequency of the term in the X top-retrieved documents. |
void |
insertRecord(double withinDocumentFrequency)
If the term is found in another top-retrieved document, we increase the frequency and the document frequency of the term. |
void |
setWeightExpansion(double weightExpansion)
Sets the expansion weight of the term. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpansionTerms.ExpansionTerm(int termID,
double withinDocumentFrequency)
termID - int the ID of the termwithinDocumentFrequency - double the frequency of the term in
a top-retrieved document| Method Detail |
|---|
public int getTermID()
public void insertRecord(double withinDocumentFrequency)
withinDocumentFrequency - double the frequency of the term
in the corresponding top-retrieved document.public void setWeightExpansion(double weightExpansion)
weightExpansion - double the expansion weight of the term.public int getDocumentFrequency()
public double getWeightExpansion()
public double getWithinDocumentFrequency()
|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||