/** * Add a term in the X top-retrieved documents as a candidate of the * expanded terms. * @param termID int the integer identifier of a term * @param withinDocumentFrequency double the within document * frequency of a term */ protected void insertTerm(int termID, double withinDocumentFrequency) { final ExpansionTerm et = terms.get(termID); if (et == null) terms.put(termID, new ExpansionTerm(termID, withinDocumentFrequency)); else et.insertRecord(withinDocumentFrequency); } }
/** * Add a term in the X top-retrieved documents as a candidate of the * expanded terms. * @param termID int the integer identifier of a term * @param withinDocumentFrequency double the within document * frequency of a term */ protected void insertTerm(int termID, double withinDocumentFrequency) { final ExpansionTerm et = terms.get(termID); if (et == null) terms.put(termID, new ExpansionTerm(termID, withinDocumentFrequency)); else et.insertRecord(withinDocumentFrequency); } }