Interface GoogleAutoMLTranslationAPI

    • Method Detail

      • predict

        String predict​(String sourceText,
                       String modelResourceName,
                       GoogleOAuth2Service service)
                throws IOException,
                       org.json.simple.parser.ParseException
        Performs a prediction using the model with the given resource name and returns the translated text.
        Throws:
        IOException
        org.json.simple.parser.ParseException