Question Answering Projects - Get Synonyms

プロジェクトのすべてのシノニムを取得します。

GET {Endpoint}/language/query-knowledgebases/projects/{projectName}/synonyms?api-version=2021-10-01
GET {Endpoint}/language/query-knowledgebases/projects/{projectName}/synonyms?api-version=2021-10-01&top={top}&skip={skip}&maxpagesize={maxpagesize}

URI パラメーター

名前 / 必須 説明
Endpoint
path True

string

サポートされている Cognitive Services エンドポイント (https://<resource-name>.api.cognitiveservices.azure.com など)。

projectName
path True

string

maxLength: 100

使用するプロジェクトの名前。

api-version
query True

string

クライアント API のバージョン。

maxpagesize
query

integer (int32)

1 つの応答に含めるリソースの最大数。

skip
query

integer (int32)

返される最初のリソースのコレクションへのオフセット。

top
query

integer (int32)

コレクションから返されるリソースの最大数。

要求ヘッダー

名前 必須 説明
Ocp-Apim-Subscription-Key True

string

応答

名前 説明
200 OK

SynonymAssets

プロジェクトのすべてのシノニム。

Other Status Codes

ErrorResponse

エラー応答。

セキュリティ

Ocp-Apim-Subscription-Key

型: apiKey
/: header

Successful query

要求のサンプル

GET {Endpoint}/language/query-knowledgebases/projects/proj1/synonyms?api-version=2021-10-01

応答のサンプル

{
  "value": [
    {
      "alterations": [
        "qnamaker",
        "qna maker"
      ]
    },
    {
      "alterations": [
        "botframework",
        "bot framework"
      ]
    }
  ]
}

定義

名前 説明
Error

エラー オブジェクト。

ErrorCode

人間が判読できるエラー コード。

ErrorResponse

エラー応答。

InnerErrorCode

人間が判読できるエラー コード。

InnerErrorModel

エラーに関するより具体的な情報を含むオブジェクト。 Microsoft One API のガイドラインに従って - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.

SynonymAssets

このプロジェクトのすべてのシノニムアセット。

WordAlterations

単語の変更のコレクション。

Error

エラー オブジェクト。

名前 説明
code

ErrorCode

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

details

Error[]

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

innererror

InnerErrorModel

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

message

string

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

target

string

エラーのターゲット。

ErrorCode

人間が判読できるエラー コード。

説明
InvalidRequest
InvalidArgument
Unauthorized
Forbidden
NotFound
ProjectNotFound
OperationNotFound
AzureCognitiveSearchNotFound
AzureCognitiveSearchIndexNotFound
TooManyRequests
AzureCognitiveSearchThrottling
AzureCognitiveSearchIndexLimitReached
InternalServerError
ServiceUnavailable

ErrorResponse

エラー応答。

名前 説明
error

Error

エラー オブジェクト。

InnerErrorCode

人間が判読できるエラー コード。

説明
InvalidRequest
InvalidParameterValue
KnowledgeBaseNotFound
AzureCognitiveSearchNotFound
AzureCognitiveSearchThrottling
ExtractionFailure

InnerErrorModel

エラーに関するより具体的な情報を含むオブジェクト。 Microsoft One API のガイドラインに従って - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.

名前 説明
code

InnerErrorCode

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

details

object

エラーの詳細。

innererror

InnerErrorModel

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

message

string

エラーメッセージ。

target

string

エラーターゲット。

SynonymAssets

このプロジェクトのすべてのシノニムアセット。

名前 説明
nextLink

string

value

WordAlterations[]

シノニムのコレクション。

WordAlterations

単語の変更のコレクション。

名前 説明
alterations

string[]

単語の変更のコレクション。