Class RecognisedObject
- java.lang.Object
-
- org.apache.tika.parser.recognition.RecognisedObject
-
- Direct Known Subclasses:
CaptionObject
public class RecognisedObject extends java.lang.Object
A model for recognised objects from graphics and texts typically includes human readable label for the object, language of the label, id and confidence score.- Since:
- Apache Tika 1.14
-
-
Constructor Summary
Constructors Constructor Description RecognisedObject(java.lang.String label, java.lang.String labelLang, java.lang.String id, double confidence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getConfidence()
java.lang.String
getId()
java.lang.String
getLabel()
java.lang.String
getLabelLang()
void
setConfidence(double confidence)
void
setId(java.lang.String id)
void
setLabel(java.lang.String label)
void
setLabelLang(java.lang.String labelLang)
java.lang.String
toString()
-
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String label)
-
getLabelLang
public java.lang.String getLabelLang()
-
setLabelLang
public void setLabelLang(java.lang.String labelLang)
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getConfidence
public double getConfidence()
-
setConfidence
public void setConfidence(double confidence)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-