...

Source file src/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.0/translatortext/models.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.0/translatortext

     1  package translatortext
     2  
     3  // Copyright (c) Microsoft Corporation. All rights reserved.
     4  // Licensed under the MIT License. See License.txt in the project root for license information.
     5  //
     6  // Code generated by Microsoft (R) AutoRest Code Generator.
     7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     8  
     9  import (
    10  	"github.com/Azure/go-autorest/autorest"
    11  )
    12  
    13  // The package's fully qualified name.
    14  const fqdn = "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.0/translatortext"
    15  
    16  // BreakSentenceResultItem ...
    17  type BreakSentenceResultItem struct {
    18  	SentLen *[]int32 `json:"sentLen,omitempty"`
    19  }
    20  
    21  // BreakSentenceTextInput text needed for break sentence request
    22  type BreakSentenceTextInput struct {
    23  	Text *string `json:"text,omitempty"`
    24  }
    25  
    26  // DetectResultItem ...
    27  type DetectResultItem struct {
    28  	Text *string `json:"text,omitempty"`
    29  }
    30  
    31  // DetectTextInput text needed for detect request
    32  type DetectTextInput struct {
    33  	Text *string `json:"text,omitempty"`
    34  }
    35  
    36  // DictionaryExampleResultItem ...
    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  // DictionaryExampleResultItemExamplesItem ...
    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  // DictionaryExampleTextInput text needed for a dictionary example request
    54  type DictionaryExampleTextInput struct {
    55  	Text        *string `json:"text,omitempty"`
    56  	Translation *string `json:"translation,omitempty"`
    57  }
    58  
    59  // DictionaryLookupResultItem ...
    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  // DictionaryLookupResultItemTranslationsItem ...
    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  // DictionaryLookupResultItemTranslationsItemBackTranslationsItem ...
    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  // DictionaryLookupTextInput text needed for a dictionary lookup request
    85  type DictionaryLookupTextInput struct {
    86  	Text *string `json:"text,omitempty"`
    87  }
    88  
    89  // ErrorMessage ...
    90  type ErrorMessage struct {
    91  	Error *ErrorMessageError `json:"error,omitempty"`
    92  }
    93  
    94  // ErrorMessageError ...
    95  type ErrorMessageError struct {
    96  	Code    *string `json:"code,omitempty"`
    97  	Message *string `json:"message,omitempty"`
    98  }
    99  
   100  // LanguagesResult example of a successful languages request
   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  // LanguagesResultDictionary ...
   109  type LanguagesResultDictionary struct {
   110  	LanguageCode *LanguagesResultDictionaryLanguageCode `json:"languageCode,omitempty"`
   111  }
   112  
   113  // LanguagesResultDictionaryLanguageCode ...
   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  // LanguagesResultDictionaryLanguageCodeTranslationsItem ...
   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  // LanguagesResultTranslation ...
   130  type LanguagesResultTranslation struct {
   131  	LanguageCode *LanguagesResultTranslationLanguageCode `json:"languageCode,omitempty"`
   132  }
   133  
   134  // LanguagesResultTranslationLanguageCode ...
   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  // LanguagesResultTransliteration ...
   142  type LanguagesResultTransliteration struct {
   143  	LanguageCode *LanguagesResultTransliterationLanguageCode `json:"languageCode,omitempty"`
   144  }
   145  
   146  // LanguagesResultTransliterationLanguageCode ...
   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  // LanguagesResultTransliterationLanguageCodeScriptsItem ...
   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  // LanguagesResultTransliterationLanguageCodeScriptsItemToScriptsItem ...
   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  // ListBreakSentenceResultItem ...
   171  type ListBreakSentenceResultItem struct {
   172  	autorest.Response `json:"-"`
   173  	Value             *[]BreakSentenceResultItem `json:"value,omitempty"`
   174  }
   175  
   176  // ListDetectResultItem ...
   177  type ListDetectResultItem struct {
   178  	autorest.Response `json:"-"`
   179  	Value             *[]DetectResultItem `json:"value,omitempty"`
   180  }
   181  
   182  // ListDictionaryExampleResultItem ...
   183  type ListDictionaryExampleResultItem struct {
   184  	autorest.Response `json:"-"`
   185  	Value             *[]DictionaryExampleResultItem `json:"value,omitempty"`
   186  }
   187  
   188  // ListDictionaryLookupResultItem ...
   189  type ListDictionaryLookupResultItem struct {
   190  	autorest.Response `json:"-"`
   191  	Value             *[]DictionaryLookupResultItem `json:"value,omitempty"`
   192  }
   193  
   194  // ListTranslateResultAllItem ...
   195  type ListTranslateResultAllItem struct {
   196  	autorest.Response `json:"-"`
   197  	Value             *[]TranslateResultAllItem `json:"value,omitempty"`
   198  }
   199  
   200  // ListTransliterateResultItem ...
   201  type ListTransliterateResultItem struct {
   202  	autorest.Response `json:"-"`
   203  	Value             *[]TransliterateResultItem `json:"value,omitempty"`
   204  }
   205  
   206  // TranslateResultAllItem ...
   207  type TranslateResultAllItem struct {
   208  	DetectedLanguage *TranslateResultAllItemDetectedLanguage   `json:"detectedLanguage,omitempty"`
   209  	Translations     *[]TranslateResultAllItemTranslationsItem `json:"translations,omitempty"`
   210  }
   211  
   212  // TranslateResultAllItemDetectedLanguage ...
   213  type TranslateResultAllItemDetectedLanguage struct {
   214  	Language *string `json:"language,omitempty"`
   215  	Score    *int32  `json:"score,omitempty"`
   216  }
   217  
   218  // TranslateResultAllItemTranslationsItem ...
   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  // TranslateResultAllItemTranslationsItemAlignment ...
   228  type TranslateResultAllItemTranslationsItemAlignment struct {
   229  	Proj *string `json:"proj,omitempty"`
   230  }
   231  
   232  // TranslateResultAllItemTranslationsItemSentLen ...
   233  type TranslateResultAllItemTranslationsItemSentLen struct {
   234  	SrcSentLen   *[]TranslateResultAllItemTranslationsItemSentLenSrcSentLenItem   `json:"srcSentLen,omitempty"`
   235  	TransSentLen *[]TranslateResultAllItemTranslationsItemSentLenTransSentLenItem `json:"transSentLen,omitempty"`
   236  }
   237  
   238  // TranslateResultAllItemTranslationsItemSentLenSrcSentLenItem ...
   239  type TranslateResultAllItemTranslationsItemSentLenSrcSentLenItem struct {
   240  	Integer *int32 `json:"integer,omitempty"`
   241  }
   242  
   243  // TranslateResultAllItemTranslationsItemSentLenTransSentLenItem ...
   244  type TranslateResultAllItemTranslationsItemSentLenTransSentLenItem struct {
   245  	Integer *int32 `json:"integer,omitempty"`
   246  }
   247  
   248  // TranslateResultAllItemTranslationsItemTransliteration ...
   249  type TranslateResultAllItemTranslationsItemTransliteration struct {
   250  	Text   *string `json:"text,omitempty"`
   251  	Script *string `json:"script,omitempty"`
   252  }
   253  
   254  // TranslateResultItem ...
   255  type TranslateResultItem struct {
   256  	Translation *[]TranslateResultItemTranslationItem `json:"translation,omitempty"`
   257  }
   258  
   259  // TranslateResultItemTranslationItem ...
   260  type TranslateResultItemTranslationItem struct {
   261  	Text *string `json:"text,omitempty"`
   262  	To   *string `json:"to,omitempty"`
   263  }
   264  
   265  // TranslateTextInput text needed for a translate request
   266  type TranslateTextInput struct {
   267  	Text *string `json:"text,omitempty"`
   268  }
   269  
   270  // TransliterateResultItem ...
   271  type TransliterateResultItem struct {
   272  	Text   *string `json:"text,omitempty"`
   273  	Script *string `json:"script,omitempty"`
   274  }
   275  
   276  // TransliterateTextInput text needed for a transliterate request
   277  type TransliterateTextInput struct {
   278  	Text *string `json:"text,omitempty"`
   279  }
   280  

View as plain text