Partilhar via


AITranslationTextModelFactory.TranslatedTextAlignment(String) Method

Definition

Initializes a new instance of TranslatedTextAlignment.

public static Azure.AI.Translation.Text.TranslatedTextAlignment TranslatedTextAlignment (string projections = default);
static member TranslatedTextAlignment : string -> Azure.AI.Translation.Text.TranslatedTextAlignment
Public Shared Function TranslatedTextAlignment (Optional projections As String = Nothing) As TranslatedTextAlignment

Parameters

projections
String

Maps input text to translated text. The alignment information is only provided when the request parameter includeAlignment is true. Alignment is returned as a string value of the following format: [[SourceTextStartIndex]:[SourceTextEndIndex]–[TgtTextStartIndex]:[TgtTextEndIndex]]. The colon separates start and end index, the dash separates the languages, and space separates the words. One word may align with zero, one, or multiple words in the other language, and the aligned words may be non-contiguous. When no alignment information is available, the alignment element will be empty.

Returns

A new TranslatedTextAlignment instance for mocking.

Applies to