Interface GoogleAutoMLTranslationAPI
-
- All Known Implementing Classes:
GoogleAutoMLTranslationAPIImpl
public interface GoogleAutoMLTranslationAPI
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringpredict(String sourceText, String modelResourceName, GoogleOAuth2Service service)Performs a prediction using the model with the given resource name and returns the translated text.
-
-
-
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:
IOExceptionorg.json.simple.parser.ParseException
-
-