TranslationTextModelFactory.TranslationText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Translation result.
public static Azure.AI.Translation.Text.TranslationText TranslationText(string language = default, int? sourceCharacters = default, int? instructionTokens = default, int? sourceTokens = default, int? responseTokens = default, int? targetTokens = default, string text = default);
static member TranslationText : string * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * string -> Azure.AI.Translation.Text.TranslationText
Public Shared Function TranslationText (Optional language As String = Nothing, Optional sourceCharacters As Nullable(Of Integer) = Nothing, Optional instructionTokens As Nullable(Of Integer) = Nothing, Optional sourceTokens As Nullable(Of Integer) = Nothing, Optional responseTokens As Nullable(Of Integer) = Nothing, Optional targetTokens As Nullable(Of Integer) = Nothing, Optional text As String = Nothing) As TranslationText
Parameters
- language
- String
A string representing the language code of the target language.
An integer indicating the number of characters in the source text string.
An integer indicating the number of tokens used in generating the translated text.
An integer indicating the number of tokens used in the source sentence.
An integer indicating the number of tokens used in the translation response.
An integer indicating the number of tokens used in the target sentence.
- text
- String
A string giving the translated text.
Returns
A new TranslationText instance for mocking.