public final class BreakSentences extends MicrosoftTranslatorAPI
Provides an interface to the Microsoft Translator BreakSentences service
This service is basically a utility for determining how Microsoft Translator is interpreting sentence breaks within a given string of text
Uses the AJAX Interface V2 - see: http://msdn.microsoft.com/en-us/library/ff512395.aspx
apiKey, ENCODING, PARAM_APP_ID, PARAM_FROM_LANG, PARAM_LANGUAGE_CODES, PARAM_LOCALE, PARAM_SENTENCES_LANGUAGE, PARAM_SPOKEN_LANGUAGE, PARAM_TEXT_ARRAY, PARAM_TEXT_SINGLE, PARAM_TO_LANG, protocol, PROTOCOL_HTTP, PROTOCOL_HTTPS| Modifier and Type | Method and Description |
|---|---|
static java.lang.Integer[] |
execute(java.lang.String text,
Language fromLang)
Reports the number of sentences detected and the length of those sentences
|
buildStringArrayParam, getProtocol, getToken, isUsingSSL, resetToken, retrieveIntArray, retrieveString, retrieveStringArr, retrieveStringArr, setContentType, setHttpReferrer, setKey, setSubscriptionKey, setUsingSSL, validateServiceStatepublic static java.lang.Integer[] execute(java.lang.String text,
Language fromLang)
throws java.lang.Exception
text - The String to break into sentencesfromLang - The Language of originjava.lang.Exception - on error.