public class MicrosoftTranslatorAzure extends BaseTranslate
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
accessToken |
protected static java.lang.String |
PROPERTY_NEURAL |
protected static java.lang.String |
PROPERTY_SUBSCRIPTION_KEY |
protected static java.util.regex.Pattern |
RE_RESPONSE |
protected static java.lang.String |
URL_TOKEN |
protected static java.lang.String |
URL_TRANSLATE |
enabled, glossarySupplier
Constructor and Description |
---|
MicrosoftTranslatorAzure() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get machine translation engine name.
|
protected java.lang.String |
getPreferenceName() |
boolean |
isConfigurable()
Indicates that the MT provider has options that can be configured.
|
void |
showConfigurationUI(java.awt.Window parent)
Invoke the configuration UI of this MT provider.
|
protected java.lang.String |
translate(Language sLang,
Language tLang,
java.lang.String text) |
cleanSpacesAroundTags, clearCache, getCachedTranslation, getCredential, getFromCache, getTranslation, isCredentialStoredTemporarily, isEnabled, putToCache, setCredential, setEnabled, setGlossarySupplier
protected static final java.lang.String PROPERTY_NEURAL
protected static final java.lang.String PROPERTY_SUBSCRIPTION_KEY
protected static final java.lang.String URL_TOKEN
protected static final java.lang.String URL_TRANSLATE
protected static final java.util.regex.Pattern RE_RESPONSE
protected java.lang.String accessToken
protected java.lang.String getPreferenceName()
getPreferenceName
in class BaseTranslate
public java.lang.String getName()
IMachineTranslation
protected java.lang.String translate(Language sLang, Language tLang, java.lang.String text) throws java.lang.Exception
translate
in class BaseTranslate
java.lang.Exception
public boolean isConfigurable()
IMachineTranslation
true
, and implement their configuration UI by overriding
IMachineTranslation.showConfigurationUI(Window)
.public void showConfigurationUI(java.awt.Window parent)
IMachineTranslation