你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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