次の方法で共有


Content Analyzers - Create Or Replace

非同期で新しいアナライザーを作成します。

PUT {endpoint}/contentunderstanding/analyzers/{analyzerId}?api-version=2025-11-01
PUT {endpoint}/contentunderstanding/analyzers/{analyzerId}?api-version=2025-11-01&allowReplace={allowReplace}

URI パラメーター

名前 / 必須 説明
analyzerId
path True

string

minLength: 1
maxLength: 64
pattern: ^[a-zA-Z0-9._-]{1,64}$

アナライザーの固有の識別子。

endpoint
path True

string (uri)

コンテンツ理解サービスエンドポイント。

api-version
query True

string

minLength: 1

この操作に使用する API バージョン。

allowReplace
query

boolean

既存のリソースを置き換えることを許可します。

要求ヘッダー

名前 必須 説明
x-ms-client-request-id

string (uuid)

要求の非透過的なグローバルに一意のクライアント生成文字列識別子。

要求本文

名前 説明
baseAnalyzerId

string

minLength: 1
maxLength: 64
pattern: ^[a-zA-Z0-9._-]{1,64}$

アナライザーから段階的に学習できます。

config

ContentAnalyzerConfig

アナライザーの設定。

description

string

アナライザーの説明。

dynamicFieldSchema

boolean

定義されたスキーマ外の追加フィールドを含む可能性があるかどうかを示します。

fieldSchema

ContentFieldSchema

抽出すべきフィールドのスキーマ。

knowledgeSources KnowledgeSource[]:

LabeledDataKnowledgeSource[]

分析装置を強化するために使われる追加の知識源。

models

object

モデルの役割を特定のモデル名にマッピングすること。 例: { "完了": "gpt-4.1", "embedding": "text-embedding-3-large" }.

processingLocation

ProcessingLocation

データが処理される場所。 デフォルトはグローバルに設定されます。

tags

object

アナライザーに関連付けられたタグ。

応答

名前 説明
200 OK

ContentAnalyzer

要求は成功しました。

ヘッダー

  • Operation-Location: string
  • x-ms-client-request-id: string
201 Created

ContentAnalyzer

要求が成功し、結果として新しいリソースが作成されました。

ヘッダー

  • Operation-Location: string
  • x-ms-client-request-id: string
Other Status Codes

Azure.Core.Foundations.ErrorResponse

予期しないエラー応答。

ヘッダー

x-ms-error-code: string

セキュリティ

Ocp-Apim-Subscription-Key

Azureリソースのアクセスキーを使った鍵ベースの認証。

型: apiKey
/: header

EntraIdToken

Microsoft Entra ID OAuth2認証はアクセストークンを使いました。

型: oauth2
フロー: accessCode
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize
Token URL (トークン URL): https://login.microsoftonline.com/common/oauth2/token

スコープ

名前 説明
https://cognitiveservices.azure.com/.default

Create or Replace Analyzer

要求のサンプル

PUT {endpoint}/contentunderstanding/analyzers/myAnalyzer?api-version=2025-11-01

{
  "description": "My analyzer",
  "tags": {
    "createdBy": "John"
  },
  "baseAnalyzerId": "prebuilt-document",
  "config": {
    "enableFormula": false,
    "returnDetails": true
  },
  "fieldSchema": {
    "name": "MyForm",
    "description": "My form",
    "fields": {
      "Company": {
        "type": "string",
        "description": "Name of company."
      }
    },
    "definitions": {}
  },
  "knowledgeSources": [
    {
      "kind": "labeledData",
      "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer",
      "prefix": "trainingData",
      "fileListPath": "trainingData/fileList.jsonl"
    }
  ]
}

応答のサンプル

Operation-Location: https://myendpoint.cognitiveservices.azure.com/contentunderstanding/analyzers/myAnalyzer/operations/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2025-11-01
{
  "analyzerId": "myAnalyzer",
  "description": "My analyzer",
  "tags": {
    "createdBy": "John"
  },
  "status": "creating",
  "createdAt": "2025-05-01T18:46:36.051Z",
  "lastModifiedAt": "2025-05-01T18:46:36.051Z",
  "baseAnalyzerId": "prebuilt-document",
  "config": {
    "locales": null,
    "enableOcr": true,
    "enableLayout": true,
    "enableFormula": false,
    "returnDetails": true
  },
  "fieldSchema": {
    "name": "MyForm",
    "description": "My form",
    "fields": {
      "Company": {
        "type": "string",
        "description": "Name of company."
      }
    },
    "definitions": {}
  },
  "knowledgeSources": [
    {
      "kind": "labeledData",
      "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer",
      "prefix": "trainingData",
      "fileListPath": "trainingData/fileList.jsonl"
    }
  ]
}
Operation-Location: https://myendpoint.cognitiveservices.azure.com/contentunderstanding/analyzers/myAnalyzer/operations/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2025-11-01
{
  "analyzerId": "myAnalyzer",
  "description": "My analyzer",
  "tags": {
    "createdBy": "John"
  },
  "status": "creating",
  "createdAt": "2025-05-01T18:46:36.051Z",
  "lastModifiedAt": "2025-05-01T18:46:36.051Z",
  "baseAnalyzerId": "prebuilt-document",
  "config": {
    "locales": null,
    "enableOcr": true,
    "enableLayout": true,
    "enableFormula": false,
    "returnDetails": true
  },
  "fieldSchema": {
    "name": "MyForm",
    "description": "My form",
    "fields": {
      "Company": {
        "type": "string",
        "description": "Name of company."
      }
    },
    "definitions": {}
  },
  "knowledgeSources": [
    {
      "kind": "labeledData",
      "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer",
      "prefix": "trainingData",
      "fileListPath": "trainingData/fileList.jsonl"
    }
  ]
}

定義

名前 説明
AnnotationFormat

分析結果マークダウンにおける注釈の表現形式。

Azure.Core.Foundations.Error

エラー オブジェクト。

Azure.Core.Foundations.ErrorResponse

エラーの詳細を含む応答。

Azure.Core.Foundations.InnerError

エラーに関するより具体的な情報を含むオブジェクト。 Azure REST API ガイドライン - https://aka.ms/AzureRestApiGuidelines#handling-errorsに準拠。

ChartFormat

分析結果マークダウンにおけるチャートの表現形式。

ContentAnalyzer

マルチモーダル文書から内容やフィールドを抽出するアナライザー。

ContentAnalyzerConfig

アナライザーの設定。

ContentAnalyzerStatus

資源のステータス。

ContentCategoryDefinition

コンテンツカテゴリの定義。

ContentFieldDefinition

構文のようなJSONスキーマを使ったフィールドの定義。

ContentFieldSchema

文書から抽出するフィールドのスキーマ。

ContentFieldType

フィールド値のセマンティック データ型。

GenerationMethod

生成方法。

KnowledgeSourceKind

知識源のタイプです。

LabeledDataKnowledgeSource

データ知識源とラベル付けされています。

ProcessingLocation

データが処理される場所。 デフォルトはグローバルに設定されます。

SupportedModels

アナライザーがサポートするチャット完了および埋め込みモデル。

TableFormat

分析結果マークダウンにおける表の表現形式。

AnnotationFormat

分析結果マークダウンにおける注釈の表現形式。

説明
none

注釈は表していません。

markdown

マークダウンフォーマットで基本的な注釈情報を表現します。

Azure.Core.Foundations.Error

エラー オブジェクト。

名前 説明
code

string

サーバー定義の一連のエラー コードの 1 つ。

details

Azure.Core.Foundations.Error[]

この報告されたエラーの原因となった特定のエラーに関する詳細の配列。

innererror

Azure.Core.Foundations.InnerError

エラーに関する現在のオブジェクトよりも具体的な情報を含むオブジェクト。

message

string

エラーの人間が判読できる表現。

target

string

エラーのターゲット。

Azure.Core.Foundations.ErrorResponse

エラーの詳細を含む応答。

名前 説明
error

Azure.Core.Foundations.Error

エラー オブジェクト。

Azure.Core.Foundations.InnerError

エラーに関するより具体的な情報を含むオブジェクト。 Azure REST API ガイドライン - https://aka.ms/AzureRestApiGuidelines#handling-errorsに準拠。

名前 説明
code

string

サーバー定義の一連のエラー コードの 1 つ。

innererror

Azure.Core.Foundations.InnerError

内部エラー。

ChartFormat

分析結果マークダウンにおけるチャートの表現形式。

説明
chartJs

チャートを Chart.js コードブロックとして表現します。

markdown

チャートはマークダウンテーブルで表現します。

ContentAnalyzer

マルチモーダル文書から内容やフィールドを抽出するアナライザー。

名前 規定値 説明
analyzerId

string

minLength: 1
maxLength: 64
pattern: ^[a-zA-Z0-9._-]{1,64}$

アナライザーの固有の識別子。

baseAnalyzerId

string

minLength: 1
maxLength: 64
pattern: ^[a-zA-Z0-9._-]{1,64}$

アナライザーから段階的に学習できます。

config

ContentAnalyzerConfig

アナライザーの設定。

createdAt

string (date-time)

アナライザーが作られた日時。

description

string

アナライザーの説明。

dynamicFieldSchema

boolean

False

定義されたスキーマ外の追加フィールドを含む可能性があるかどうかを示します。

fieldSchema

ContentFieldSchema

抽出すべきフィールドのスキーマ。

knowledgeSources KnowledgeSource[]:

LabeledDataKnowledgeSource[]

分析装置を強化するために使われる追加の知識源。

lastModifiedAt

string (date-time)

アナライザーが最後に修正された日時。

models

object

モデルの役割を特定のモデル名にマッピングすること。 例: { "完了": "gpt-4.1", "embedding": "text-embedding-3-large" }.

processingLocation

ProcessingLocation

global

データが処理される場所。 デフォルトはグローバルに設定されます。

status

ContentAnalyzerStatus

アナライザーの状態。

supportedModels

SupportedModels

アナライザーがサポートするチャット完了および埋め込みモデル。

tags

object

アナライザーに関連付けられたタグ。

warnings

Azure.Core.Foundations.Error[]

アナライザー作成時に遭遇した警告。

ContentAnalyzerConfig

アナライザーの設定。

名前 規定値 説明
annotationFormat

AnnotationFormat

markdown

分析結果マークダウンにおける注釈の表現形式。

chartFormat

ChartFormat

chartJs

分析結果マークダウンにおけるチャートの表現形式。

contentCategories

<string,  ContentCategoryDefinition>

入力内容を分類するためのカテゴリマップ。

disableFaceBlurring

boolean

プライバシー保護のために、コンテンツ処理中のデフォルトの顔のぼかしを無効にしてください。

enableFigureAnalysis

boolean

図表や図表などの図の分析を可能にします。

enableFigureDescription

boolean

図の記述生成を有効にします。

enableFormula

boolean

数学式検出を有効にしてください。

enableLayout

boolean

レイアウト解析を有効にしてください。

enableOcr

boolean

光学文字認識(OCR)を有効にしてください。

enableSegment

boolean

入力をcontentCategoriesごとにセグメント化できるようにします。

estimateFieldSourceAndConfidence

boolean

フィールドの接地源と信頼を戻します。

locales

string[]

音声書き起こしのための場所のヒント一覧。

omitContent

boolean

分析結果からこのアナライザーの内容は省略してください。 contentCategoriesで指定された追加のアナライザーからのみコンテンツを返します。

returnDetails

boolean

すべてのコンテンツ詳細を返却してください。

segmentPerPage

boolean

ドキュメント内容をページごとに強制的に分割すること。

tableFormat

TableFormat

html

分析結果マークダウンにおける表の表現形式。

ContentAnalyzerStatus

資源のステータス。

説明
creating

リソースを作成しています。

ready

リソースは準備できています。

deleting

リソースが削除されています。

failed

そのリソースは作成中に故障しました。

ContentCategoryDefinition

コンテンツカテゴリの定義。

名前 説明
analyzer

ContentAnalyzer

コンテンツ処理に使用するアナライザーのオプションのインライン定義。

analyzerId

string

内容処理にはオプションのアナライザーを使用します。

description

string

カテゴリの説明。

ContentFieldDefinition

構文のようなJSONスキーマを使ったフィールドの定義。

名前 説明
$ref

string

別の場の定義を参照。

description

string

フィールド説明。

enum

string[]

可能な場値の列挙。

enumDescriptions

object

各列挙値の説明。

estimateSourceAndConfidence

boolean

返すのはグラウンディングの源と自信です。

examples

string[]

場の価値の例。

items

ContentFieldDefinition

各配列要素のフィールドタイプスキーマ(型が配列の場合)。

method

GenerationMethod

生成方法。

properties

<string,  ContentFieldDefinition>

型がオブジェクトの場合、名前付きサブフィールド。

type

ContentFieldType

フィールド値のセマンティック データ型。

ContentFieldSchema

文書から抽出するフィールドのスキーマ。

名前 説明
definitions

<string,  ContentFieldDefinition>

スキーマ内のフィールドが参照する追加の定義。

description

string

フィールドスキーマの説明。

fields

<string,  ContentFieldDefinition>

スキーマで定義されたフィールドです。

name

string

フィールドスキーマの名前です。

ContentFieldType

フィールド値のセマンティック データ型。

説明
string

標準のテキスト

date

日付はISO 8601(YYYY-MM-DD)形式に正規化されています。

time

時間はISO 8601(hh:mm:ss)形式に正規化されています。

number

数値は倍精度浮動小数点です。

integer

整数は64ビット符号付き整数として使われます。

boolean

ブール値。

array

同じタイプのサブフィールドの一覧。

object

サブフィールドの命名リスト。

json

JSON オブジェクト。

GenerationMethod

生成方法。

説明
generate

値は内容に基づいて自由に生成されます。

extract

値は内容に現れるごとに抽出されます。

classify

値はあらかじめ定義されたカテゴリーのセットに基づいて分類されます。

KnowledgeSourceKind

知識源のタイプです。

説明
labeledData

ラベル付きデータ知識源。

LabeledDataKnowledgeSource

データ知識源とラベル付けされています。

名前 説明
containerUrl

string (uri)

ラベル付きデータを含むブロブコンテナのURLです。

fileListPath

string

特定のブロブを含めるためのファイルへのオプションパス。

kind string:

labeledData

知識の源の種。

prefix

string

コンテナ内のブロブをフィルタリングするためのオプションのプレフィックス。

ProcessingLocation

データが処理される場所。 デフォルトはグローバルに設定されます。

説明
geography

データはリソースと同じ地理的環境で処理されることがあります。

dataZone

データはリソースと同じデータゾーン内で処理されることがあります。

global

データは世界中のどのAzureデータセンターでも処理可能です。

SupportedModels

アナライザーがサポートするチャット完了および埋め込みモデル。

名前 説明
completion

object

アナライザーがサポートするチャット完了モデル。

embedding

object

アナライザーでサポートされる埋め込みモデル。

TableFormat

分析結果マークダウンにおける表の表現形式。

説明
html

HTMLテーブル要素で表を表現します: <table>、 <th>、 <tr>、 <td>。

markdown

テーブルは、結合セルやリッチヘッダーをサポートしないGitHubのフレーバー付きMarkdownテーブル構文で表します。