|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.querying.ExpansionTerms.ExpansionTerm
public static class ExpansionTerms.ExpansionTerm
This class implements a data structure for a term in the top-retrieved documents.
| Field Summary | |
|---|---|
protected int |
documentFrequency
The document frequency of the term in the X top ranked documents. |
protected int |
termID
The term ID. |
protected double |
weightExpansion
The weight for query expansion. |
protected double |
withinDocumentFrequency
The number of occurrences of the given term in the X top ranked 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int termID
protected double weightExpansion
protected double withinDocumentFrequency
protected int documentFrequency
| Constructor Detail |
|---|
public ExpansionTerms.ExpansionTerm(int _termID,
double _withinDocumentFrequency)
_termID - int the ID of the term_withinDocumentFrequency - 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||