Class TranslationRecognitionResult

    • Constructor Detail

      • TranslationRecognitionResult

        public TranslationRecognitionResult​(long result)
        Internal constructor for creating a TranslationRecognitionResult from a native handle.
        Parameters:
        result - IntentRecognitionResult
    • Method Detail

      • getTranslations

        public final Map<String,​String> getTranslations()
        Presents the translation results. Each item in the dictionary represents translation result in one of target languages, where the key is the name of the target language, in BCP-47 format, and the value is the translation text in the specified language.
        Returns:
        the current translation map.
      • toString

        public String toString()
        Returns a String that represents the translation recognition result.
        Overrides:
        toString in class Object
        Returns:
        A String that represents the translation recognition result.