Interface IUnitizingAnnotationUnit

All Superinterfaces:
java.lang.Comparable<IUnitizingAnnotationUnit>, IAnnotationUnit, java.io.Serializable
All Known Implementing Classes:
UnitizingAnnotationUnit

public interface IUnitizingAnnotationUnit
extends IAnnotationUnit, java.lang.Comparable<IUnitizingAnnotationUnit>
Extension of the IAnnotationUnit interface for representing the annotation units of IUnitizingAnnotationStudys. That is, an annotation unit that models the position of the unit within the continuum of an annotation study and the category assigned to this unit by a certain rater. Implement this interface when measuring inter-rater agreement using a IUnitizingAgreementMeasure.
Author:
Christian M. Meyer
See Also:
IAnnotationUnit, IUnitizingAgreementMeasure, IUnitizingAnnotationStudy
  • Method Summary

    Modifier and Type Method Description
    long getEndOffset()
    Returns the right delimiter of the annotation unit (i.e., the end position of the identified segment).
    long getLength()
    Returns the length of the annotation unit (i.e., the difference between the end and start position of the identified segment).
    long getOffset()
    Returns the offset of the annotation unit (i.e., the start position of the identified segment).

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface org.dkpro.statistics.agreement.IAnnotationUnit

    getCategory, getRaterIdx
  • Method Details

    • getOffset

      long getOffset()
      Returns the offset of the annotation unit (i.e., the start position of the identified segment).
    • getLength

      long getLength()
      Returns the length of the annotation unit (i.e., the difference between the end and start position of the identified segment).
    • getEndOffset

      long getEndOffset()
      Returns the right delimiter of the annotation unit (i.e., the end position of the identified segment). The method is a shorthand for getOffset() + getLength().