public interface ParaphraseService
Modifier and Type | Method and Description |
---|---|
String[] |
paraphrase(String language,
String text)
Paraphrases the text specified by text,language, returns the results.
|
String[] paraphrase(String language, String text) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
language
- Language of text(RFC3066 compliant)text
- Text (required)AccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- Either text or language is null or else an empty string.language does not comply with RFC3066LanguageNotUniquelyDecidedException
- A supported language candidate could not be singly determined (Ex: when the language is specified as zh, the case where zh-Hans and zh-Hant exist as supported languages)NoAccessPermissionException
- The user executing the call lacks execution privilegesNoValidEndpointsException
- There is no valid endpointProcessFailedException
- Paraphrasing process failedServerBusyException
- The server is loaded and cannot process it.ServiceNotActiveException
- The service is not activeServiceNotFoundException
- The specified service was not foundUnsupportedLanguageException
- The specified language is not supported