/** * This method implements the functionality of assigning expansion weights to * the terms in the top-retrieved documents, and returns the most informative * terms among them. Conservative Query Expansion (ConservativeQE) is used if * the number of expanded terms is set to 0. In this case, no new query terms * are added to the query, only the existing ones reweighted. * @param numberOfExpandedTerms int The number of terms to extract from the * top-retrieved documents. ConservativeQE is set if this parameter is set to 0. * * @return TermTreeNode[] The expanded terms. */ public SingleTermQuery[] getExpandedTerms(int numberOfExpandedTerms) { return getExpandedTerms(numberOfExpandedTerms, model); }
/** * This method implements the functionality of assigning expansion weights to * the terms in the top-retrieved documents, and returns the most informative * terms among them. Conservative Query Expansion (ConservativeQE) is used if * the number of expanded terms is set to 0. In this case, no new query terms * are added to the query, only the existing ones reweighted. * @param numberOfExpandedTerms int The number of terms to extract from the * top-retrieved documents. ConservativeQE is set if this parameter is set to 0. * * @return TermTreeNode[] The expanded terms. */ public SingleTermQuery[] getExpandedTerms(int numberOfExpandedTerms) { return getExpandedTerms(numberOfExpandedTerms, model); }