Class SetAnnotation
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<java.lang.Object>
org.dkpro.statistics.agreement.distance.SetAnnotation
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<SetAnnotation>,java.lang.Iterable<java.lang.Object>,java.util.Collection<java.lang.Object>,java.util.Set<java.lang.Object>
public class SetAnnotation extends java.util.HashSet<java.lang.Object> implements java.lang.Comparable<SetAnnotation>
Represents a set of categories that can be used as annotation type in a multi-labeling setting.
That is, an annotation study allowing the raters to assign multiple elements from a given set of
categories to the very same unit. An example is tagging summaries with multiple content units, as
it done for the pyramid method (cf. Passonneau, 2006). Another example is relation anchoring
(i.e., the task of finding the correct word senses of the source and the target of a semantic
relation. In this setting, raters may assign multiple word senses to a relation endpoint (cf.
Meyer & Gurevych, 2012).
References:
References:
- Meyer, C.M. & Gurevych, I.: OntoWiktionary – Constructing an Ontology from the Collaborative Online Dictionary Wiktionary. In: Semi-Automatic Ontology Development: Processes and Resources, p. 131–161, Hershey, PA: IGI Global, 2012.
- Passonneau, R.: Measuring agreement on set-valued items (MASI) for semantic and pragmatic annotation, in: Proceedings of the Fifth International Conference on Language Resources and Evaluation, p. 831–836, 2006.
- Author:
- Christian M. Meyer
- See Also:
IDistanceFunction,SetAnnotationDistanceFunction,MASISetAnnotationDistanceFunction, Serialized Form
-
Constructor Summary
Constructors Constructor Description SetAnnotation()Instantiates an empty set annotation.SetAnnotation(java.lang.Object... values)Instantiates a set annotation with the given values as set elements.SetAnnotation(java.util.Collection<? extends java.lang.Object> c)Instantiates a set annotation with the given values as set elements. -
Method Summary
Modifier and Type Method Description intcompareTo(SetAnnotation that)booleanequals(java.lang.Object that)inthashCode()java.lang.StringtoString()Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator, toArray, toArray
-
Constructor Details
-
SetAnnotation
public SetAnnotation()Instantiates an empty set annotation. -
SetAnnotation
public SetAnnotation(java.lang.Object... values)Instantiates a set annotation with the given values as set elements. -
SetAnnotation
public SetAnnotation(java.util.Collection<? extends java.lang.Object> c)Instantiates a set annotation with the given values as set elements.
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<SetAnnotation>
-
equals
public boolean equals(java.lang.Object that)- Specified by:
equalsin interfacejava.util.Collection<java.lang.Object>- Specified by:
equalsin interfacejava.util.Set<java.lang.Object>- Overrides:
equalsin classjava.util.AbstractSet<java.lang.Object>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacejava.util.Collection<java.lang.Object>- Specified by:
hashCodein interfacejava.util.Set<java.lang.Object>- Overrides:
hashCodein classjava.util.AbstractSet<java.lang.Object>
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.util.AbstractCollection<java.lang.Object>
-