ContentAnalyzer Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. ContentAnalyzer
- com.
Implements
public final class ContentAnalyzer
implements JsonSerializable<ContentAnalyzer>
Analyzer that extracts content and fields from multimodal documents.
Constructor Summary
| Constructor | Description |
|---|---|
| ContentAnalyzer() |
Creates an instance of Content |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Content |
fromJson(JsonReader jsonReader)
Reads an instance of Content |
| String |
getAnalyzerId()
Get the analyzer |
| String |
getBaseAnalyzerId()
Get the base |
|
Content |
getConfig()
Get the config property: Analyzer configuration settings. |
|
Offset |
getCreatedAt()
Get the created |
| String |
getDescription()
Get the description property: A description of the analyzer. |
|
Content |
getFieldSchema()
Get the field |
|
List<Knowledge |
getKnowledgeSources()
Get the knowledge |
|
Offset |
getLastModifiedAt()
Get the last |
| Map<String,String> |
getModels()
Get the models property: Mapping of model roles to specific model names. |
|
Processing |
getProcessingLocation()
Get the processing |
|
Content |
getStatus()
Get the status property: The status of the analyzer. |
|
Supported |
getSupportedModels()
Get the supported |
| Map<String,String> |
getTags()
Get the tags property: Tags associated with the analyzer. |
|
List<Response |
getWarnings()
Get the warnings property: Warnings encountered while creating the analyzer. |
| Boolean |
isDynamicFieldSchema()
Get the dynamic |
|
Content |
setBaseAnalyzerId(String baseAnalyzerId)
Set the base |
|
Content |
setConfig(ContentAnalyzerConfig config)
Set the config property: Analyzer configuration settings. |
|
Content |
setDescription(String description)
Set the description property: A description of the analyzer. |
|
Content |
setDynamicFieldSchema(Boolean dynamicFieldSchema)
Set the dynamic |
|
Content |
setFieldSchema(ContentFieldSchema fieldSchema)
Set the field |
|
Content |
setKnowledgeSources(List<KnowledgeSource> knowledgeSources)
Set the knowledge |
|
Content |
setModels(Map<String,String> models)
Set the models property: Mapping of model roles to specific model names. |
|
Content |
setProcessingLocation(ProcessingLocation processingLocation)
Set the processing |
|
Content |
setTags(Map<String,String> tags)
Set the tags property: Tags associated with the analyzer. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ContentAnalyzer
public ContentAnalyzer()
Creates an instance of ContentAnalyzer class.
Method Details
fromJson
public static ContentAnalyzer fromJson(JsonReader jsonReader)
Reads an instance of ContentAnalyzer from the JsonReader.
Parameters:
Returns:
Throws:
getAnalyzerId
public String getAnalyzerId()
Get the analyzerId property: The unique identifier of the analyzer.
Returns:
getBaseAnalyzerId
public String getBaseAnalyzerId()
Get the baseAnalyzerId property: The analyzer to incrementally train from.
Returns:
getConfig
public ContentAnalyzerConfig getConfig()
Get the config property: Analyzer configuration settings.
Returns:
getCreatedAt
public OffsetDateTime getCreatedAt()
Get the createdAt property: The date and time when the analyzer was created.
Returns:
getDescription
public String getDescription()
Get the description property: A description of the analyzer.
Returns:
getFieldSchema
public ContentFieldSchema getFieldSchema()
Get the fieldSchema property: The schema of fields to extracted.
Returns:
getKnowledgeSources
public List<KnowledgeSource> getKnowledgeSources()
Get the knowledgeSources property: Additional knowledge sources used to enhance the analyzer.
Returns:
getLastModifiedAt
public OffsetDateTime getLastModifiedAt()
Get the lastModifiedAt property: The date and time when the analyzer was last modified.
Returns:
getModels
public Map<String,String> getModels()
Get the models property: Mapping of model roles to specific model names. Ex. { "completion": "gpt-4.1", "embedding": "text-embedding-3-large" }.
Returns:
getProcessingLocation
public ProcessingLocation getProcessingLocation()
Get the processingLocation property: The location where the data may be processed. Defaults to global.
Returns:
getStatus
public ContentAnalyzerStatus getStatus()
Get the status property: The status of the analyzer.
Returns:
getSupportedModels
public SupportedModels getSupportedModels()
Get the supportedModels property: Chat completion and embedding models supported by the analyzer.
Returns:
getTags
public Map<String,String> getTags()
Get the tags property: Tags associated with the analyzer.
Returns:
getWarnings
public List<ResponseError> getWarnings()
Get the warnings property: Warnings encountered while creating the analyzer.
Returns:
isDynamicFieldSchema
public Boolean isDynamicFieldSchema()
Get the dynamicFieldSchema property: Indicates whether the result may contain additional fields outside of the defined schema.
Returns:
setBaseAnalyzerId
public ContentAnalyzer setBaseAnalyzerId(String baseAnalyzerId)
Set the baseAnalyzerId property: The analyzer to incrementally train from.
Parameters:
Returns:
setConfig
public ContentAnalyzer setConfig(ContentAnalyzerConfig config)
Set the config property: Analyzer configuration settings.
Parameters:
Returns:
setDescription
public ContentAnalyzer setDescription(String description)
Set the description property: A description of the analyzer.
Parameters:
Returns:
setDynamicFieldSchema
public ContentAnalyzer setDynamicFieldSchema(Boolean dynamicFieldSchema)
Set the dynamicFieldSchema property: Indicates whether the result may contain additional fields outside of the defined schema.
Parameters:
Returns:
setFieldSchema
public ContentAnalyzer setFieldSchema(ContentFieldSchema fieldSchema)
Set the fieldSchema property: The schema of fields to extracted.
Parameters:
Returns:
setKnowledgeSources
public ContentAnalyzer setKnowledgeSources(List<KnowledgeSource> knowledgeSources)
Set the knowledgeSources property: Additional knowledge sources used to enhance the analyzer.
Parameters:
Returns:
setModels
public ContentAnalyzer setModels(Map<String,String> models)
Set the models property: Mapping of model roles to specific model names. Ex. { "completion": "gpt-4.1", "embedding": "text-embedding-3-large" }.
Parameters:
Returns:
setProcessingLocation
public ContentAnalyzer setProcessingLocation(ProcessingLocation processingLocation)
Set the processingLocation property: The location where the data may be processed. Defaults to global.
Parameters:
Returns:
setTags
public ContentAnalyzer setTags(Map<String,String> tags)
Set the tags property: Tags associated with the analyzer.
Parameters:
Returns: