Class DocumentDataExtractionSession
-
- All Implemented Interfaces:
public final class DocumentDataExtractionSessionProvides a wrapper for observing an document data extraction result
-
-
Field Summary
Fields Modifier and Type Field Description public final static DoubleZERO_CONFIDENCE_VALUEpublic final static DoubleMODERATE_CONFIDENCE_VALUEpublic final static DoubleHIGH_CONFIDENCE_VALUE
-
Constructor Summary
Constructors Constructor Description DocumentDataExtractionSession(DocumentDataExtractor documentDataExtractor)
-
Method Summary
Modifier and Type Method Description final <Error class: unknown class><DocumentDataExtractionState>observeDocumentDataExtractionResults()Observes newly processed document final UnitpushNewDocumentDataExtractionResult(DocumentDataExtractionResult result)Notifies about the event of document extraction final <Error class: unknown class><Boolean>observeExtractionReadyState()Observes the state of document extraction final <Error class: unknown class><Boolean>observeExtractionPausedState()Observes the paused state of the session final UnitpushExtractionReadyState(Boolean ready)Notifies about the event of extraction state final UnitpushExtractionPausedState(Boolean opened)Notifies about the event of pausing the session final Unitclear()Clears the queue in the recognizer and current document state final List<DocumentDataExtractionResult>getAllDocuments()Provides access to the current state -
-
Constructor Detail
-
DocumentDataExtractionSession
DocumentDataExtractionSession(DocumentDataExtractor documentDataExtractor)
-
-
Method Detail
-
observeDocumentDataExtractionResults
final <Error class: unknown class><DocumentDataExtractionState> observeDocumentDataExtractionResults()
Observes newly processed document
-
pushNewDocumentDataExtractionResult
final Unit pushNewDocumentDataExtractionResult(DocumentDataExtractionResult result)
Notifies about the event of document extraction
-
observeExtractionReadyState
final <Error class: unknown class><Boolean> observeExtractionReadyState()
Observes the state of document extraction
-
observeExtractionPausedState
final <Error class: unknown class><Boolean> observeExtractionPausedState()
Observes the paused state of the session
-
pushExtractionReadyState
final Unit pushExtractionReadyState(Boolean ready)
Notifies about the event of extraction state
-
pushExtractionPausedState
final Unit pushExtractionPausedState(Boolean opened)
Notifies about the event of pausing the session
-
getAllDocuments
final List<DocumentDataExtractionResult> getAllDocuments()
Provides access to the current state
-
-
-
-