Modifier and Type | Class and Description |
---|---|
class |
MultiThreadedJLanguageTool
A variant of
JLanguageTool that uses several threads for rule matching. |
Modifier and Type | Method and Description |
---|---|
JLanguageTool |
Language.createDefaultJLanguageTool()
Create a shared instance of JLanguageTool to use in rules for further processing
Instances are shared by Language
|
Modifier and Type | Method and Description |
---|---|
static int |
CommandLineTools.checkBitext(BitextReader reader,
JLanguageTool srcLt,
JLanguageTool trgLt,
List<BitextRule> bRules)
Checks the bilingual input (bitext) and displays the output (considering the target
language) in API format or in the simple text format.
|
static int |
CommandLineTools.checkText(String contents,
JLanguageTool lt) |
static int |
CommandLineTools.checkText(String contents,
JLanguageTool lt,
boolean isJsonFormat,
int lineOffset) |
static int |
CommandLineTools.checkText(String contents,
JLanguageTool lt,
boolean isJsonFormat,
int contextSize,
int lineOffset,
int prevMatches,
StringTools.ApiPrintMode apiMode,
boolean listUnknownWords,
JLanguageTool.Level level,
List<String> unknownWords,
boolean verbose)
Check the given text and print results to System.out.
|
static int |
CommandLineTools.checkText(String contents,
JLanguageTool lt,
boolean isJsonFormat,
int lineOffset,
JLanguageTool.Level level,
boolean listUnknownWords) |
static int |
CommandLineTools.checkText(String contents,
JLanguageTool lt,
boolean isJsonFormat,
int lineOffset,
JLanguageTool.Level level,
boolean listUnknownWords,
boolean verbose) |
static void |
CommandLineTools.correctBitext(BitextReader reader,
JLanguageTool sourceLt,
JLanguageTool targetLt,
List<BitextRule> bRules)
Automatically applies suggestions to the bilingual text.
|
static void |
CommandLineTools.profileRulesOnText(String contents,
JLanguageTool lt)
Simple rule profiler - used to run LT on a corpus to see which
rule takes most time.
|
static void |
CommandLineTools.tagText(String contents,
JLanguageTool lt)
Tags text using the LanguageTool tagger, printing results to System.out.
|
Constructor and Description |
---|
LanguageToolAnalyzer(JLanguageTool languageTool,
boolean toLowerCase) |
Modifier and Type | Method and Description |
---|---|
static void |
Tools.configureFromRules(JLanguageTool lt,
Configuration config) |
Modifier and Type | Field and Description |
---|---|
protected JLanguageTool |
RemoteRule.lt |
Modifier and Type | Method and Description |
---|---|
protected abstract JLanguageTool |
AbstractSuppressIfAnyRuleMatchesFilter.getJLanguageTool() |
Modifier and Type | Method and Description |
---|---|
protected JLanguageTool |
SuppressIfAnyRuleMatchesFilter.getJLanguageTool() |
Modifier and Type | Method and Description |
---|---|
protected JLanguageTool |
SuppressIfAnyRuleMatchesFilter.getJLanguageTool() |
Modifier and Type | Method and Description |
---|---|
static List<RuleMatch> |
Tools.checkBitext(String src,
String trg,
JLanguageTool srcLt,
JLanguageTool trgLt,
List<BitextRule> bRules)
Checks the bilingual input (bitext).
|
static String |
Tools.correctText(String contents,
JLanguageTool lt)
Automatically applies suggestions to the text, as suggested
by the rules that match.
|
static int |
Tools.profileRulesOnLine(String contents,
JLanguageTool lt,
Rule rule) |
static void |
Tools.selectRules(JLanguageTool lt,
List<String> disabledRuleIds,
List<String> enabledRuleIds,
boolean useEnabledOnly)
Enable and disable rules of the given LanguageTool instance.
|
static void |
Tools.selectRules(JLanguageTool lt,
Set<CategoryId> disabledCategories,
Set<CategoryId> enabledCategories,
Set<String> disabledRules,
Set<String> enabledRules,
boolean useEnabledOnly,
boolean enableTempOff) |