Dela via


AITranslationTextModelFactory.SentenceBoundaries Method

Definition

Initializes a new instance of SentenceBoundaries.

public static Azure.AI.Translation.Text.SentenceBoundaries SentenceBoundaries (System.Collections.Generic.IEnumerable<int> sourceSentencesLengths = default, System.Collections.Generic.IEnumerable<int> translatedSentencesLengths = default);
static member SentenceBoundaries : seq<int> * seq<int> -> Azure.AI.Translation.Text.SentenceBoundaries
Public Shared Function SentenceBoundaries (Optional sourceSentencesLengths As IEnumerable(Of Integer) = Nothing, Optional translatedSentencesLengths As IEnumerable(Of Integer) = Nothing) As SentenceBoundaries

Parameters

sourceSentencesLengths
IEnumerable<Int32>

An integer array representing the lengths of the sentences in the input text. The length of the array is the number of sentences, and the values are the length of each sentence.

translatedSentencesLengths
IEnumerable<Int32>

An integer array representing the lengths of the sentences in the translated text. The length of the array is the number of sentences, and the values are the length of each sentence.

Returns

A new SentenceBoundaries instance for mocking.

Applies to