Class BackTranslation

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

public final class BackTranslation extends Object
Back Translation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the displayText property: A string giving the source term that is a back-translation of the target in a form best suited for end-user display.
    int
    Get the examplesCount property: An integer representing the number of examples that are available for this translation pair.
    int
    Get the frequencyCount property: An integer representing the frequency of this translation pair in the data.
    Get the normalizedText property: A string giving the normalized form of the source term that is a back-translation of the target.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getNormalizedText

      public String getNormalizedText()
      Get the normalizedText property: A string giving the normalized form of the source term that is a back-translation of the target. This value should be used as input to lookup examples.
      Returns:
      the normalizedText value.
    • getDisplayText

      public String getDisplayText()
      Get the displayText property: A string giving the source term that is a back-translation of the target in a form best suited for end-user display.
      Returns:
      the displayText value.
    • getExamplesCount

      public int getExamplesCount()
      Get the examplesCount property: An integer representing the number of examples that are available for this translation pair. Actual examples must be retrieved with a separate call to lookup examples. The number is mostly intended to facilitate display in a UX. For example, a user interface may add a hyperlink to the back-translation if the number of examples is greater than zero and show the back-translation as plain text if there are no examples. Note that the actual number of examples returned by a call to lookup examples may be less than numExamples, because additional filtering may be applied on the fly to remove "bad" examples.
      Returns:
      the examplesCount value.
    • getFrequencyCount

      public int getFrequencyCount()
      Get the frequencyCount property: An integer representing the frequency of this translation pair in the data. The main purpose of this field is to provide a user interface with a means to sort back-translations so the most frequent terms are first.
      Returns:
      the frequencyCount value.