Examples of score()


Examples of org.apache.lucene.search.features.querydependent.PwaTFxIDF.score()

   
    Vector<Integer> idf=new Vector<Integer>();
    idf.add(1000);
     
    PwaTFxIDF ranker=new PwaTFxIDF(tf,idf,100,10000000)
    System.out.println(ranker.score());
        assertTrue(ranker.score()==0.2763102111592855);                 
  }

}
View Full Code Here

Examples of org.apache.lucene.search.features.temporal.PwaBoostNewer.score()

    long maxTimestamp=100;
    long minTimestamp=0
   
    for (long i=0;i<10;i++) {     
      PwaBoostNewer ranker=new PwaBoostNewer(i,maxTimestamp,minTimestamp);
      System.out.println(i+" "+ranker.score())
    }
    for (long i=10;i<=100;i+=10) {
      PwaBoostNewer ranker=new PwaBoostNewer(i,maxTimestamp,minTimestamp);     
      System.out.println(i+" "+ranker.score())
    }
View Full Code Here

Examples of org.apache.lucene.search.features.temporal.PwaBoostNewerAndOlder.score()

    long maxTimestamp=100;
    long minTimestamp=0
   
    for (long i=0;i<10;i++) {
      PwaBoostNewerAndOlder ranker=new PwaBoostNewerAndOlder(i,maxTimestamp,minTimestamp);
      System.out.println(i+" "+ranker.score())
    }
    for (long i=10;i<=90;i+=10) {
      PwaBoostNewerAndOlder ranker=new PwaBoostNewerAndOlder(i,maxTimestamp,minTimestamp);
      System.out.println(i+" "+ranker.score())
    }
View Full Code Here

Examples of org.apache.lucene.search.features.temporal.PwaBoostOlder.score()

    long maxTimestamp=100;
    long minTimestamp=0
   
    for (long i=0;i<10;i++) {
      PwaBoostOlder ranker=new PwaBoostOlder(i,maxTimestamp,minTimestamp);
      System.out.println(i+" "+ranker.score())
    }
    for (long i=10;i<=100;i+=10) {
      PwaBoostOlder ranker=new PwaBoostOlder(i,maxTimestamp,minTimestamp);
      System.out.println(i+" "+ranker.score())
    }
View Full Code Here

Examples of org.apache.lucene.search.features.temporal.PwaNumberVersions.score()

  public void testScore() { 
    long nVersions=100;   
    long maxVersions=1000;   
    PwaNumberVersions ranker=new PwaNumberVersions(nVersions, maxVersions);     
    System.out.println(""+ranker.score());
    assertEquals(ranker.score(),(float)2/(float)3);
     
    nVersions=1000;   
    maxVersions=1000;   
    ranker=new PwaNumberVersions(nVersions, maxVersions);     
View Full Code Here

Examples of org.apache.lucene.search.features.temporal.PwaSpanVersions.score()

    long maxTimestamp=100 * (long)PwaIRankingFunction.DAY_MILLISEC;
    long minTimestamp=0 * (long)PwaIRankingFunction.DAY_MILLISEC;; 
    long maxSpan=1000;
   
    PwaSpanVersions ranker=new PwaSpanVersions(maxTimestamp, minTimestamp, maxSpan);     
    System.out.println(""+ranker.score());
    assertEquals(ranker.score(),(float)2/(float)3);
     
    maxTimestamp=1000 * (long)PwaIRankingFunction.DAY_MILLISEC;
    minTimestamp=0 * (long)PwaIRankingFunction.DAY_MILLISEC;   
    ranker=new PwaSpanVersions(maxTimestamp, minTimestamp, maxSpan);     
View Full Code Here

Examples of org.apache.lucene.search.rankers.queryindependent.PwaLinInlinks.score()

  protected void tearDown() throws Exception {
  }

  public void testScore() {       
    PwaLinInlinks ranker=new PwaLinInlinks(0)
    System.out.println(ranker.score());
    ranker=new PwaLinInlinks(1)
    System.out.println(ranker.score());
    ranker=new PwaLinInlinks(3)
    System.out.println(ranker.score());
    ranker=new PwaLinInlinks(5)
View Full Code Here

Examples of org.apache.lucene.search.rankers.queryindependent.PwaLinPagerank.score()

  protected void tearDown() throws Exception {
  }

  public void testScore() {     
    PwaLinPagerank ranker=new PwaLinPagerank(0)
    System.out.println(ranker.score());
    ranker=new PwaLinPagerank(0.00001f)
    System.out.println(ranker.score());
    ranker=new PwaLinPagerank(0.0001f)
    System.out.println(ranker.score());
    ranker=new PwaLinPagerank(0.001f);   
View Full Code Here

Examples of org.apache.lucene.search.rankers.queryindependent.PwaUrlDepth.score()

  public void testScore() {     
    PwaUrlDepth ranker;
    try {
      ranker = new PwaUrlDepth("http://www.sigir.org");
      assertEquals(3,(int)ranker.score());
      ranker=new PwaUrlDepth("http://www.sigir.org/");
      assertEquals(3,(int)ranker.score());
      ranker=new PwaUrlDepth("http://www.sigir");
      assertEquals(3,(int)ranker.score());
      ranker=new PwaUrlDepth("http://www.sigir.org/sigirlist");     
View Full Code Here

Examples of org.apache.lucene.search.rankers.queryindependent.PwaUrlSlashes.score()

  public void testScore() {     
    PwaUrlSlashes ranker;
    try {
      ranker = new PwaUrlSlashes("http://www.sigir.org");
      assertEquals(0,(int)ranker.score());
      ranker=new PwaUrlSlashes("http://www.sigir.org/");
      assertEquals(1,(int)ranker.score());
      ranker=new PwaUrlSlashes("www.sigir");
      assertEquals(0,(int)ranker.score());               
      ranker=new PwaUrlSlashes("http://www.sigir.org/sigirlist/");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.