
fr.univnantes.julestar.tokensner.IsInFirstNameLexicon Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of uima-tokens-ner Show documentation
Show all versions of uima-tokens-ner Show documentation
Uploads all artifacts belonging to configuration ':archives'
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