@Override public String getInfo() { StringBuilder s = new StringBuilder(); for(WeightingModel w : parents) { s.append(w.getInfo()); s.append(","); } s.setLength(s.length() -1); return s.toString(); }
@Override public String getInfo() { StringBuilder s = new StringBuilder(); for(WeightingModel w : parents) { s.append(w.getInfo()); s.append(","); } s.setLength(s.length() -1); return s.toString(); }
org.terrier.sorting.HeapSort.heapSort(docids, scores, docCount); System.err.println("ScoringMatching running for " + wm.getInfo()); if (! okToScore) System.err.println("Term: "+term.getKey().toString()+" not scored for wm " + wm.getInfo()); iter.remove(); continue; System.err.println(this.getClass().getSimpleName() + " for "+this.wm.getInfo()+" on "+terms+" terms, scored " + matchingCount + " of " + docids.length + " retrieved documents docCount="+docCount + " matchingCount="+matchingCount); finalise(matchingCount);
org.terrier.sorting.HeapSort.heapSort(docids, scores, docCount); System.err.println("ScoringMatching running for " + wm.getInfo()); if (! okToScore) System.err.println("Term: "+term.getKey().toString()+" not scored for wm " + wm.getInfo()); iter.remove(); continue; System.err.println(this.getClass().getSimpleName() + " for "+this.wm.getInfo()+" on "+terms+" terms, scored " + matchingCount + " of " + docids.length + " retrieved documents docCount="+docCount + " matchingCount="+matchingCount); finalise(matchingCount);
if (! okToScore[ti]) System.err.println("Term: "+fInputRS.getQueryTerms()[ti]+" not scored for wm " + wm.getInfo()); continue; System.err.println("Term: " + fInputRS.getQueryTerms()[ti] + " qtw="+keyFreqs[ti] + " es="+entryStats[ti] + " scored for wm " + wm.getInfo()); System.err.println(wms[ti].getInfo() + " was "+s+": posting=(" + p.toString() + ") for term " + ti + " ks=" + keyFreqs[ti] + " es="+ entryStats[ti] + " l=" + p.getDocumentLength()); if (p instanceof FieldPosting) System.err.println("lf="+ Arrays.toString(((FieldPosting)p).getFieldLengths())); gt0++; logger.info("Rescoring found " + gt0 + " docs with +ve score using " + wm.getInfo());
if (! okToScore[ti]) System.err.println("Term: "+fInputRS.getQueryTerms()[ti]+" not scored for wm " + wm.getInfo()); continue; System.err.println("Term: " + fInputRS.getQueryTerms()[ti] + " qtw="+keyFreqs[ti] + " es="+entryStats[ti] + " scored for wm " + wm.getInfo()); System.err.println(wms[ti].getInfo() + " was "+s+": posting=(" + p.toString() + ") for term " + ti + " ks=" + keyFreqs[ti] + " es="+ entryStats[ti] + " l=" + p.getDocumentLength()); if (p instanceof FieldPosting) System.err.println("lf="+ Arrays.toString(((FieldPosting)p).getFieldLengths())); gt0++; logger.info("Rescoring found " + gt0 + " docs with +ve score using " + wm.getInfo());
@Test public void testGetAdvancedModels() { WeightingModel m = WeightingModelFactory.newInstance("DFRWeightingModel(P,L,2)"); assertNotNull(m); assertTrue(m instanceof DFRWeightingModel); assertEquals("PL2c1.0", m.getInfo()); }