calculate
public double calculate(String language,
String text1,
String text2)
throws AccessLimitExceededException,
InvalidParameterException,
LanguageNotUniquelyDecidedException,
NoAccessPermissionException,
NoValidEndpointsException,
ProcessFailedException,
ServerBusyException,
ServiceNotActiveException,
ServiceNotFoundException,
UnsupportedLanguageException
Runs the text's similarity calculation.
- Specified by:
calculate in interface SimilarityCalculationService
- Parameters:
language - Language of text(RFC3066 compliant)text1 - Source text for comparison (required)text2 - Destination text for comparison (required)
- Returns:
- Calculation results
- Throws:
AccessLimitExceededException - Violated an access restriction
InvalidParameterException - One of either text1,text2,or language is null.language does not comply with RFC3066
LanguageNotUniquelyDecidedException - 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)
UnsupportedLanguageException - The specified language is not supported
NoAccessPermissionException - The user executing the call lacks execution privileges
NoValidEndpointsException - There is no valid endpoint
ProcessFailedException - Calculation process failed
ServerBusyException - The server is loaded and cannot process it.
ServiceNotActiveException - The service is not active
ServiceNotFoundException - The specified service was not found