Uses of Class
org.languagetool.AnalyzedSentence
-
-
Uses of AnalyzedSentence in org.languagetool
Methods in org.languagetool that return AnalyzedSentence Modifier and Type Method Description AnalyzedSentence
AnalyzedSentence. copy(AnalyzedSentence sentence)
The method copiesAnalyzedSentence
and returns the copy.AnalyzedSentence
JLanguageTool. getAnalyzedSentence(String sentence)
Tokenizes the givensentence
into words and analyzes it, and then disambiguates POS tags.AnalyzedSentence
ResultCache. getIfPresent(org.languagetool.SimpleInputSentence key)
AnalyzedSentence
JLanguageTool. getRawAnalyzedSentence(String sentence)
Tokenizes the givensentence
into words and analyzes it.Methods in org.languagetool that return types with arguments of type AnalyzedSentence Modifier and Type Method Description protected List<AnalyzedSentence>
JLanguageTool. analyzeSentences(List<String> sentences)
protected List<AnalyzedSentence>
MultiThreadedJLanguageTool. analyzeSentences(List<String> sentences)
List<AnalyzedSentence>
JLanguageTool. analyzeText(String text)
Use this method if you want to access LanguageTool's otherwise internal analysis of the text.com.google.common.cache.Cache<org.languagetool.SimpleInputSentence,AnalyzedSentence>
ResultCache. getSentenceCache()
Methods in org.languagetool with parameters of type AnalyzedSentence Modifier and Type Method Description List<RuleMatch>
JLanguageTool. checkAnalyzedSentence(JLanguageTool.ParagraphHandling paraMode, List<Rule> rules, AnalyzedSentence analyzedSentence)
This is an internal method that's public only for technical reasons, please use one of theJLanguageTool.check(String)
methods instead.AnalyzedSentence
AnalyzedSentence. copy(AnalyzedSentence sentence)
The method copiesAnalyzedSentence
and returns the copy.protected void
JLanguageTool. printSentenceInfo(AnalyzedSentence analyzedSentence)
void
ResultCache. put(org.languagetool.SimpleInputSentence key, AnalyzedSentence aSentence)
protected void
JLanguageTool. rememberUnknownWords(AnalyzedSentence analyzedText)
Method parameters in org.languagetool with type arguments of type AnalyzedSentence Modifier and Type Method Description protected List<RuleMatch>
JLanguageTool. performCheck(List<AnalyzedSentence> analyzedSentences, List<String> sentences, List<Rule> allRules, JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, JLanguageTool.Mode mode)
protected List<RuleMatch>
JLanguageTool. performCheck(List<AnalyzedSentence> analyzedSentences, List<String> sentences, List<Rule> allRules, JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, RuleMatchListener listener, JLanguageTool.Mode mode)
protected List<RuleMatch>
MultiThreadedJLanguageTool. performCheck(List<AnalyzedSentence> analyzedSentences, List<String> sentences, List<Rule> allRules, JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, RuleMatchListener listener, JLanguageTool.Mode mode)
-
Uses of AnalyzedSentence in org.languagetool.noop
Methods in org.languagetool.noop that return AnalyzedSentence Modifier and Type Method Description AnalyzedSentence
NoopDisambiguator. disambiguate(AnalyzedSentence input)
Methods in org.languagetool.noop with parameters of type AnalyzedSentence Modifier and Type Method Description AnalyzedSentence
NoopDisambiguator. disambiguate(AnalyzedSentence input)
-
Uses of AnalyzedSentence in org.languagetool.rules
Methods in org.languagetool.rules that return AnalyzedSentence Modifier and Type Method Description AnalyzedSentence
RuleMatch. getSentence()
protected AnalyzedSentence
Rule. getSentenceWithImmunization(AnalyzedSentence sentence)
To be called fromRule.match(AnalyzedSentence)
for rules that wantRule.getAntiPatterns()
to be considered.Methods in org.languagetool.rules with parameters of type AnalyzedSentence Modifier and Type Method Description protected RuleMatch
AbstractSimpleReplaceRule. createRuleMatch(AnalyzedTokenReadings tokenReadings, List<String> replacements, AnalyzedSentence sentence)
protected RuleMatch
WordRepeatRule. createRuleMatch(String prevToken, String token, int prevPos, int pos, String msg, AnalyzedSentence sentence)
protected boolean
AbstractUnitConversionRule. detectNumberRange(AnalyzedSentence sentence, Matcher matcher)
protected List<RuleMatch>
AbstractSimpleReplaceRule. findMatches(AnalyzedTokenReadings tokenReadings, AnalyzedSentence sentence)
protected AnalyzedSentence
Rule. getSentenceWithImmunization(AnalyzedSentence sentence)
To be called fromRule.match(AnalyzedSentence)
for rules that wantRule.getAntiPatterns()
to be considered.RuleMatch[]
AbstractCompoundRule. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractDashRule. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractPunctuationCheckRule. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractSimpleReplaceRule. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractSimpleReplaceRule2. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractSpaceBeforeRule. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractUnitConversionRule. match(AnalyzedSentence sentence)
RuleMatch[]
AdvancedWordRepeatRule. match(AnalyzedSentence sentence)
RuleMatch[]
CommaWhitespaceRule. match(AnalyzedSentence sentence)
RuleMatch[]
DemoRule. match(AnalyzedSentence sentence)
RuleMatch[]
DoublePunctuationRule. match(AnalyzedSentence sentence)
RuleMatch[]
LongSentenceRule. match(AnalyzedSentence sentence)
RuleMatch[]
OpenNMTRule. match(AnalyzedSentence sentence)
abstract RuleMatch[]
Rule. match(AnalyzedSentence sentence)
Check whether the given sentence matches this error rule, i.e.RuleMatch[]
TextLevelRule. match(AnalyzedSentence sentence)
RuleMatch[]
WhiteSpaceAtBeginOfParagraph. match(AnalyzedSentence sentence)
RuleMatch[]
WhitespaceBeforePunctuationRule. match(AnalyzedSentence sentence)
RuleMatch[]
WordRepeatRule. match(AnalyzedSentence sentence)
RuleMatch[]
WrongWordInContextRule. match(AnalyzedSentence sentence)
Method parameters in org.languagetool.rules with type arguments of type AnalyzedSentence Modifier and Type Method Description RuleMatch[]
AbstractFillerWordsRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
AbstractStyleRepeatedWordRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
AbstractWordCoherencyRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
EmptyLineRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
GenericUnpairedBracketsRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
LongParagraphRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
MultipleWhitespaceRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
ParagraphRepeatBeginningRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
PunctuationMarkAtParagraphEnd. match(List<AnalyzedSentence> sentences)
RuleMatch[]
ReadabilityRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
SentenceWhitespaceRule. match(List<AnalyzedSentence> sentences)
abstract RuleMatch[]
TextLevelRule. match(List<AnalyzedSentence> sentences)
Deprecated.useTextLevelRule.match(List, AnnotatedText)
insteadRuleMatch[]
TextLevelRule. match(List<AnalyzedSentence> sentences, AnnotatedText annotatedText)
RuleMatch[]
UppercaseSentenceStartRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
WhiteSpaceBeforeParagraphEnd. match(List<AnalyzedSentence> sentences)
RuleMatch[]
WordRepeatBeginningRule. match(List<AnalyzedSentence> sentences)
Constructors in org.languagetool.rules with parameters of type AnalyzedSentence Constructor Description RuleMatch(Rule rule, AnalyzedSentence sentence, int fromPos, int toPos, String message)
Creates a RuleMatch object, taking the rule that triggered this match, position of the match and an explanation message.RuleMatch(Rule rule, AnalyzedSentence sentence, int fromPos, int toPos, String message, String shortMessage)
Creates a RuleMatch object, taking the rule that triggered this match, position of the match and an explanation message.RuleMatch(Rule rule, AnalyzedSentence sentence, int fromPos, int toPos, String message, String shortMessage, boolean startWithUppercase, String suggestionsOutMsg)
Creates a RuleMatch object, taking the rule that triggered this match, position of the match and an explanation message. -
Uses of AnalyzedSentence in org.languagetool.rules.bitext
Methods in org.languagetool.rules.bitext with parameters of type AnalyzedSentence Modifier and Type Method Description @Nullable RuleMatch[]
BitextRule. match(AnalyzedSentence sentence)
This method makes no sense for bitext, thus it always returnsnull
.abstract RuleMatch[]
BitextRule. match(AnalyzedSentence sourceText, AnalyzedSentence targetText)
RuleMatch[]
DifferentLengthRule. match(AnalyzedSentence sourceText, AnalyzedSentence targetText)
RuleMatch[]
DifferentPunctuationRule. match(AnalyzedSentence sourceText, AnalyzedSentence targetText)
RuleMatch[]
SameTranslationRule. match(AnalyzedSentence sourceText, AnalyzedSentence targetText)
-
Uses of AnalyzedSentence in org.languagetool.rules.neuralnetwork
Methods in org.languagetool.rules.neuralnetwork with parameters of type AnalyzedSentence Modifier and Type Method Description RuleMatch[]
NeuralNetworkRule. match(AnalyzedSentence sentence)
-
Uses of AnalyzedSentence in org.languagetool.rules.ngrams
Methods in org.languagetool.rules.ngrams with parameters of type AnalyzedSentence Modifier and Type Method Description protected boolean
NgramProbabilityRule. acceptMatch(RuleMatch match, Probability p, AnalyzedSentence sentence)
Overwrite this method to discard matches by returningfalse
.static double
LanguageModelUtils. get3gramProbabilityFor(Language lang, LanguageModel lm, int position, AnalyzedSentence sentence, String candidate)
static double
LanguageModelUtils. get4gramProbabilityFor(Language lang, LanguageModel lm, int position, AnalyzedSentence sentence, String candidate)
RuleMatch[]
ConfusionProbabilityRule. match(AnalyzedSentence sentence)
RuleMatch[]
NgramProbabilityRule. match(AnalyzedSentence sentence)
-
Uses of AnalyzedSentence in org.languagetool.rules.patterns
Methods in org.languagetool.rules.patterns with parameters of type AnalyzedSentence Modifier and Type Method Description boolean
PatternRule. canBeIgnoredFor(AnalyzedSentence sentence)
A fast check whether this rule can be ignored for the given sentence because it can never match.RuleMatch[]
AbstractPatternRule. match(AnalyzedSentence sentence)
RuleMatch[]
PatternRule. match(AnalyzedSentence sentence)
RuleMatch[]
PatternRuleMatcher. match(AnalyzedSentence sentence)
RuleMatch[]
RegexPatternRule. match(AnalyzedSentence sentenceObj)
RuleMatch[]
RuleMatcher. match(AnalyzedSentence sentence)
-
Uses of AnalyzedSentence in org.languagetool.rules.patterns.bitext
Methods in org.languagetool.rules.patterns.bitext with parameters of type AnalyzedSentence Modifier and Type Method Description RuleMatch[]
BitextPatternRule. match(AnalyzedSentence sentence)
This method always returns an empty array.RuleMatch[]
BitextPatternRule. match(AnalyzedSentence sourceSentence, AnalyzedSentence targetSentence)
-
Uses of AnalyzedSentence in org.languagetool.rules.spelling
Methods in org.languagetool.rules.spelling with parameters of type AnalyzedSentence Modifier and Type Method Description protected RuleMatch
SpellingCheckRule. createWrongSplitMatch(AnalyzedSentence sentence, List<RuleMatch> ruleMatchesSoFar, int pos, String coveredWord, String suggestion1, String suggestion2, int prevPos)
protected List<String>
SpellingCheckRule. filterSuggestions(List<String> suggestions, AnalyzedSentence sentence, int i)
Remove prohibited words from suggestions.abstract RuleMatch[]
SpellingCheckRule. match(AnalyzedSentence sentence)
RuleMatch[]
SymSpellRule. match(AnalyzedSentence sentence)
-
Uses of AnalyzedSentence in org.languagetool.rules.spelling.hunspell
Methods in org.languagetool.rules.spelling.hunspell with parameters of type AnalyzedSentence Modifier and Type Method Description protected String
HunspellRule. getSentenceTextWithoutUrlsAndImmunizedTokens(AnalyzedSentence sentence)
protected boolean
HunspellRule. isQuotedCompound(AnalyzedSentence analyzedSentence, int idx, String token)
Is the given token part of a hyphenated compound preceded by a quoted token (e.g., „Spiegel“-Magazin) and should be treated as an ordinary hyphenated compound (e.g., „Spiegel-Magazin“)RuleMatch[]
HunspellRule. match(AnalyzedSentence sentence)
-
Uses of AnalyzedSentence in org.languagetool.rules.spelling.morfologik
Methods in org.languagetool.rules.spelling.morfologik with parameters of type AnalyzedSentence Modifier and Type Method Description protected List<RuleMatch>
MorfologikSpellerRule. getRuleMatches(String word, int startPos, AnalyzedSentence sentence, List<RuleMatch> ruleMatchesSoFar, int idx, AnalyzedTokenReadings[] tokens)
RuleMatch[]
MorfologikSpellerRule. match(AnalyzedSentence sentence)
-
Uses of AnalyzedSentence in org.languagetool.rules.spelling.morfologik.suggestions_ordering
Methods in org.languagetool.rules.spelling.morfologik.suggestions_ordering with parameters of type AnalyzedSentence Modifier and Type Method Description List<SuggestedReplacement>
SuggestionsOrdererGSoC. orderSuggestions(List<String> suggestions, String word, AnalyzedSentence sentence, int startPos)
Deprecated. -
Uses of AnalyzedSentence in org.languagetool.rules.spelling.suggestions
Methods in org.languagetool.rules.spelling.suggestions with parameters of type AnalyzedSentence Modifier and Type Method Description org.apache.commons.lang3.tuple.Pair<List<SuggestedReplacement>,SortedMap<String,Float>>
SuggestionsOrdererFeatureExtractor. computeFeatures(List<String> suggestions, String word, AnalyzedSentence sentence, int startPos)
compute features for training or prediction of a ranking model for suggestionsList<SuggestedReplacement>
SuggestionsOrderer. orderSuggestions(List<String> suggestions, String word, AnalyzedSentence sentence, int startPos)
List<SuggestedReplacement>
SuggestionsOrdererFeatureExtractor. orderSuggestions(List<String> suggestions, String word, AnalyzedSentence sentence, int startPos)
List<SuggestedReplacement>
XGBoostSuggestionsOrderer. orderSuggestions(List<String> suggestions, String word, AnalyzedSentence sentence, int startPos)
default List<String>
SuggestionsOrderer. orderSuggestionsUsingModel(List<String> suggestions, String word, AnalyzedSentence sentence, int startPos)
-
Uses of AnalyzedSentence in org.languagetool.tagging.disambiguation
Methods in org.languagetool.tagging.disambiguation that return AnalyzedSentence Modifier and Type Method Description AnalyzedSentence
Disambiguator. disambiguate(AnalyzedSentence input)
If possible, filters out the wrong POS tags.AnalyzedSentence
MultiWordChunker. disambiguate(AnalyzedSentence input)
Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.AnalyzedSentence
MultiWordChunker2. disambiguate(AnalyzedSentence input)
Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.AnalyzedSentence
AbstractDisambiguator. preDisambiguate(AnalyzedSentence input)
AnalyzedSentence
Disambiguator. preDisambiguate(AnalyzedSentence input)
If possible, filters out the wrong POS tags.Methods in org.languagetool.tagging.disambiguation with parameters of type AnalyzedSentence Modifier and Type Method Description AnalyzedSentence
Disambiguator. disambiguate(AnalyzedSentence input)
If possible, filters out the wrong POS tags.AnalyzedSentence
MultiWordChunker. disambiguate(AnalyzedSentence input)
Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.AnalyzedSentence
MultiWordChunker2. disambiguate(AnalyzedSentence input)
Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.AnalyzedSentence
AbstractDisambiguator. preDisambiguate(AnalyzedSentence input)
AnalyzedSentence
Disambiguator. preDisambiguate(AnalyzedSentence input)
If possible, filters out the wrong POS tags. -
Uses of AnalyzedSentence in org.languagetool.tagging.disambiguation.rules
Methods in org.languagetool.tagging.disambiguation.rules that return AnalyzedSentence Modifier and Type Method Description AnalyzedSentence
XmlRuleDisambiguator. disambiguate(AnalyzedSentence input)
AnalyzedSentence
DisambiguationPatternRule. replace(AnalyzedSentence sentence)
Performs disambiguation on the source sentence.Methods in org.languagetool.tagging.disambiguation.rules with parameters of type AnalyzedSentence Modifier and Type Method Description AnalyzedSentence
XmlRuleDisambiguator. disambiguate(AnalyzedSentence input)
AnalyzedSentence
DisambiguationPatternRule. replace(AnalyzedSentence sentence)
Performs disambiguation on the source sentence. -
Uses of AnalyzedSentence in org.languagetool.tagging.disambiguation.xx
Methods in org.languagetool.tagging.disambiguation.xx that return AnalyzedSentence Modifier and Type Method Description AnalyzedSentence
DemoDisambiguator. disambiguate(AnalyzedSentence input)
Methods in org.languagetool.tagging.disambiguation.xx with parameters of type AnalyzedSentence Modifier and Type Method Description AnalyzedSentence
DemoDisambiguator. disambiguate(AnalyzedSentence input)
-