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 {
throw new ClassNotFoundException("Scoring function class not found!");
}