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

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

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

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

public class IsInPersonTitlesLexicon extends CoveredTextMatcher {
	private MapResource titles;
	
	public IsInPersonTitlesLexicon(MapResource titles) {
		super();
		this.titles = titles;
	}
	
	@Override
	protected boolean match(String text) {
		return titles.getValueUnchecked(text) != null;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy