sendFeedback

final Document sendFeedback(Document document, Map<String, SpecificExtraction> specificExtractions, Map<String, CompoundExtraction> compoundExtractions)

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.

specificExtractions

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.

compoundExtractions

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.