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 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
Endpoint
|
path | True |
string |
支持的認知服務終結點(例如,https://< resource-name.api.cognitiveservices.azure.com>)。 |
|
project
|
path | True |
string maxLength: 100 |
要使用的項目名稱。 |
|
api-version
|
query | True |
string |
用戶端 API 版本。 |
|
maxpagesize
|
query |
integer (int32) |
要包含在單一回應中的資源數目上限。 |
|
|
skip
|
query |
integer (int32) |
要傳回之第一個資源的集合位移。 |
|
|
top
|
query |
integer (int32) |
要從集合傳回的資源數目上限。 |
要求標頭
| 名稱 | 必要 | 類型 | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | True |
string |
回應
| 名稱 | 類型 | Description |
|---|---|---|
| 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"
]
}
]
}
定義
| 名稱 | Description |
|---|---|
| Error |
error 物件。 |
|
Error |
人類可讀取的錯誤碼。 |
|
Error |
錯誤回應。 |
|
Inner |
人類可讀取的錯誤碼。 |
|
Inner |
物件,包含有關錯誤的更特定資訊。 根據Microsoft一個 API 指導方針 - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses。 |
|
Synonym |
此專案的所有同義字資產。 |
|
Word |
文字改變的集合。 |
Error
error 物件。
| 名稱 | 類型 | Description |
|---|---|---|
| code |
其中一組伺服器定義的錯誤碼。 |
|
| details |
Error[] |
導致此錯誤之特定錯誤的詳細數據陣列。 |
| innererror |
物件,包含與目前對象有關錯誤更具體的資訊。 |
|
| message |
string |
錯誤的人類可讀取表示法。 |
| target |
string |
錯誤的目標。 |
ErrorCode
人類可讀取的錯誤碼。
| 值 | Description |
|---|---|
| InvalidRequest | |
| InvalidArgument | |
| Unauthorized | |
| Forbidden | |
| NotFound | |
| ProjectNotFound | |
| OperationNotFound | |
| AzureCognitiveSearchNotFound | |
| AzureCognitiveSearchIndexNotFound | |
| TooManyRequests | |
| AzureCognitiveSearchThrottling | |
| AzureCognitiveSearchIndexLimitReached | |
| InternalServerError | |
| ServiceUnavailable |
ErrorResponse
錯誤回應。
| 名稱 | 類型 | Description |
|---|---|---|
| error |
error 物件。 |
InnerErrorCode
人類可讀取的錯誤碼。
| 值 | Description |
|---|---|
| InvalidRequest | |
| InvalidParameterValue | |
| KnowledgeBaseNotFound | |
| AzureCognitiveSearchNotFound | |
| AzureCognitiveSearchThrottling | |
| ExtractionFailure |
InnerErrorModel
物件,包含有關錯誤的更特定資訊。 根據Microsoft一個 API 指導方針 - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses。
| 名稱 | 類型 | Description |
|---|---|---|
| code |
其中一組伺服器定義的錯誤碼。 |
|
| details |
object |
錯誤詳細數據。 |
| innererror |
物件,包含與目前對象有關錯誤更具體的資訊。 |
|
| message |
string |
錯誤資訊。 |
| target |
string |
錯誤目標。 |
SynonymAssets
此專案的所有同義字資產。
| 名稱 | 類型 | Description |
|---|---|---|
| nextLink |
string |
|
| value |
同義字的集合。 |
WordAlterations
文字改變的集合。
| 名稱 | 類型 | Description |
|---|---|---|
| alterations |
string[] |
文字改變的集合。 |