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

hr.fer.zemris.takelab.uima.annotator.hunpos.HunPosAnnotationMapping Maven / Gradle / Ivy

Go to download

HeidelTime is a multilingual cross-domain temporal tagger that extracts temporal expressions from documents and normalizes them according to the TIMEX3 annotation standard.

There is a newer version: 2.2.1
Show newest version
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