Class SentenceBoundaries

java.lang.Object
com.azure.ai.translation.text.models.SentenceBoundaries

public final class SentenceBoundaries extends Object
An object returning sentence boundaries in the input and output texts.
  • Method Details

    • getSourceSentencesLengths

      public List<Integer> getSourceSentencesLengths()
      Get the sourceSentencesLengths property: 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.
      Returns:
      the sourceSentencesLengths value.
    • getTranslatedSentencesLengths

      public List<Integer> getTranslatedSentencesLengths()
      Get the translatedSentencesLengths property: 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:
      the translatedSentencesLengths value.