public class GiniVisionSpecificExtraction extends GiniVisionExtraction
A specific extraction assings a semantic property to an extraction and it may contain a list of extraction candidates.
The extraction candidates are other suggestions for this specific extraction (e.g. all amounts on the document). Candidates are of the same entity as the found extraction.
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
Constructor and Description |
---|
GiniVisionSpecificExtraction(java.lang.String name,
java.lang.String value,
java.lang.String entity,
GiniVisionBox box,
java.util.List candidates)
Value object for a specific extraction from the Gini API.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.util.List |
getCandidate() |
java.lang.String |
getName() |
java.lang.String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
getBox, getEntity, getValue, isDirty, setBox, setIsDirty, setValue
public GiniVisionSpecificExtraction(java.lang.String name, java.lang.String value, java.lang.String entity, GiniVisionBox box, java.util.List candidates)
name
- The specific extraction's name, e.g. "amountToPay". See Available
Specific Extractions for a full listvalue
- normalized textual representation of the text/information provided by the
extraction value (e. g. bank number without spaces between the digits).
Changing this value marks the extraction as dirtyentity
- key (primary identification) of an entity type (e.g. banknumber). See Extraction
Entities for a full listbox
- (optional) bounding box containing the position of the extraction value on
the document. Only available for some extractions. Changing this value
marks the extraction as dirtycandidates
- A list containing other candidates for this specific extraction. Candidates
are of the same entity as the found extractionpublic int describeContents()
describeContents
in class GiniVisionExtraction
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class GiniVisionExtraction
public java.lang.String getName()
public java.util.List getCandidate()
public java.lang.String toString()
toString
in class GiniVisionExtraction