ANNOTATION
- Type of annotationpublic class ScoredAnnotation<ANNOTATION> extends Object implements Comparable<ScoredAnnotation<ANNOTATION>>
Modifier and Type | Field and Description |
---|---|
ANNOTATION |
annotation
The annotation
|
float |
confidence
The confidence of the annotation
|
Constructor and Description |
---|
ScoredAnnotation(ANNOTATION annotation,
float confidence)
Construct with the given annotation and confidence
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ScoredAnnotation<ANNOTATION> o) |
String |
toString() |
public ANNOTATION annotation
public float confidence
public ScoredAnnotation(ANNOTATION annotation, float confidence)
annotation
- the annotationconfidence
- the confidence levelpublic int compareTo(ScoredAnnotation<ANNOTATION> o)
compareTo
in interface Comparable<ScoredAnnotation<ANNOTATION>>