AITranslationTextModelFactory.SentenceBoundaries Method
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.
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
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for