ContentAnalyzerConfig Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. ContentAnalyzerConfig
- com.
Implements
public final class ContentAnalyzerConfig
implements JsonSerializable<ContentAnalyzerConfig>
Configuration settings for an analyzer.
Constructor Summary
| Constructor | Description |
|---|---|
| ContentAnalyzerConfig() |
Creates an instance of Content |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Content |
fromJson(JsonReader jsonReader)
Reads an instance of Content |
|
Annotation |
getAnnotationFormat()
Get the annotation |
|
Chart |
getChartFormat()
Get the chart |
|
Map<String,Content |
getContentCategories()
Get the content |
| List<String> |
getLocales()
Get the locales property: List of locale hints for speech transcription. |
|
Table |
getTableFormat()
Get the table |
| Boolean |
isEstimateFieldSourceAndConfidence()
Get the estimate |
| Boolean |
isFaceBlurringDisabled()
Get the face |
| Boolean |
isFigureAnalysisEnabled()
Get the figure |
| Boolean |
isFigureDescriptionEnabled()
Get the figure |
| Boolean |
isFormulaEnabled()
Get the formula |
| Boolean |
isLayoutEnabled()
Get the layout |
| Boolean |
isOcrEnabled()
Get the ocr |
| Boolean |
isOmitContent()
Get the omit |
| Boolean |
isReturnDetails()
Get the return |
| Boolean |
isSegmentEnabled()
Get the segment |
| Boolean |
isSegmentPerPage()
Get the segment |
|
Content |
setAnnotationFormat(AnnotationFormat annotationFormat)
Set the annotation |
|
Content |
setChartFormat(ChartFormat chartFormat)
Set the chart |
|
Content |
setContentCategories(Map<String,ContentCategoryDefinition> contentCategories)
Set the content |
|
Content |
setEstimateFieldSourceAndConfidence(Boolean estimateFieldSourceAndConfidence)
Set the estimate |
|
Content |
setFaceBlurringDisabled(Boolean faceBlurringDisabled)
Set the face |
|
Content |
setFigureAnalysisEnabled(Boolean figureAnalysisEnabled)
Set the figure |
|
Content |
setFigureDescriptionEnabled(Boolean figureDescriptionEnabled)
Set the figure |
|
Content |
setFormulaEnabled(Boolean formulaEnabled)
Set the formula |
|
Content |
setLayoutEnabled(Boolean layoutEnabled)
Set the layout |
|
Content |
setLocales(List<String> locales)
Set the locales property: List of locale hints for speech transcription. |
|
Content |
setOcrEnabled(Boolean ocrEnabled)
Set the ocr |
|
Content |
setOmitContent(Boolean omitContent)
Set the omit |
|
Content |
setReturnDetails(Boolean returnDetails)
Set the return |
|
Content |
setSegmentEnabled(Boolean segmentEnabled)
Set the segment |
|
Content |
setSegmentPerPage(Boolean segmentPerPage)
Set the segment |
|
Content |
setTableFormat(TableFormat tableFormat)
Set the table |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ContentAnalyzerConfig
public ContentAnalyzerConfig()
Creates an instance of ContentAnalyzerConfig class.
Method Details
fromJson
public static ContentAnalyzerConfig fromJson(JsonReader jsonReader)
Reads an instance of ContentAnalyzerConfig from the JsonReader.
Parameters:
Returns:
Throws:
getAnnotationFormat
public AnnotationFormat getAnnotationFormat()
Get the annotationFormat property: Representation format of annotations in analyze result markdown.
Returns:
getChartFormat
public ChartFormat getChartFormat()
Get the chartFormat property: Representation format of charts in analyze result markdown.
Returns:
getContentCategories
public Map<String,ContentCategoryDefinition> getContentCategories()
Get the contentCategories property: Map of categories to classify the input content(s) against.
Returns:
getLocales
public List<String> getLocales()
Get the locales property: List of locale hints for speech transcription.
Returns:
getTableFormat
public TableFormat getTableFormat()
Get the tableFormat property: Representation format of tables in analyze result markdown.
Returns:
isEstimateFieldSourceAndConfidence
public Boolean isEstimateFieldSourceAndConfidence()
Get the estimateFieldSourceAndConfidence property: Return field grounding source and confidence.
Returns:
isFaceBlurringDisabled
public Boolean isFaceBlurringDisabled()
Get the faceBlurringDisabled property: Disable the default blurring of faces for privacy while processing the content.
Returns:
isFigureAnalysisEnabled
public Boolean isFigureAnalysisEnabled()
Get the figureAnalysisEnabled property: Enable analysis of figures, such as charts and diagrams.
Returns:
isFigureDescriptionEnabled
public Boolean isFigureDescriptionEnabled()
Get the figureDescriptionEnabled property: Enable generation of figure description.
Returns:
isFormulaEnabled
public Boolean isFormulaEnabled()
Get the formulaEnabled property: Enable mathematical formula detection.
Returns:
isLayoutEnabled
public Boolean isLayoutEnabled()
Get the layoutEnabled property: Enable layout analysis.
Returns:
isOcrEnabled
public Boolean isOcrEnabled()
Get the ocrEnabled property: Enable optical character recognition (OCR).
Returns:
isOmitContent
public Boolean isOmitContent()
Get the omitContent property: Omit the content for this analyzer from analyze result. Only return content(s) from additional analyzers specified in contentCategories, if any.
Returns:
isReturnDetails
public Boolean isReturnDetails()
Get the returnDetails property: Return all content details.
Returns:
isSegmentEnabled
public Boolean isSegmentEnabled()
Get the segmentEnabled property: Enable segmentation of the input by contentCategories.
Returns:
isSegmentPerPage
public Boolean isSegmentPerPage()
Get the segmentPerPage property: Force segmentation of document content by page.
Returns:
setAnnotationFormat
public ContentAnalyzerConfig setAnnotationFormat(AnnotationFormat annotationFormat)
Set the annotationFormat property: Representation format of annotations in analyze result markdown.
Parameters:
Returns:
setChartFormat
public ContentAnalyzerConfig setChartFormat(ChartFormat chartFormat)
Set the chartFormat property: Representation format of charts in analyze result markdown.
Parameters:
Returns:
setContentCategories
public ContentAnalyzerConfig setContentCategories(Map<String,ContentCategoryDefinition> contentCategories)
Set the contentCategories property: Map of categories to classify the input content(s) against.
Parameters:
Returns:
setEstimateFieldSourceAndConfidence
public ContentAnalyzerConfig setEstimateFieldSourceAndConfidence(Boolean estimateFieldSourceAndConfidence)
Set the estimateFieldSourceAndConfidence property: Return field grounding source and confidence.
Parameters:
Returns:
setFaceBlurringDisabled
public ContentAnalyzerConfig setFaceBlurringDisabled(Boolean faceBlurringDisabled)
Set the faceBlurringDisabled property: Disable the default blurring of faces for privacy while processing the content.
Parameters:
Returns:
setFigureAnalysisEnabled
public ContentAnalyzerConfig setFigureAnalysisEnabled(Boolean figureAnalysisEnabled)
Set the figureAnalysisEnabled property: Enable analysis of figures, such as charts and diagrams.
Parameters:
Returns:
setFigureDescriptionEnabled
public ContentAnalyzerConfig setFigureDescriptionEnabled(Boolean figureDescriptionEnabled)
Set the figureDescriptionEnabled property: Enable generation of figure description.
Parameters:
Returns:
setFormulaEnabled
public ContentAnalyzerConfig setFormulaEnabled(Boolean formulaEnabled)
Set the formulaEnabled property: Enable mathematical formula detection.
Parameters:
Returns:
setLayoutEnabled
public ContentAnalyzerConfig setLayoutEnabled(Boolean layoutEnabled)
Set the layoutEnabled property: Enable layout analysis.
Parameters:
Returns:
setLocales
public ContentAnalyzerConfig setLocales(List<String> locales)
Set the locales property: List of locale hints for speech transcription.
Parameters:
Returns:
setOcrEnabled
public ContentAnalyzerConfig setOcrEnabled(Boolean ocrEnabled)
Set the ocrEnabled property: Enable optical character recognition (OCR).
Parameters:
Returns:
setOmitContent
public ContentAnalyzerConfig setOmitContent(Boolean omitContent)
Set the omitContent property: Omit the content for this analyzer from analyze result. Only return content(s) from additional analyzers specified in contentCategories, if any.
Parameters:
Returns:
setReturnDetails
public ContentAnalyzerConfig setReturnDetails(Boolean returnDetails)
Set the returnDetails property: Return all content details.
Parameters:
Returns:
setSegmentEnabled
public ContentAnalyzerConfig setSegmentEnabled(Boolean segmentEnabled)
Set the segmentEnabled property: Enable segmentation of the input by contentCategories.
Parameters:
Returns:
setSegmentPerPage
public ContentAnalyzerConfig setSegmentPerPage(Boolean segmentPerPage)
Set the segmentPerPage property: Force segmentation of document content by page.
Parameters:
Returns:
setTableFormat
public ContentAnalyzerConfig setTableFormat(TableFormat tableFormat)
Set the tableFormat property: Representation format of tables in analyze result markdown.
Parameters:
Returns: