public static class ExpansionTerms.ExpansionTerm extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected int | documentFrequencyThe document frequency of the term in the X top ranked documents. | 
| protected int | termIDThe term ID. | 
| protected double | weightExpansionThe weight for query expansion. | 
| protected double | withinDocumentFrequencyThe number of occurrences of the given term in the X top ranked documents. | 
| Constructor and Description | 
|---|
| ExpansionTerms.ExpansionTerm(int _termID,
                            double _withinDocumentFrequency)The constructor of ExpansionTerm. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
protected int termID
protected double weightExpansion
protected double withinDocumentFrequency
protected int documentFrequency
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 documentpublic 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 Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow