Package ivory.ffg.score

Examples of ivory.ffg.score.DirichletScoringFunction


      float k1 = Float.parseFloat(element.getAttribute("k1"));
      float b = Float.parseFloat(element.getAttribute("b"));
      scoringFunction = new BM25ScoringFunction(k1, b);
    } else if(scoringFunctionClass.equals(DirichletScoringFunction.class.getName())) {
      float mu = Float.parseFloat(element.getAttribute("mu"));
      scoringFunction = new DirichletScoringFunction(mu);
    } else if(scoringFunctionClass.equals(TfScoringFunction.class.getName())) {
      scoringFunction = new TfScoringFunction();
    } else if(scoringFunctionClass.equals(TfIdfScoringFunction.class.getName())) {
      scoringFunction = new TfIdfScoringFunction();
    } else {
View Full Code Here

TOP

Related Classes of ivory.ffg.score.DirichletScoringFunction

Copyright © 2018 www.massapicom. 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.