Class AnnotationSuggestion

  • All Implemented Interfaces:
    java.io.Serializable

    public class AnnotationSuggestion
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Detail

      • FLAG_OVERLAP

        public static final int FLAG_OVERLAP
        Suggestion is overlapping with an existing annotation
        See Also:
        Constant Field Values
      • FLAG_SKIPPED

        public static final int FLAG_SKIPPED
        Suggestion has been skipped (from learning history)
        See Also:
        Constant Field Values
      • FLAG_REJECTED

        public static final int FLAG_REJECTED
        Suggestion has been rejected (from learning history)
        See Also:
        Constant Field Values
      • FLAG_NO_LABEL

        public static final int FLAG_NO_LABEL
        Suggestion has no label
        See Also:
        Constant Field Values
      • FLAG_TRANSIENT_ACCEPTED

        public static final int FLAG_TRANSIENT_ACCEPTED
        User has accepted the suggestion and prediction has not re-run yet (which would reinitialize the visbility state)
        See Also:
        Constant Field Values
      • FLAG_TRANSIENT_REJECTED

        public static final int FLAG_TRANSIENT_REJECTED
        User has rejected the suggestion and prediction has not re-run yet (which would reinitialize the visbility state)
        See Also:
        Constant Field Values
      • FLAG_TRANSIENT_CORRECTED

        public static final int FLAG_TRANSIENT_CORRECTED
        User has corrected the suggestion and prediction has not re-run yet (which would reinitialize the visbility state)
        See Also:
        Constant Field Values
    • Constructor Detail

      • AnnotationSuggestion

        public AnnotationSuggestion​(int aId,
                                    long aRecommenderId,
                                    java.lang.String aRecommenderName,
                                    long aLayerId,
                                    java.lang.String aFeature,
                                    java.lang.String aDocumentName,
                                    java.lang.String aDocumentUri,
                                    int aBegin,
                                    int aEnd,
                                    java.lang.String aCoveredText,
                                    java.lang.String aLabel,
                                    java.lang.String aUiLabel,
                                    double aConfidence)
      • AnnotationSuggestion

        public AnnotationSuggestion​(AnnotationSuggestion aObject)
        Copy constructor.
        Parameters:
        aObject - The annotationObject to copy
    • Method Detail

      • getCoveredText

        public java.lang.String getCoveredText()
      • getBegin

        public int getBegin()
      • getEnd

        public int getEnd()
      • getId

        public int getId()
      • getLabel

        public java.lang.String getLabel()
      • getUiLabel

        public java.lang.String getUiLabel()
      • getLayerId

        public long getLayerId()
      • getFeature

        public java.lang.String getFeature()
      • getRecommenderName

        public java.lang.String getRecommenderName()
      • getConfidence

        public double getConfidence()
      • getRecommenderId

        public long getRecommenderId()
      • getDocumentName

        public java.lang.String getDocumentName()
      • hide

        public void hide​(int aFlags)
      • show

        public void show​(int aFlags)
      • getReasonForHiding

        public java.lang.String getReasonForHiding()
      • isVisible

        public boolean isVisible()
      • getVID

        public de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.VID getVID()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object