Package com.mindee.parsing.v2
Class InferenceResult
- java.lang.Object
-
- com.mindee.parsing.v2.InferenceResult
-
public final class InferenceResult extends Object
The inference result for an extraction request.
-
-
Constructor Summary
Constructors Constructor Description InferenceResult()InferenceResult(InferenceFields fields, RawText rawText, RagMetadata rag)
-
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
-
InferenceResult
public InferenceResult(InferenceFields fields, RawText rawText, RagMetadata rag)
-
InferenceResult
public InferenceResult()
-
-
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.
-
-