Class DocumentDataExtractionSession
-
- All Implemented Interfaces:
public final class DocumentDataExtractionSession
Provides a wrapper for observing an document data extraction result
-
-
Field Summary
Fields Modifier and Type Field Description public final static Double
ZERO_CONFIDENCE_VALUE
public final static Double
MODERATE_CONFIDENCE_VALUE
public final static Double
HIGH_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 Unit
pushNewDocumentDataExtractionResult(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 Unit
pushExtractionReadyState(Boolean ready)
Notifies about the event of extraction state final Unit
pushExtractionPausedState(Boolean opened)
Notifies about the event of pausing the session final Unit
clear()
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
-
-
-
-