Examples of BM25ScoringFunction


Examples of ivory.ffg.score.BM25ScoringFunction

    ScoringFunction scoringFunction = null;

    if(scoringFunctionClass.equals(BM25ScoringFunction.class.getName())) {
      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();
View Full Code Here

Examples of ivory.smrf.model.score.BM25ScoringFunction

  public Accumulator[] rank(String qid, JSONObject query, int queryLength) {
    GlobalEvidence globalEvidence = new GlobalEvidence(env.getDocumentCount(), env.getCollectionSize(), queryLength);

    PostingsReaderWrapper structureReader;
    ScoringFunction scoringFunction = new BM25ScoringFunction();
    try {
      structureReader = new PostingsReaderWrapper(query, env, scoringFunction, globalEvidence);
    } catch (JSONException e) {
      e.printStackTrace();
      throw new RuntimeException(e);
View Full Code Here

Examples of ivory.smrf.model.score.BM25ScoringFunction

  public Accumulator[] rank(String qid, JSONObject query, int queryLength) {
    GlobalEvidence globalEvidence = new GlobalEvidence(env.getDocumentCount(), env.getCollectionSize(), queryLength);

    PostingsReaderWrapper structureReader;
    ScoringFunction scoringFunction = new BM25ScoringFunction();
    try {
      structureReader = new PostingsReaderWrapper(query, env, scoringFunction, globalEvidence);
    } catch (JSONException e) {
      e.printStackTrace();
      throw new RuntimeException(e);
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.