public class GoogleAutoMLTranslationAPIImpl extends Object implements GoogleAutoMLTranslationAPI
| Constructor and Description |
|---|
GoogleAutoMLTranslationAPIImpl(String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
String |
predict(String sourceText,
String modelResourceName,
GoogleOAuth2Service service)
Performs a prediction using the model with the given resource name and returns the translated text.
|
public GoogleAutoMLTranslationAPIImpl(String baseUrl)
public String predict(String sourceText, String modelResourceName, GoogleOAuth2Service service) throws IOException, org.json.simple.parser.ParseException
GoogleAutoMLTranslationAPIpredict in interface GoogleAutoMLTranslationAPIIOExceptionorg.json.simple.parser.ParseExceptionCopyright © 2019. All rights reserved.