public class LanguageToolConnector extends Object
| Constructor and Description |
|---|
LanguageToolConnector()
Creates a new LanguageToolConnector object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
checkSegment(URI docId,
String subDocId,
Segment srcSeg,
Segment trgSeg,
ITextUnit tu) |
List<Issue> |
getIssues() |
void |
initialize(LocaleId locId,
LocaleId motherLocId,
String serverUrl,
boolean translateLTMsg,
boolean bilingualMode,
String ltTranslationSource,
String ltTranslationTarget,
String ltTranslationServiceKey) |
protected org.json.simple.JSONObject |
sendRequest(URL url) |
public LanguageToolConnector()
public void initialize(LocaleId locId, LocaleId motherLocId, String serverUrl, boolean translateLTMsg, boolean bilingualMode, String ltTranslationSource, String ltTranslationTarget, String ltTranslationServiceKey)
protected org.json.simple.JSONObject sendRequest(URL url) throws UnsupportedEncodingException, IOException, org.json.simple.parser.ParseException
UnsupportedEncodingExceptionIOExceptionorg.json.simple.parser.ParseExceptionCopyright © 2019. All rights reserved.