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

eu.project.ttc.models.FrequencyUnderThreshholdSelector Maven / Gradle / Ivy

package eu.project.ttc.models;

public class FrequencyUnderThreshholdSelector implements TermSelector {
	
	private int threshhold;

	public FrequencyUnderThreshholdSelector(int threshhold) {
		super();
		this.threshhold = threshhold;
	}
	
	public int getThreshhold() {
		return threshhold;
	}

	@Override
	public boolean select(Term t) {
		return t.getFrequency() < this.threshhold;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy