send Feedback
final Document sendFeedback(Document document, Map<String, SpecificExtraction> specificExtractions, Map<String, CompoundExtraction> compoundExtractions)
Content copied to clipboard
Sends approved and conceivably corrected extractions for the given document. This is called "submitting feedback on extractions" in the Gini API documentation.
Return
The same document instance when storing the updated extractions was successful.
Parameters
document
The document for which the extractions should be updated.
specific Extractions
A Map where the key is the name of the specific extraction and the value is the SpecificExtraction object. This is the same structure as returned by the getExtractions method of this manager.
compound Extractions
A Map where the key is the name of the compound extraction and the value is the CompoundExtraction object. This is the same structure as returned by the getExtractions method of this manager.
Throws
When a value of an extraction is not JSON serializable.