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

justhalf.nlp.reader.acereader.ACEValueMention Maven / Gradle / Ivy

package justhalf.nlp.reader.acereader;

import edu.stanford.nlp.util.Comparators;

public class ACEValueMention extends ACEObjectMention implements Comparable {
	
	public ACEValueMention(String id, Span span, String text, ACEValue value) {
		super(id, span, text, value);
	}

	@Override
	public int compareTo(ACEValueMention o) {
		int result = Comparators.nullSafeCompare(span, o.span);
		if(result != 0) return result;
		return Comparators.nullSafeCompare(id, o.id);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy