Class AnnotationSuggestion
- java.lang.Object
-
- de.tudarmstadt.ukp.inception.recommendation.api.model.AnnotationSuggestion
-
- All Implemented Interfaces:
java.io.Serializable
public class AnnotationSuggestion extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EXTENSION_ID
static int
FLAG_NO_LABEL
Suggestion has no labelstatic int
FLAG_OVERLAP
Suggestion is overlapping with an existing annotationstatic int
FLAG_REJECTED
Suggestion has been rejected (from learning history)static int
FLAG_SKIPPED
Suggestion has been skipped (from learning history)static int
FLAG_TRANSIENT_ACCEPTED
User has accepted the suggestion and prediction has not re-run yet (which would reinitialize the visbility state)static int
FLAG_TRANSIENT_CORRECTED
User has corrected the suggestion and prediction has not re-run yet (which would reinitialize the visbility state)static int
FLAG_TRANSIENT_REJECTED
User has rejected the suggestion and prediction has not re-run yet (which would reinitialize the visbility state)
-
Constructor Summary
Constructors Constructor Description 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(AnnotationSuggestion aObject)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getBegin()
double
getConfidence()
java.lang.String
getCoveredText()
java.lang.String
getDocumentName()
int
getEnd()
java.lang.String
getFeature()
int
getId()
java.lang.String
getLabel()
long
getLayerId()
Offset
getOffset()
Deprecated.Better usegetBegin()
andgetEnd()
java.lang.String
getReasonForHiding()
long
getRecommenderId()
java.lang.String
getRecommenderName()
java.lang.String
getUiLabel()
de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.VID
getVID()
int
hashCode()
void
hide(int aFlags)
boolean
isVisible()
void
show(int aFlags)
java.lang.String
toString()
-
-
-
Field Detail
-
EXTENSION_ID
public static final java.lang.String EXTENSION_ID
- See Also:
- Constant Field Values
-
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()
-
getOffset
@Deprecated public Offset getOffset()
Deprecated.Better usegetBegin()
andgetEnd()
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-