Text Analysis Authoring - Get Supported Languages
列出支持的語言。
GET {Endpoint}/language/authoring/analyze-text/projects/global/languages?api-version=2023-04-01
GET {Endpoint}/language/authoring/analyze-text/projects/global/languages?api-version=2023-04-01&projectKind={projectKind}&top={top}&skip={skip}&maxpagesize={maxpagesize}
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
Endpoint
|
path | True |
string url |
支援的認知服務端點 (例如,https://.api.cognitiveservices.azure.com). |
api-version
|
query | True |
string |
要用於這項作業的 API 版本。 |
maxpagesize
|
query |
integer int32 |
每個頁面的結果項目數目上限。 |
|
project
|
query |
專案種類,預設值為 CustomSingleLabelClassification。 |
||
skip
|
query |
integer int32 |
要略過的結果項目數目。 |
|
top
|
query |
integer int32 |
要傳回的結果項目數目。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
要求已成功。 |
|
Other Status Codes |
未預期的錯誤回應。 |
安全性
Ocp-Apim-Subscription-Key
類型:
apiKey
位於:
header
OAuth2Auth
類型:
oauth2
Flow:
accessCode
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
權杖 URL:
https://login.microsoftonline.com/common/oauth2/token
範圍
名稱 | Description |
---|---|
https://cognitiveservices.azure.com/.default |
範例
SuccessfulGetSupportedLanguages
範例要求
GET {Endpoint}/language/authoring/analyze-text/projects/global/languages?api-version=2023-04-01
範例回覆
{
"value": [
{
"languageName": "English",
"languageCode": "en"
},
{
"languageName": "English",
"languageCode": "en-us"
},
{
"languageName": "French",
"languageCode": "fr"
},
{
"languageName": "Italian",
"languageCode": "it"
},
{
"languageName": "Spanish",
"languageCode": "es"
},
{
"languageName": "German",
"languageCode": "de"
},
{
"languageName": "Portuguese (Brazil)",
"languageCode": "pt-br"
},
{
"languageName": "Portuguese (Portugal)",
"languageCode": "pt-pt"
},
{
"languageName": "Afrikaans",
"languageCode": "af"
},
{
"languageName": "Amharic",
"languageCode": "am"
},
{
"languageName": "Arabic",
"languageCode": "ar"
},
{
"languageName": "Assamese",
"languageCode": "as"
},
{
"languageName": "Azerbaijani",
"languageCode": "az"
},
{
"languageName": "Belarusian",
"languageCode": "be"
},
{
"languageName": "Bulgarian",
"languageCode": "bg"
},
{
"languageName": "Breton",
"languageCode": "br"
},
{
"languageName": "Bosnian",
"languageCode": "bs"
},
{
"languageName": "Catalan",
"languageCode": "ca"
},
{
"languageName": "Czech",
"languageCode": "cs"
},
{
"languageName": "Welsh",
"languageCode": "cy"
},
{
"languageName": "Danish",
"languageCode": "da"
},
{
"languageName": "Greek",
"languageCode": "el"
},
{
"languageName": "Esperanto",
"languageCode": "eo"
},
{
"languageName": "Estonian",
"languageCode": "et"
},
{
"languageName": "Basque",
"languageCode": "eu"
},
{
"languageName": "Persian",
"languageCode": "fa"
},
{
"languageName": "Finnish",
"languageCode": "fi"
},
{
"languageName": "Western Frisian",
"languageCode": "fy"
},
{
"languageName": "Irish",
"languageCode": "ga"
},
{
"languageName": "Scottish Gaelic",
"languageCode": "gd"
},
{
"languageName": "Galician",
"languageCode": "gl"
},
{
"languageName": "Gujarati",
"languageCode": "gu"
},
{
"languageName": "Hausa",
"languageCode": "ha"
},
{
"languageName": "Hebrew",
"languageCode": "he"
},
{
"languageName": "Hindi",
"languageCode": "hi"
},
{
"languageName": "Croatian",
"languageCode": "hr"
},
{
"languageName": "Hungarian",
"languageCode": "hu"
},
{
"languageName": "Armenian",
"languageCode": "hy"
},
{
"languageName": "Indonesian",
"languageCode": "id"
},
{
"languageName": "Japanese",
"languageCode": "ja"
},
{
"languageName": "Javanese",
"languageCode": "jv"
},
{
"languageName": "Georgian",
"languageCode": "ka"
},
{
"languageName": "Kazakh",
"languageCode": "kk"
},
{
"languageName": "Khmer",
"languageCode": "km"
},
{
"languageName": "Kannada",
"languageCode": "kn"
},
{
"languageName": "Korean",
"languageCode": "ko"
},
{
"languageName": "Kurdish (Kurmanji)",
"languageCode": "ku"
},
{
"languageName": "Kyrgyz",
"languageCode": "ky"
},
{
"languageName": "Latin",
"languageCode": "la"
},
{
"languageName": "Lao",
"languageCode": "lo"
},
{
"languageName": "Lithuanian",
"languageCode": "lt"
},
{
"languageName": "Latvian",
"languageCode": "lv"
},
{
"languageName": "Malagasy",
"languageCode": "mg"
},
{
"languageName": "Macedonian",
"languageCode": "mk"
},
{
"languageName": "Malayalam",
"languageCode": "ml"
},
{
"languageName": "Mongolian",
"languageCode": "mn"
},
{
"languageName": "Marathi",
"languageCode": "mr"
},
{
"languageName": "Malay",
"languageCode": "ms"
},
{
"languageName": "Burmese",
"languageCode": "my"
},
{
"languageName": "Nepali",
"languageCode": "ne"
},
{
"languageName": "Dutch",
"languageCode": "nl"
},
{
"languageName": "Norwegian (Bokmal)",
"languageCode": "nb"
},
{
"languageName": "Odia",
"languageCode": "or"
},
{
"languageName": "Punjabi",
"languageCode": "pa"
},
{
"languageName": "Polish",
"languageCode": "pl"
},
{
"languageName": "Pashto",
"languageCode": "ps"
},
{
"languageName": "Romanian",
"languageCode": "ro"
},
{
"languageName": "Russian",
"languageCode": "ru"
},
{
"languageName": "Sanskrit",
"languageCode": "sa"
},
{
"languageName": "Sindhi",
"languageCode": "sd"
},
{
"languageName": "Sinhala",
"languageCode": "si"
},
{
"languageName": "Slovak",
"languageCode": "sk"
},
{
"languageName": "Slovenian",
"languageCode": "sl"
},
{
"languageName": "Somali",
"languageCode": "so"
},
{
"languageName": "Albanian",
"languageCode": "sq"
},
{
"languageName": "Serbian",
"languageCode": "sr"
},
{
"languageName": "Sundanese",
"languageCode": "su"
},
{
"languageName": "Swedish",
"languageCode": "sv"
},
{
"languageName": "Swahili",
"languageCode": "sw"
},
{
"languageName": "Tamil",
"languageCode": "ta"
},
{
"languageName": "Telugu",
"languageCode": "te"
},
{
"languageName": "Thai",
"languageCode": "th"
},
{
"languageName": "Filipino",
"languageCode": "tl"
},
{
"languageName": "Turkish",
"languageCode": "tr"
},
{
"languageName": "Uyghur",
"languageCode": "ug"
},
{
"languageName": "Ukrainian",
"languageCode": "uk"
},
{
"languageName": "Urdu",
"languageCode": "ur"
},
{
"languageName": "Uzbek",
"languageCode": "uz"
},
{
"languageName": "Vietnamese",
"languageCode": "vi"
},
{
"languageName": "Xhosa",
"languageCode": "xh"
},
{
"languageName": "Yiddish",
"languageCode": "yi"
},
{
"languageName": "Chinese (Simplified)",
"languageCode": "zh-hans"
},
{
"languageName": "Chinese (Traditional)",
"languageCode": "zh-hant"
}
],
"nextLink": null
}
定義
名稱 | Description |
---|---|
Error |
error 物件。 |
Error |
人類可讀取的錯誤碼。 |
Error |
錯誤回應。 |
Inner |
人類可讀取的錯誤碼。 |
Inner |
物件,包含有關錯誤的更特定資訊。 根據Microsoft一個 API 指導方針 - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses。 |
Paged |
TextAnalysisAuthoringSupportedLanguage 專案的分頁集合 |
Project |
|
Text |
表示支持的語言。 |
Error
error 物件。
名稱 | 類型 | Description |
---|---|---|
code |
其中一組伺服器定義的錯誤碼。 |
|
details |
Error[] |
導致此錯誤之特定錯誤的詳細數據陣列。 |
innererror |
物件,包含與目前對象有關錯誤更具體的資訊。 |
|
message |
string |
錯誤的人類可讀取表示法。 |
target |
string |
錯誤的目標。 |
ErrorCode
人類可讀取的錯誤碼。
名稱 | 類型 | Description |
---|---|---|
AzureCognitiveSearchIndexLimitReached |
string |
|
AzureCognitiveSearchIndexNotFound |
string |
|
AzureCognitiveSearchNotFound |
string |
|
AzureCognitiveSearchThrottling |
string |
|
Conflict |
string |
|
Forbidden |
string |
|
InternalServerError |
string |
|
InvalidArgument |
string |
|
InvalidRequest |
string |
|
NotFound |
string |
|
OperationNotFound |
string |
|
ProjectNotFound |
string |
|
QuotaExceeded |
string |
|
ServiceUnavailable |
string |
|
Timeout |
string |
|
TooManyRequests |
string |
|
Unauthorized |
string |
|
Warning |
string |
ErrorResponse
錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |
InnerErrorCode
人類可讀取的錯誤碼。
名稱 | 類型 | Description |
---|---|---|
AzureCognitiveSearchNotFound |
string |
|
AzureCognitiveSearchThrottling |
string |
|
EmptyRequest |
string |
|
ExtractionFailure |
string |
|
InvalidCountryHint |
string |
|
InvalidDocument |
string |
|
InvalidDocumentBatch |
string |
|
InvalidParameterValue |
string |
|
InvalidRequest |
string |
|
InvalidRequestBodyFormat |
string |
|
KnowledgeBaseNotFound |
string |
|
MissingInputDocuments |
string |
|
ModelVersionIncorrect |
string |
|
UnsupportedLanguageCode |
string |
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 |
錯誤目標。 |
PagedTextAnalysisAuthoringSupportedLanguage
TextAnalysisAuthoringSupportedLanguage 專案的分頁集合
名稱 | 類型 | Description |
---|---|---|
nextLink |
string |
專案下一頁的連結 |
value |
此頁面上的 TextAnalysisAuthoringSupportedLanguage 專案 |
ProjectKind
名稱 | 類型 | Description |
---|---|---|
CustomEntityRecognition |
string |
若要建置擷取模型,以使用您自己的數據來識別您的領域類別。 |
CustomMultiLabelClassification |
string |
若要建置分類模型,以使用您自己的數據來分類文字。 每個檔案可以有一或多個標籤。 例如,檔案 1 會分類為 A、B 和 C,而檔案 2 則分類為 B 和 C。 |
CustomSingleLabelClassification |
string |
若要建置分類模型,以使用您自己的數據來分類文字。 每個檔案只會有一個標籤。 例如,檔案 1 會分類為 A,而檔案 2 則分類為 B。 |
TextAnalysisAuthoringSupportedLanguage
表示支持的語言。
名稱 | 類型 | Description |
---|---|---|
languageCode |
string |
語言代碼。 這是語言的 BCP-47 表示法。 例如,英文的 “en” 、英文的 “en-gb” 、西班牙文的 “es” 等。 |
languageName |
string |
語言名稱。 |