hr.fer.zemris.takelab.uima.annotator.hunpos.HunPosAnnotationMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of heideltime Show documentation
Show all versions of heideltime Show documentation
HeidelTime is a multilingual cross-domain temporal tagger that extracts temporal expressions from documents and normalizes them according to the TIMEX3 annotation standard.
package hr.fer.zemris.takelab.uima.annotator.hunpos;
import java.util.regex.Pattern;
public class HunPosAnnotationMapping {
private Pattern pattern;
private String translation;
public HunPosAnnotationMapping(String pattern, String translation) {
this.pattern = Pattern.compile(pattern);
this.translation = translation;
}
public boolean match(String candidate) {
return pattern.matcher(candidate).matches();
}
public String getTranslation() {
return this.translation;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy