search
ParallelText[] search(String sourceLang,
String targetLang,
String text,
String matchingMethod)
throws AccessLimitExceededException,
InvalidParameterException,
LanguagePairNotUniquelyDecidedException,
NoAccessPermissionException,
NoValidEndpointsException,
ProcessFailedException,
ServerBusyException,
ServiceNotActiveException,
ServiceNotFoundException,
UnsupportedLanguagePairException,
UnsupportedMatchingMethodException
Runs a search on the parallel text using the specified search term(s) and matching method.
- Parameters:
sourceLang
- Source language. RFC3066 complianttargetLang
- Language to search bilingual translation. RFC3066 complianttext
- Sentence to search bilingual translation withmatchingMethod
- Search method
- Returns:
- Array with search results stored.If none exist, an empty array.
- Throws:
AccessLimitExceededException
- Violated an access restriction
InvalidParameterException
- An invalid parameter was passed
LanguagePairNotUniquelyDecidedException
- Multiple candidate language pairs were found
NoAccessPermissionException
- The user executing the call lacks execution privileges
NoValidEndpointsException
- There is no valid endpoint
ProcessFailedException
- Search process failed
ServerBusyException
- The server is loaded and cannot process it.
ServiceNotActiveException
- The service is not active
ServiceNotFoundException
- The specified service was not found
UnsupportedLanguagePairException
- The specified language pair is not supported.
UnsupportedMatchingMethodException
- The specified matching method is not supported