TranslationText Class
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 class TranslationText : System.ClientModel.Primitives.IJsonModel<Azure.AI.Translation.Text.TranslationText>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Translation.Text.TranslationText>
type TranslationText = class
interface IJsonModel<TranslationText>
interface IPersistableModel<TranslationText>
Public Class TranslationText
Implements IJsonModel(Of TranslationText), IPersistableModel(Of TranslationText)
- Inheritance
-
TranslationText
- Implements
Properties
| Name | Description |
|---|---|
| InstructionTokens |
An integer indicating the number of tokens used in generating the translated text. |
| Language |
A string representing the language code of the target language. |
| ResponseTokens |
An integer indicating the number of tokens used in the translation response. |
| SourceCharacters |
An integer indicating the number of characters in the source text string. |
| SourceTokens |
An integer indicating the number of tokens used in the source sentence. |
| TargetTokens |
An integer indicating the number of tokens used in the target sentence. |
| Text |
A string giving the translated text. |
Methods
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJsonModel<TranslationText>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<TranslationText>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<TranslationText>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<TranslationText>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. <param name="options">The ModelReaderWriterOptions to use.</param> |
| IPersistableModel<TranslationText>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |