diff --git a/specification/translation/Azure.AI.TextTranslation/examples/3.0/FindSentenceBoundaries_MinimumSet_Gen.json b/specification/translation/Azure.AI.TextTranslation/examples/3.0/FindSentenceBoundaries_MinimumSet_Gen.json index 06dde6ef2448..823c193b0d51 100644 --- a/specification/translation/Azure.AI.TextTranslation/examples/3.0/FindSentenceBoundaries_MinimumSet_Gen.json +++ b/specification/translation/Azure.AI.TextTranslation/examples/3.0/FindSentenceBoundaries_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Find Sentence Boundaries", + "title": "Find Sentence Boundaries with minimum properties", "operationId": "FindSentenceBoundaries", "parameters": { "api-version": "3.0", diff --git a/specification/translation/Azure.AI.TextTranslation/examples/3.0/GetLanguages_MinimumSet_Gen.json b/specification/translation/Azure.AI.TextTranslation/examples/3.0/GetLanguages_MinimumSet_Gen.json index 76853b88e225..a63e50335d14 100644 --- a/specification/translation/Azure.AI.TextTranslation/examples/3.0/GetLanguages_MinimumSet_Gen.json +++ b/specification/translation/Azure.AI.TextTranslation/examples/3.0/GetLanguages_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Gets the set of languages currently supported by other operations of the Translator.", + "title": "Gets the set of languages currently supported by other operations of the Translator with minimum properties.", "operationId": "GetLanguages", "parameters": { "api-version": "3.0" diff --git a/specification/translation/Azure.AI.TextTranslation/examples/3.0/LookupDictionaryEntries_MinimumSet_Gen.json b/specification/translation/Azure.AI.TextTranslation/examples/3.0/LookupDictionaryEntries_MinimumSet_Gen.json index 1c6b54e7e4eb..95f5bb7d5b47 100644 --- a/specification/translation/Azure.AI.TextTranslation/examples/3.0/LookupDictionaryEntries_MinimumSet_Gen.json +++ b/specification/translation/Azure.AI.TextTranslation/examples/3.0/LookupDictionaryEntries_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Lookup Dictionary Entries", + "title": "Lookup Dictionary Entries with minimum properties", "operationId": "LookupDictionaryEntries", "parameters": { "from": "en", diff --git a/specification/translation/Azure.AI.TextTranslation/examples/3.0/LookupDictionaryExamples_MinimumSet_Gen.json b/specification/translation/Azure.AI.TextTranslation/examples/3.0/LookupDictionaryExamples_MinimumSet_Gen.json index 267599402c12..1cc2b1bc09f7 100644 --- a/specification/translation/Azure.AI.TextTranslation/examples/3.0/LookupDictionaryExamples_MinimumSet_Gen.json +++ b/specification/translation/Azure.AI.TextTranslation/examples/3.0/LookupDictionaryExamples_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Lookup Dictionary Examples", + "title": "Lookup Dictionary Examples with minimum properties", "operationId": "LookupDictionaryExamples", "parameters": { "from": "en", diff --git a/specification/translation/Azure.AI.TextTranslation/examples/3.0/Translate_MaximumSet_Gen.json b/specification/translation/Azure.AI.TextTranslation/examples/3.0/Translate_MaximumSet_Gen.json index 88c313fa9ec8..e2959cd1826f 100644 --- a/specification/translation/Azure.AI.TextTranslation/examples/3.0/Translate_MaximumSet_Gen.json +++ b/specification/translation/Azure.AI.TextTranslation/examples/3.0/Translate_MaximumSet_Gen.json @@ -7,7 +7,7 @@ "cs" ], "from": "en", - "textType": "plain", + "textType": "Plain", "category": "custom", "profanityAction": "NoAction", "profanityMarker": "Asterisk", diff --git a/specification/translation/Azure.AI.TextTranslation/examples/3.0/Translate_MinimumSet_Gen.json b/specification/translation/Azure.AI.TextTranslation/examples/3.0/Translate_MinimumSet_Gen.json index f5f0658336b7..89ce97f09e45 100644 --- a/specification/translation/Azure.AI.TextTranslation/examples/3.0/Translate_MinimumSet_Gen.json +++ b/specification/translation/Azure.AI.TextTranslation/examples/3.0/Translate_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Translate Text", + "title": "Translate Text with minimum properties", "operationId": "Translate", "parameters": { "to": [ diff --git a/specification/translation/Azure.AI.TextTranslation/examples/3.0/Transliterate_MinimumSet_Gen.json b/specification/translation/Azure.AI.TextTranslation/examples/3.0/Transliterate_MinimumSet_Gen.json index ead6cff591f0..8e6e7ebd2b0c 100644 --- a/specification/translation/Azure.AI.TextTranslation/examples/3.0/Transliterate_MinimumSet_Gen.json +++ b/specification/translation/Azure.AI.TextTranslation/examples/3.0/Transliterate_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Transliterate Text", + "title": "Transliterate Text with minimum properties", "operationId": "Transliterate", "parameters": { "language": "zh-Hans", diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/FindSentenceBoundaries_MaximumSet_Gen.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/FindSentenceBoundaries_MaximumSet_Gen.json new file mode 100644 index 000000000000..728c89f0d828 --- /dev/null +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/FindSentenceBoundaries_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Find Sentence Boundaries", + "operationId": "FindSentenceBoundaries", + "parameters": { + "X-ClientTraceId": "svun", + "language": "en", + "script": "Latn", + "api-version": "3.0", + "requestBody": [ + { + "text": "How are you? I am fine. What did you do today?" + } + ] + }, + "responses": { + "200": { + "body": [ + { + "sentLen": [ + 13, + 11, + 22 + ] + } + ] + } + } +} diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/FindSentenceBoundaries_MinimumSet_Gen.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/FindSentenceBoundaries_MinimumSet_Gen.json index 06dde6ef2448..823c193b0d51 100644 --- a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/FindSentenceBoundaries_MinimumSet_Gen.json +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/FindSentenceBoundaries_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Find Sentence Boundaries", + "title": "Find Sentence Boundaries with minimum properties", "operationId": "FindSentenceBoundaries", "parameters": { "api-version": "3.0", diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/GetLanguages_MaximumSet_Gen.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/GetLanguages_MaximumSet_Gen.json new file mode 100644 index 000000000000..901ca0112979 --- /dev/null +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/GetLanguages_MaximumSet_Gen.json @@ -0,0 +1,80 @@ +{ + "title": "Gets the set of languages currently supported by other operations of the Translator.", + "operationId": "GetLanguages", + "parameters": { + "X-ClientTraceId": "kayfnugjec", + "scope": "translation,transliteration,dictionary", + "Accept-Language": "en", + "If-None-Match": "fpnhruttllvc", + "api-version": "3.0" + }, + "responses": { + "200": { + "body": { + "translation": { + "en": { + "name": "English", + "nativeName": "English", + "dir": "ltr" + }, + "es": { + "name": "Spanish", + "nativeName": "Español", + "dir": "ltr" + } + }, + "transliteration": { + "ar": { + "name": "Arabic", + "nativeName": "العربية", + "scripts": [ + { + "code": "Arab", + "name": "Arabic", + "nativeName": "العربية", + "dir": "rtl", + "toScripts": [ + { + "code": "Latn", + "name": "Latin", + "nativeName": "اللاتينية", + "dir": "ltr" + } + ] + }, + { + "code": "Latn", + "name": "Latin", + "nativeName": "اللاتينية", + "dir": "ltr", + "toScripts": [ + { + "code": "Arab", + "name": "Arabic", + "nativeName": "العربية", + "dir": "rtl" + } + ] + } + ] + } + }, + "dictionary": { + "cs": { + "name": "Czech", + "nativeName": "Čeština", + "dir": "ltr", + "translations": [ + { + "name": "English", + "nativeName": "English", + "dir": "ltr", + "code": "en" + } + ] + } + } + } + } + } +} diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/GetLanguages_MinimumSet_Gen.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/GetLanguages_MinimumSet_Gen.json index 76853b88e225..a63e50335d14 100644 --- a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/GetLanguages_MinimumSet_Gen.json +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/GetLanguages_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Gets the set of languages currently supported by other operations of the Translator.", + "title": "Gets the set of languages currently supported by other operations of the Translator with minimum properties.", "operationId": "GetLanguages", "parameters": { "api-version": "3.0" diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryEntries_MaximumSet_Gen.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryEntries_MaximumSet_Gen.json new file mode 100644 index 000000000000..1da1ee01cd31 --- /dev/null +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryEntries_MaximumSet_Gen.json @@ -0,0 +1,87 @@ +{ + "title": "Lookup Dictionary Entries", + "operationId": "LookupDictionaryEntries", + "parameters": { + "X-ClientTraceId": "yqst", + "from": "en", + "to": "es", + "api-version": "3.0", + "requestBody": [ + { + "text": "fly" + } + ] + }, + "responses": { + "200": { + "body": [ + { + "normalizedSource": "fly", + "displaySource": "fly", + "translations": [ + { + "normalizedTarget": "volar", + "displayTarget": "volar", + "posTag": "VERB", + "confidence": 0.4081, + "prefixWord": "", + "backTranslations": [ + { + "normalizedText": "fly", + "displayText": "fly", + "numExamples": 15, + "frequencyCount": 4637 + }, + { + "normalizedText": "flying", + "displayText": "flying", + "numExamples": 15, + "frequencyCount": 1365 + }, + { + "normalizedText": "blow", + "displayText": "blow", + "numExamples": 15, + "frequencyCount": 503 + }, + { + "normalizedText": "flight", + "displayText": "flight", + "numExamples": 15, + "frequencyCount": 135 + } + ] + }, + { + "normalizedTarget": "mosca", + "displayTarget": "mosca", + "posTag": "NOUN", + "confidence": 0.2668, + "prefixWord": "", + "backTranslations": [ + { + "normalizedText": "fly", + "displayText": "fly", + "numExamples": 15, + "frequencyCount": 1697 + }, + { + "normalizedText": "flyweight", + "displayText": "flyweight", + "numExamples": 0, + "frequencyCount": 48 + }, + { + "normalizedText": "flies", + "displayText": "flies", + "numExamples": 9, + "frequencyCount": 34 + } + ] + } + ] + } + ] + } + } +} diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryEntries_MinimumSet_Gen.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryEntries_MinimumSet_Gen.json index 1c6b54e7e4eb..95f5bb7d5b47 100644 --- a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryEntries_MinimumSet_Gen.json +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryEntries_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Lookup Dictionary Entries", + "title": "Lookup Dictionary Entries with minimum properties", "operationId": "LookupDictionaryEntries", "parameters": { "from": "en", diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryExamples_MaximumSet_Gen.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryExamples_MaximumSet_Gen.json new file mode 100644 index 000000000000..328ba8cbe79e --- /dev/null +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryExamples_MaximumSet_Gen.json @@ -0,0 +1,44 @@ +{ + "title": "Lookup Dictionary Examples", + "operationId": "LookupDictionaryExamples", + "parameters": { + "X-ClientTraceId": "vykwwekvcncclrmsyjhbok", + "from": "en", + "to": "es", + "api-version": "3.0", + "requestBody": [ + { + "text": "fly", + "translation": "volar" + } + ] + }, + "responses": { + "200": { + "body": [ + { + "normalizedSource": "fly", + "normalizedTarget": "volar", + "examples": [ + { + "sourcePrefix": "They need machines to ", + "sourceTerm": "fly", + "sourceSuffix": ".", + "targetPrefix": "Necesitan máquinas para ", + "targetTerm": "volar", + "targetSuffix": "." + }, + { + "sourcePrefix": "That should really ", + "sourceTerm": "fly", + "sourceSuffix": ".", + "targetPrefix": "Eso realmente debe ", + "targetTerm": "volar", + "targetSuffix": "." + } + ] + } + ] + } + } +} diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryExamples_MinimumSet_Gen.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryExamples_MinimumSet_Gen.json index 267599402c12..1cc2b1bc09f7 100644 --- a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryExamples_MinimumSet_Gen.json +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/LookupDictionaryExamples_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Lookup Dictionary Examples", + "title": "Lookup Dictionary Examples with minimum properties", "operationId": "LookupDictionaryExamples", "parameters": { "from": "en", diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Translate_MaximumSet_Gen.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Translate_MaximumSet_Gen.json new file mode 100644 index 000000000000..e2959cd1826f --- /dev/null +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Translate_MaximumSet_Gen.json @@ -0,0 +1,63 @@ +{ + "title": "Translate Text", + "operationId": "Translate", + "parameters": { + "X-ClientTraceId": "ndbkaatzsnoetqkiehappoza", + "to": [ + "cs" + ], + "from": "en", + "textType": "Plain", + "category": "custom", + "profanityAction": "NoAction", + "profanityMarker": "Asterisk", + "includeAlignment": true, + "includeSentenceLength": true, + "suggestedFrom": "en", + "fromScript": "Latn", + "toScript": "Latn", + "allowFallback": true, + "api-version": "3.0", + "requestBody": [ + { + "text": "This is a test." + } + ] + }, + "responses": { + "200": { + "body": [ + { + "detectedLanguage": { + "language": "en", + "score": 1.0 + }, + "translations": [ + { + "to": "cs", + "text": "Tohle je test.", + "transliteration": { + "text": "Tohle je test.", + "script": "Latn" + }, + "alignment": { + "proj": "okrxvzsagjgzrrv" + }, + "sentLen": { + "srcSentLen": [ + 30 + ], + "transSentLen": [ + 24 + ] + } + } + ], + "sourceText": { + "text": "This is a test" + } + } + ] + } + } +} diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Translate_MinimumSet_Gen.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Translate_MinimumSet_Gen.json index f5f0658336b7..89ce97f09e45 100644 --- a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Translate_MinimumSet_Gen.json +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Translate_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Translate Text", + "title": "Translate Text with minimum properties", "operationId": "Translate", "parameters": { "to": [ diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Transliterate_MaximumSet_Gen.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Transliterate_MaximumSet_Gen.json new file mode 100644 index 000000000000..98b0d124990f --- /dev/null +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Transliterate_MaximumSet_Gen.json @@ -0,0 +1,26 @@ +{ + "title": "Transliterate Text", + "operationId": "Transliterate", + "parameters": { + "X-ClientTraceId": "dzncrimwmvtwjnheh", + "language": "zh-Hans", + "fromScript": "Hans", + "toScript": "Latn", + "api-version": "3.0", + "requestBody": [ + { + "text": "这是个测试。" + } + ] + }, + "responses": { + "200": { + "body": [ + { + "text": "zhè shì gè cè shì。", + "script": "Latn" + } + ] + } + } +} diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Transliterate_MinimumSet_Gen.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Transliterate_MinimumSet_Gen.json index ead6cff591f0..8e6e7ebd2b0c 100644 --- a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Transliterate_MinimumSet_Gen.json +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/examples/Transliterate_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Transliterate Text", + "title": "Transliterate Text with minimum properties", "operationId": "Transliterate", "parameters": { "language": "zh-Hans", diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/openapi.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/openapi.json index 883148aa3f6c..ce23a4c35116 100644 --- a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/openapi.json +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/openapi.json @@ -112,6 +112,9 @@ }, "x-ms-examples": { "Find Sentence Boundaries": { + "$ref": "./examples/FindSentenceBoundaries_MaximumSet_Gen.json" + }, + "Find Sentence Boundaries with minimum properties": { "$ref": "./examples/FindSentenceBoundaries_MinimumSet_Gen.json" } } @@ -201,6 +204,9 @@ }, "x-ms-examples": { "Lookup Dictionary Examples": { + "$ref": "./examples/LookupDictionaryExamples_MaximumSet_Gen.json" + }, + "Lookup Dictionary Examples with minimum properties": { "$ref": "./examples/LookupDictionaryExamples_MinimumSet_Gen.json" } } @@ -290,6 +296,9 @@ }, "x-ms-examples": { "Lookup Dictionary Entries": { + "$ref": "./examples/LookupDictionaryEntries_MaximumSet_Gen.json" + }, + "Lookup Dictionary Entries with minimum properties": { "$ref": "./examples/LookupDictionaryEntries_MinimumSet_Gen.json" } } @@ -359,6 +368,9 @@ }, "x-ms-examples": { "Gets the set of languages currently supported by other operations of the Translator.": { + "$ref": "./examples/GetLanguages_MaximumSet_Gen.json" + }, + "Gets the set of languages currently supported by other operations of the Translator with minimum properties.": { "$ref": "./examples/GetLanguages_MinimumSet_Gen.json" } } @@ -479,6 +491,9 @@ }, "x-ms-examples": { "Translate Text": { + "$ref": "./examples/Translate_MaximumSet_Gen.json" + }, + "Translate Text with minimum properties": { "$ref": "./examples/Translate_MinimumSet_Gen.json" } } @@ -563,6 +578,9 @@ }, "x-ms-examples": { "Transliterate Text": { + "$ref": "./examples/Transliterate_MaximumSet_Gen.json" + }, + "Transliterate Text with minimum properties": { "$ref": "./examples/Transliterate_MinimumSet_Gen.json" } }