Class ExtractionParameters
- java.lang.Object
-
- com.mindee.v2.clientoptions.BaseProductParameters
-
- com.mindee.v2.product.extraction.params.ExtractionParameters
-
@ProductAttributes(slug="extraction") public final class ExtractionParameters extends BaseProductParameters
Options to pass when calling methods using the API V2.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExtractionParameters.BuilderFluent builder forExtractionParameters.-
Nested classes/interfaces inherited from class com.mindee.v2.clientoptions.BaseProductParameters
BaseProductParameters.BaseBuilder<T extends BaseProductParameters.BaseBuilder<T>>
-
-
Field Summary
-
Fields inherited from class com.mindee.v2.clientoptions.BaseProductParameters
alias, modelId, webhookIds
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExtractionParameters.Builderbuilder(String modelId)Create a new builder.protected booleancanEqual(Object other)booleanequals(Object o)BooleangetConfidence()Boost the precision and accuracy of all extractions.StringgetDataSchema()Dynamic changes to the data schema of the model for this inference.BooleangetPolygon()Calculate bounding box polygons for all fields.BooleangetRag()Enhance extraction accuracy with Retrieval-Augmented Generation.BooleangetRawText()Extract the full text content from the document as strings.Map<String,String>getRequestParameters()StringgetTextContext()Additional text context used by the model during inference.inthashCode()-
Methods inherited from class com.mindee.v2.clientoptions.BaseProductParameters
getAlias, getModelId, getWebhookIds, toString
-
-
-
-
Method Detail
-
getRequestParameters
public Map<String,String> getRequestParameters()
- Overrides:
getRequestParametersin classBaseProductParameters
-
builder
public static ExtractionParameters.Builder builder(String modelId)
Create a new builder.- Parameters:
modelId- the mandatory model identifier- Returns:
- a fresh
ExtractionParameters.Builder
-
getRag
public Boolean getRag()
Enhance extraction accuracy with Retrieval-Augmented Generation.
-
getRawText
public Boolean getRawText()
Extract the full text content from the document as strings.
-
getPolygon
public Boolean getPolygon()
Calculate bounding box polygons for all fields.
-
getConfidence
public Boolean getConfidence()
Boost the precision and accuracy of all extractions. Calculate confidence scores for all fields.
-
getTextContext
public String getTextContext()
Additional text context used by the model during inference. Not recommended, for specific use only.
-
getDataSchema
public String getDataSchema()
Dynamic changes to the data schema of the model for this inference.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classBaseProductParameters
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classBaseProductParameters
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBaseProductParameters
-
-