1 package translatortext
2
3
4
5
6
7
8
9 import (
10 "github.com/Azure/go-autorest/autorest"
11 )
12
13
14 const fqdn = "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.0/translatortext"
15
16
17 type BreakSentenceResultItem struct {
18 SentLen *[]int32 `json:"sentLen,omitempty"`
19 }
20
21
22 type BreakSentenceTextInput struct {
23 Text *string `json:"text,omitempty"`
24 }
25
26
27 type DetectResultItem struct {
28 Text *string `json:"text,omitempty"`
29 }
30
31
32 type DetectTextInput struct {
33 Text *string `json:"text,omitempty"`
34 }
35
36
37 type DictionaryExampleResultItem struct {
38 NormalizedSource *string `json:"normalizedSource,omitempty"`
39 NormalizedTarget *string `json:"normalizedTarget,omitempty"`
40 Examples *[]DictionaryExampleResultItemExamplesItem `json:"examples,omitempty"`
41 }
42
43
44 type DictionaryExampleResultItemExamplesItem struct {
45 SourcePrefix *string `json:"sourcePrefix,omitempty"`
46 SourceTerm *string `json:"sourceTerm,omitempty"`
47 SourceSuffix *string `json:"sourceSuffix,omitempty"`
48 TargetPrefix *string `json:"targetPrefix,omitempty"`
49 TargetTerm *string `json:"targetTerm,omitempty"`
50 TargetSuffix *string `json:"targetSuffix,omitempty"`
51 }
52
53
54 type DictionaryExampleTextInput struct {
55 Text *string `json:"text,omitempty"`
56 Translation *string `json:"translation,omitempty"`
57 }
58
59
60 type DictionaryLookupResultItem struct {
61 NormalizedSource *string `json:"normalizedSource,omitempty"`
62 DisplaySource *string `json:"displaySource,omitempty"`
63 Translations *[]DictionaryLookupResultItemTranslationsItem `json:"translations,omitempty"`
64 }
65
66
67 type DictionaryLookupResultItemTranslationsItem struct {
68 NormalizedTarget *string `json:"normalizedTarget,omitempty"`
69 DisplayTarget *string `json:"displayTarget,omitempty"`
70 PosTag *string `json:"posTag,omitempty"`
71 Confidence *float64 `json:"confidence,omitempty"`
72 PrefixWord *string `json:"prefixWord,omitempty"`
73 BackTranslations *[]DictionaryLookupResultItemTranslationsItemBackTranslationsItem `json:"backTranslations,omitempty"`
74 }
75
76
77 type DictionaryLookupResultItemTranslationsItemBackTranslationsItem struct {
78 NormalizedText *string `json:"normalizedText,omitempty"`
79 DisplayText *string `json:"displayText,omitempty"`
80 NumExamples *int32 `json:"numExamples,omitempty"`
81 FrequencyCount *int32 `json:"frequencyCount,omitempty"`
82 }
83
84
85 type DictionaryLookupTextInput struct {
86 Text *string `json:"text,omitempty"`
87 }
88
89
90 type ErrorMessage struct {
91 Error *ErrorMessageError `json:"error,omitempty"`
92 }
93
94
95 type ErrorMessageError struct {
96 Code *string `json:"code,omitempty"`
97 Message *string `json:"message,omitempty"`
98 }
99
100
101 type LanguagesResult struct {
102 autorest.Response `json:"-"`
103 Translation *LanguagesResultTranslation `json:"translation,omitempty"`
104 Transliteration *LanguagesResultTransliteration `json:"transliteration,omitempty"`
105 Dictionary *LanguagesResultDictionary `json:"dictionary,omitempty"`
106 }
107
108
109 type LanguagesResultDictionary struct {
110 LanguageCode *LanguagesResultDictionaryLanguageCode `json:"languageCode,omitempty"`
111 }
112
113
114 type LanguagesResultDictionaryLanguageCode struct {
115 Name *string `json:"name,omitempty"`
116 NativeName *string `json:"nativeName,omitempty"`
117 Dir *string `json:"dir,omitempty"`
118 Translations *[]LanguagesResultDictionaryLanguageCodeTranslationsItem `json:"translations,omitempty"`
119 }
120
121
122 type LanguagesResultDictionaryLanguageCodeTranslationsItem struct {
123 Name *string `json:"name,omitempty"`
124 NativeName *string `json:"nativeName,omitempty"`
125 Dir *string `json:"dir,omitempty"`
126 Code *string `json:"code,omitempty"`
127 }
128
129
130 type LanguagesResultTranslation struct {
131 LanguageCode *LanguagesResultTranslationLanguageCode `json:"languageCode,omitempty"`
132 }
133
134
135 type LanguagesResultTranslationLanguageCode struct {
136 Name *string `json:"name,omitempty"`
137 NativeName *string `json:"nativeName,omitempty"`
138 Dir *string `json:"dir,omitempty"`
139 }
140
141
142 type LanguagesResultTransliteration struct {
143 LanguageCode *LanguagesResultTransliterationLanguageCode `json:"languageCode,omitempty"`
144 }
145
146
147 type LanguagesResultTransliterationLanguageCode struct {
148 Name *string `json:"name,omitempty"`
149 NativeName *string `json:"nativeName,omitempty"`
150 Scripts *[]LanguagesResultTransliterationLanguageCodeScriptsItem `json:"scripts,omitempty"`
151 }
152
153
154 type LanguagesResultTransliterationLanguageCodeScriptsItem struct {
155 Code *string `json:"code,omitempty"`
156 Name *string `json:"name,omitempty"`
157 NativeName *string `json:"nativeName,omitempty"`
158 Dir *string `json:"dir,omitempty"`
159 ToScripts *[]LanguagesResultTransliterationLanguageCodeScriptsItemToScriptsItem `json:"toScripts,omitempty"`
160 }
161
162
163 type LanguagesResultTransliterationLanguageCodeScriptsItemToScriptsItem struct {
164 Code *string `json:"code,omitempty"`
165 Name *string `json:"name,omitempty"`
166 NativeName *string `json:"nativeName,omitempty"`
167 Dir *string `json:"dir,omitempty"`
168 }
169
170
171 type ListBreakSentenceResultItem struct {
172 autorest.Response `json:"-"`
173 Value *[]BreakSentenceResultItem `json:"value,omitempty"`
174 }
175
176
177 type ListDetectResultItem struct {
178 autorest.Response `json:"-"`
179 Value *[]DetectResultItem `json:"value,omitempty"`
180 }
181
182
183 type ListDictionaryExampleResultItem struct {
184 autorest.Response `json:"-"`
185 Value *[]DictionaryExampleResultItem `json:"value,omitempty"`
186 }
187
188
189 type ListDictionaryLookupResultItem struct {
190 autorest.Response `json:"-"`
191 Value *[]DictionaryLookupResultItem `json:"value,omitempty"`
192 }
193
194
195 type ListTranslateResultAllItem struct {
196 autorest.Response `json:"-"`
197 Value *[]TranslateResultAllItem `json:"value,omitempty"`
198 }
199
200
201 type ListTransliterateResultItem struct {
202 autorest.Response `json:"-"`
203 Value *[]TransliterateResultItem `json:"value,omitempty"`
204 }
205
206
207 type TranslateResultAllItem struct {
208 DetectedLanguage *TranslateResultAllItemDetectedLanguage `json:"detectedLanguage,omitempty"`
209 Translations *[]TranslateResultAllItemTranslationsItem `json:"translations,omitempty"`
210 }
211
212
213 type TranslateResultAllItemDetectedLanguage struct {
214 Language *string `json:"language,omitempty"`
215 Score *int32 `json:"score,omitempty"`
216 }
217
218
219 type TranslateResultAllItemTranslationsItem struct {
220 Text *string `json:"text,omitempty"`
221 Transliteration *TranslateResultAllItemTranslationsItemTransliteration `json:"transliteration,omitempty"`
222 To *string `json:"to,omitempty"`
223 Alignment *TranslateResultAllItemTranslationsItemAlignment `json:"alignment,omitempty"`
224 SentLen *TranslateResultAllItemTranslationsItemSentLen `json:"sentLen,omitempty"`
225 }
226
227
228 type TranslateResultAllItemTranslationsItemAlignment struct {
229 Proj *string `json:"proj,omitempty"`
230 }
231
232
233 type TranslateResultAllItemTranslationsItemSentLen struct {
234 SrcSentLen *[]TranslateResultAllItemTranslationsItemSentLenSrcSentLenItem `json:"srcSentLen,omitempty"`
235 TransSentLen *[]TranslateResultAllItemTranslationsItemSentLenTransSentLenItem `json:"transSentLen,omitempty"`
236 }
237
238
239 type TranslateResultAllItemTranslationsItemSentLenSrcSentLenItem struct {
240 Integer *int32 `json:"integer,omitempty"`
241 }
242
243
244 type TranslateResultAllItemTranslationsItemSentLenTransSentLenItem struct {
245 Integer *int32 `json:"integer,omitempty"`
246 }
247
248
249 type TranslateResultAllItemTranslationsItemTransliteration struct {
250 Text *string `json:"text,omitempty"`
251 Script *string `json:"script,omitempty"`
252 }
253
254
255 type TranslateResultItem struct {
256 Translation *[]TranslateResultItemTranslationItem `json:"translation,omitempty"`
257 }
258
259
260 type TranslateResultItemTranslationItem struct {
261 Text *string `json:"text,omitempty"`
262 To *string `json:"to,omitempty"`
263 }
264
265
266 type TranslateTextInput struct {
267 Text *string `json:"text,omitempty"`
268 }
269
270
271 type TransliterateResultItem struct {
272 Text *string `json:"text,omitempty"`
273 Script *string `json:"script,omitempty"`
274 }
275
276
277 type TransliterateTextInput struct {
278 Text *string `json:"text,omitempty"`
279 }
280
View as plain text