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:
  • 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
    int compareTo​(SetAnnotation that)  
    boolean equals​(java.lang.Object that)  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.util.HashSet

    add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator, toArray, toArray

    Methods inherited from class java.util.AbstractSet

    removeAll

    Methods inherited from class java.util.AbstractCollection

    addAll, containsAll, retainAll

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, removeIf, stream, toArray

    Methods inherited from interface java.lang.Iterable

    forEach

    Methods inherited from interface java.util.Set

    addAll, containsAll, removeAll, retainAll
  • 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

      public int compareTo​(SetAnnotation that)
      Specified by:
      compareTo in interface java.lang.Comparable<SetAnnotation>
    • equals

      public boolean equals​(java.lang.Object that)
      Specified by:
      equals in interface java.util.Collection<java.lang.Object>
      Specified by:
      equals in interface java.util.Set<java.lang.Object>
      Overrides:
      equals in class java.util.AbstractSet<java.lang.Object>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface java.util.Collection<java.lang.Object>
      Specified by:
      hashCode in interface java.util.Set<java.lang.Object>
      Overrides:
      hashCode in class java.util.AbstractSet<java.lang.Object>
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.util.AbstractCollection<java.lang.Object>