Share via


DictionaryTranslation Class

Definition

Translation source term.

public class DictionaryTranslation : System.ClientModel.Primitives.IJsonModel<Azure.AI.Translation.Text.DictionaryTranslation>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Translation.Text.DictionaryTranslation>
public class DictionaryTranslation
type DictionaryTranslation = class
    interface IJsonModel<DictionaryTranslation>
    interface IPersistableModel<DictionaryTranslation>
type DictionaryTranslation = class
Public Class DictionaryTranslation
Implements IJsonModel(Of DictionaryTranslation), IPersistableModel(Of DictionaryTranslation)
Public Class DictionaryTranslation
Inheritance
DictionaryTranslation
Implements

Properties

BackTranslations

A list of "back translations" of the target. For example, source words that the target can translate to. The list is guaranteed to contain the source word that was requested (e.g., if the source word being looked up is "fly", then it is guaranteed that "fly" will be in the backTranslations list). However, it is not guaranteed to be in the first position, and often will not be.

Confidence

A value between 0.0 and 1.0 which represents the "confidence" (or perhaps more accurately, "probability in the training data") of that translation pair. The sum of confidence scores for one source word may or may not sum to 1.0.

DisplayTarget

A string giving the term in the target language and in a form best suited for end-user display. Generally, this will only differ from the normalizedTarget in terms of capitalization. For example, a proper noun like "Juan" will have normalizedTarget = "juan" and displayTarget = "Juan".

NormalizedTarget

A string giving the normalized form of this term in the target language. This value should be used as input to lookup examples.

PosTag

A string associating this term with a part-of-speech tag.

PrefixWord

A string giving the word to display as a prefix of the translation. Currently, this is the gendered determiner of nouns, in languages that have gendered determiners. For example, the prefix of the Spanish word "mosca" is "la", since "mosca" is a feminine noun in Spanish. This is only dependent on the translation, and not on the source. If there is no prefix, it will be the empty string.

Explicit Interface Implementations

IJsonModel<DictionaryTranslation>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DictionaryTranslation>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DictionaryTranslation>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DictionaryTranslation>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DictionaryTranslation>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to