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

fr.univnantes.julestar.tokensner.IsInFirstNameLexicon Maven / Gradle / Ivy

The newest version!
package fr.univnantes.julestar.tokensner;

import fr.univnantes.julestar.uima.resources.SetResource;
import fr.univnantes.lina.uima.tkregex.matchers.CoveredTextMatcher;

public class IsInFirstNameLexicon extends CoveredTextMatcher {
	private SetResource firstNames;
	
	public IsInFirstNameLexicon(SetResource firstNames) {
		super();
		this.firstNames = firstNames;
	}
	
	@Override
	protected boolean match(String text) {
		return firstNames.containsValue(text.toLowerCase());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy