All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.julielab.geneexpbase.scoring.TFIDFScorer Maven / Gradle / Ivy

package de.julielab.geneexpbase.scoring;

public class TFIDFScorer extends Scorer {

	private final TFIDFUtils tfidf;

	public TFIDFScorer(TFIDFUtils tfidf) {
		this.tfidf = tfidf;
	}

	@Override
	public double getScore(String term1, String term2) throws RuntimeException {
		return tfidf.score(term1, term2);
	}

	@Override
	public String info() {
		return "Secondstring TFIDF Scorer";
	}

	@Override
	public int getScorerType() {
		return TFIDF;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy