Class SentenceLength

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

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

    • getSrcSentLen

      public List<Integer> getSrcSentLen()
      Get the srcSentLen 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 srcSentLen value.
    • getTransSentLen

      public List<Integer> getTransSentLen()
      Get the transSentLen 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 transSentLen value.