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://.api.cognitiveservices.azure.com). |
project
|
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 |
プロジェクトのすべてのシノニム。 |
|
Other Status Codes |
エラー応答。 |
セキュリティ
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 |
エラー オブジェクト。 |
Error |
人間が判読できるエラー コード。 |
Error |
エラー応答。 |
Inner |
人間が判読できるエラー コード。 |
Inner |
エラーに関するより具体的な情報を含むオブジェクト。 Microsoft One API のガイドラインに従って - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. |
Synonym |
このプロジェクトのすべてのシノニムアセット。 |
Word |
単語の変更のコレクション。 |
Error
エラー オブジェクト。
名前 | 型 | 説明 |
---|---|---|
code |
サーバー定義の一連のエラー コードの 1 つ。 |
|
details |
Error[] |
この報告されたエラーの原因となった特定のエラーに関する詳細の配列。 |
innererror |
エラーに関する現在のオブジェクトよりも具体的な情報を含むオブジェクト。 |
|
message |
string |
エラーの人間が判読できる表現。 |
target |
string |
エラーのターゲット。 |
ErrorCode
人間が判読できるエラー コード。
値 | 説明 |
---|---|
AzureCognitiveSearchIndexLimitReached | |
AzureCognitiveSearchIndexNotFound | |
AzureCognitiveSearchNotFound | |
AzureCognitiveSearchThrottling | |
Forbidden | |
InternalServerError | |
InvalidArgument | |
InvalidRequest | |
NotFound | |
OperationNotFound | |
ProjectNotFound | |
ServiceUnavailable | |
TooManyRequests | |
Unauthorized |
ErrorResponse
エラー応答。
名前 | 型 | 説明 |
---|---|---|
error |
エラー オブジェクト。 |
InnerErrorCode
人間が判読できるエラー コード。
値 | 説明 |
---|---|
AzureCognitiveSearchNotFound | |
AzureCognitiveSearchThrottling | |
ExtractionFailure | |
InvalidParameterValue | |
InvalidRequest | |
KnowledgeBaseNotFound |
InnerErrorModel
エラーに関するより具体的な情報を含むオブジェクト。 Microsoft One API のガイドラインに従って - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
名前 | 型 | 説明 |
---|---|---|
code |
サーバー定義の一連のエラー コードの 1 つ。 |
|
details |
object |
エラーの詳細。 |
innererror |
エラーに関する現在のオブジェクトよりも具体的な情報を含むオブジェクト。 |
|
message |
string |
エラーメッセージ。 |
target |
string |
エラーターゲット。 |
SynonymAssets
このプロジェクトのすべてのシノニムアセット。
名前 | 型 | 説明 |
---|---|---|
nextLink |
string |
|
value |
シノニムのコレクション。 |
WordAlterations
単語の変更のコレクション。
名前 | 型 | 説明 |
---|---|---|
alterations |
string[] |
単語の変更のコレクション。 |