public interface SimilarityCalculationService
| 修飾子とタイプ | メソッドと説明 |
|---|---|
double |
calculate(String language,
String text1,
String text2)
Runs the text's similarity calculation.
|
double calculate(String language, String text1, String text2) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
language - Language of text(RFC3066 compliant)text1 - Source text for comparison (required)text2 - Destination text for comparison (required)AccessLimitExceededException - Violated an access restrictionInvalidParameterException - One of either text1,text2,or language is null.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 - Calculation 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 supportedCopyright © 2019. All rights reserved.