Package com.mindee.v2.product.extraction
Class ExtractionResult
- java.lang.Object
-
- com.mindee.v2.product.extraction.ExtractionResult
-
public final class ExtractionResult extends Object
The inference result for an extraction request.
-
-
Constructor Summary
Constructors Constructor Description ExtractionResult()ExtractionResult(InferenceFields fields, RawText rawText, RagMetadata rag)Creates a newExtractionResultinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)InferenceFieldsgetFields()Extracted fields, the key corresponds to the field's name in the data schema.RagMetadatagetRag()If 'rag' was activated, contains metadata about the RAG operation.RawTextgetRawText()If 'rawText' was activated, contains the extracted text of the document.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ExtractionResult
public ExtractionResult(InferenceFields fields, RawText rawText, RagMetadata rag)
Creates a newExtractionResultinstance.- Parameters:
fields- Extracted fields, the key corresponds to the field's name in the data schema.rawText- If 'rawText' was activated, contains the extracted text of the document.rag- If 'rag' was activated, contains metadata about the RAG operation.
-
ExtractionResult
public ExtractionResult()
-
-
Method Detail
-
getFields
public InferenceFields getFields()
Extracted fields, the key corresponds to the field's name in the data schema.
-
getRawText
public RawText getRawText()
If 'rawText' was activated, contains the extracted text of the document.
-
getRag
public RagMetadata getRag()
If 'rag' was activated, contains metadata about the RAG operation.
-
-