Uses of Class
org.languagetool.AnalyzedSentence
Packages that use AnalyzedSentence
Package
Description
-
Uses of AnalyzedSentence in org.languagetool
Fields in org.languagetool with type parameters of type AnalyzedSentenceModifier and TypeFieldDescriptionprivate final List<AnalyzedSentence>
JLanguageTool.TextCheckCallable.analyzedSentences
private final com.google.common.cache.Cache<SimpleInputSentence,
AnalyzedSentence> ResultCache.sentenceCache
Methods in org.languagetool that return AnalyzedSentenceModifier and TypeMethodDescriptionMultiThreadedJLanguageTool.AnalyzeSentenceCallable.call()
MultiThreadedJLanguageTool.ParagraphEndAnalyzeSentenceCallable.call()
AnalyzedSentence.copy
(AnalyzedSentence sentence) The method copiesAnalyzedSentence
and returns the copy.JLanguageTool.getAnalyzedSentence
(String sentence) Tokenizes the givensentence
into words and analyzes it, and then disambiguates POS tags.ResultCache.getIfPresent
(SimpleInputSentence key) JLanguageTool.getRawAnalyzedSentence
(String sentence) Tokenizes the givensentence
into words and analyzes it.Methods in org.languagetool that return types with arguments of type AnalyzedSentenceModifier and TypeMethodDescriptionprotected List<AnalyzedSentence>
JLanguageTool.analyzeSentences
(List<String> sentences) protected List<AnalyzedSentence>
MultiThreadedJLanguageTool.analyzeSentences
(List<String> sentences) 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<SimpleInputSentence,
AnalyzedSentence> ResultCache.getSentenceCache()
Methods in org.languagetool with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionJLanguageTool.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.copy
(AnalyzedSentence sentence) The method copiesAnalyzedSentence
and returns the copy.protected void
JLanguageTool.printSentenceInfo
(AnalyzedSentence analyzedSentence) void
ResultCache.put
(SimpleInputSentence key, AnalyzedSentence aSentence) protected void
JLanguageTool.rememberUnknownWords
(AnalyzedSentence analyzedText) int
ResultCache.SentenceWeigher.weigh
(SimpleInputSentence sentence, AnalyzedSentence analyzedSentence) Method parameters in org.languagetool with type arguments of type AnalyzedSentenceModifier and TypeMethodDescriptionMultiThreadedJLanguageTool.createTextCheckCallables
(JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, List<AnalyzedSentence> analyzedSentences, List<String> sentences, List<Rule> allRules, int charCount, int lineCount, int columnCount, RuleMatchListener listener, JLanguageTool.Mode mode) JLanguageTool.performCheck
(List<AnalyzedSentence> analyzedSentences, List<String> sentences, List<Rule> allRules, JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, JLanguageTool.Mode mode) JLanguageTool.performCheck
(List<AnalyzedSentence> analyzedSentences, List<String> sentences, List<Rule> allRules, JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, RuleMatchListener listener, JLanguageTool.Mode mode) 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 AnalyzedSentenceModifier and TypeMethodDescriptionfinal AnalyzedSentence
NoopDisambiguator.disambiguate
(AnalyzedSentence input) Methods in org.languagetool.noop with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionfinal AnalyzedSentence
NoopDisambiguator.disambiguate
(AnalyzedSentence input) -
Uses of AnalyzedSentence in org.languagetool.rules
Fields in org.languagetool.rules declared as AnalyzedSentenceModifier and TypeFieldDescriptionprivate final AnalyzedSentence
RuleMatch.sentence
private final AnalyzedSentence
SymbolLocator.sentence
Methods in org.languagetool.rules that return AnalyzedSentenceModifier and TypeMethodDescriptionRuleMatch.getSentence()
(package private) AnalyzedSentence
SymbolLocator.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 AnalyzedSentenceModifier and TypeMethodDescriptionprivate String
OpenNMTRule.createJson
(AnalyzedSentence sentence) private @Nullable RuleMatch
GenericUnpairedBracketsRule.createMatch
(List<RuleMatch> ruleMatches, UnsyncStack<SymbolLocator> ruleMatchStack, int startPos, String symbol, AnalyzedSentence sentence, List<AnalyzedSentence> sentences) 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) private boolean
GenericUnpairedBracketsRule.fillSymbolStack
(int startPosBase, AnalyzedTokenReadings[] tokens, int i, int j, UnsyncStack<SymbolLocator> symbolStack, AnalyzedSentence sentence) 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.AbstractCompoundRule.match
(AnalyzedSentence sentence) AbstractDashRule.match
(AnalyzedSentence sentence) AbstractPunctuationCheckRule.match
(AnalyzedSentence sentence) AbstractSimpleReplaceRule.match
(AnalyzedSentence sentence) AbstractSimpleReplaceRule2.match
(AnalyzedSentence sentence) final RuleMatch[]
AbstractSpaceBeforeRule.match
(AnalyzedSentence sentence) AbstractUnitConversionRule.match
(AnalyzedSentence sentence) final RuleMatch[]
AdvancedWordRepeatRule.match
(AnalyzedSentence sentence) final RuleMatch[]
CommaWhitespaceRule.match
(AnalyzedSentence sentence) DemoRule.match
(AnalyzedSentence sentence) final RuleMatch[]
DoublePunctuationRule.match
(AnalyzedSentence sentence) LongSentenceRule.match
(AnalyzedSentence sentence) OpenNMTRule.match
(AnalyzedSentence sentence) abstract RuleMatch[]
Rule.match
(AnalyzedSentence sentence) Check whether the given sentence matches this error rule, i.e.final RuleMatch[]
TextLevelRule.match
(AnalyzedSentence sentence) WhiteSpaceAtBeginOfParagraph.match
(AnalyzedSentence sentence) final RuleMatch[]
WhitespaceBeforePunctuationRule.match
(AnalyzedSentence sentence) WordRepeatRule.match
(AnalyzedSentence sentence) WrongWordInContextRule.match
(AnalyzedSentence sentence) private void
AbstractUnitConversionRule.matchUnits
(AnalyzedSentence sentence, List<RuleMatch> matches, List<Map.Entry<Integer, Integer>> ignoreRanges, boolean isMetric) private void
AbstractUnitConversionRule.tryConversion
(AnalyzedSentence sentence, List<RuleMatch> matches, Pattern unitPattern, Double customValue, javax.measure.Unit customUnit, Matcher unitMatcher, List<Map.Entry<Integer, Integer>> ignoreRanges) Method parameters in org.languagetool.rules with type arguments of type AnalyzedSentenceModifier and TypeMethodDescriptionAbstractFillerWordsRule.match
(List<AnalyzedSentence> sentences) AbstractStyleRepeatedWordRule.match
(List<AnalyzedSentence> sentences) AbstractWordCoherencyRule.match
(List<AnalyzedSentence> sentences) EmptyLineRule.match
(List<AnalyzedSentence> sentences) final RuleMatch[]
GenericUnpairedBracketsRule.match
(List<AnalyzedSentence> sentences) LongParagraphRule.match
(List<AnalyzedSentence> sentences) MultipleWhitespaceRule.match
(List<AnalyzedSentence> sentences) ParagraphRepeatBeginningRule.match
(List<AnalyzedSentence> sentences) PunctuationMarkAtParagraphEnd.match
(List<AnalyzedSentence> sentences) ReadabilityRule.match
(List<AnalyzedSentence> sentences) SentenceWhitespaceRule.match
(List<AnalyzedSentence> sentences) abstract RuleMatch[]
TextLevelRule.match
(List<AnalyzedSentence> sentences) Deprecated.TextLevelRule.match
(List<AnalyzedSentence> sentences, AnnotatedText annotatedText) UppercaseSentenceStartRule.match
(List<AnalyzedSentence> sentences) WhiteSpaceBeforeParagraphEnd.match
(List<AnalyzedSentence> sentences) WordRepeatBeginningRule.match
(List<AnalyzedSentence> sentences) Constructors in org.languagetool.rules with parameters of type AnalyzedSentenceModifierConstructorDescriptionRuleMatch
(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.(package private)
SymbolLocator
(String symbol, int index, int startPos, AnalyzedSentence sentence) -
Uses of AnalyzedSentence in org.languagetool.rules.bitext
Methods in org.languagetool.rules.bitext with parameters of type AnalyzedSentenceModifier and TypeMethodDescription@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) DifferentLengthRule.match
(AnalyzedSentence sourceText, AnalyzedSentence targetText) DifferentPunctuationRule.match
(AnalyzedSentence sourceText, AnalyzedSentence targetText) SameTranslationRule.match
(AnalyzedSentence sourceText, AnalyzedSentence targetText) -
Uses of AnalyzedSentence in org.languagetool.rules.neuralnetwork
Methods in org.languagetool.rules.neuralnetwork with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionprivate @NotNull RuleMatch
NeuralNetworkRule.createRuleMatch
(AnalyzedTokenReadings token, Suggestion suggestion, float[] y, AnalyzedSentence sentence) NeuralNetworkRule.match
(AnalyzedSentence sentence) -
Uses of AnalyzedSentence in org.languagetool.rules.ngrams
Methods in org.languagetool.rules.ngrams with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionprotected boolean
NgramProbabilityRule.acceptMatch
(RuleMatch match, Probability p, AnalyzedSentence sentence) Overwrite this method to discard matches by returningfalse
.private static Set<AnalyzedToken>
GoogleToken.findOriginalAnalyzedTokens
(AnalyzedSentence sentence, int startPos, int endPos) 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) NgramProbabilityRule.getBetterAlternatives
(GoogleToken prevToken, String token, GoogleToken next, GoogleToken googleToken, Probability p, AnalyzedSentence sentence) (package private) static List<GoogleToken>
GoogleToken.getGoogleTokens
(AnalyzedSentence sentence, boolean addStartToken, Tokenizer wordTokenizer) private boolean
ConfusionProbabilityRule.isLocalException
(AnalyzedSentence sentence, GoogleToken googleToken) ConfusionProbabilityRule.match
(AnalyzedSentence sentence) NgramProbabilityRule.match
(AnalyzedSentence sentence) -
Uses of AnalyzedSentence in org.languagetool.rules.patterns
Methods in org.languagetool.rules.patterns with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionboolean
PatternRule.canBeIgnoredFor
(AnalyzedSentence sentence) A fast check whether this rule can be ignored for the given sentence because it can never match.private @Nullable RuleMatch
PatternRuleMatcher.createRuleMatch
(List<Integer> tokenPositions, AnalyzedTokenReadings[] tokens, int firstMatchToken, int lastMatchToken, int firstMarkerMatchToken, int lastMarkerMatchToken, AnalyzedSentence sentence) AbstractPatternRule.match
(AnalyzedSentence sentence) final RuleMatch[]
PatternRule.match
(AnalyzedSentence sentence) PatternRuleMatcher.match
(AnalyzedSentence sentence) RegexPatternRule.match
(AnalyzedSentence sentenceObj) RuleFilter.FakeRule.match
(AnalyzedSentence sentence) RuleMatcher.match
(AnalyzedSentence sentence) -
Uses of AnalyzedSentence in org.languagetool.rules.patterns.bitext
Methods in org.languagetool.rules.patterns.bitext with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionBitextPatternRule.match
(AnalyzedSentence sentence) This method always returns an empty array.BitextPatternRule.match
(AnalyzedSentence sourceSentence, AnalyzedSentence targetSentence) -
Uses of AnalyzedSentence in org.languagetool.rules.spelling
Methods in org.languagetool.rules.spelling with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionprotected RuleMatch
SpellingCheckRule.createWrongSplitMatch
(AnalyzedSentence sentence, List<RuleMatch> ruleMatchesSoFar, int pos, String coveredWord, String suggestion1, String suggestion2, int prevPos) SpellingCheckRule.filterSuggestions
(List<String> suggestions, AnalyzedSentence sentence, int i) Remove prohibited words from suggestions.abstract RuleMatch[]
SpellingCheckRule.match
(AnalyzedSentence sentence) SymSpellRule.match
(AnalyzedSentence sentence) -
Uses of AnalyzedSentence in org.languagetool.rules.spelling.hunspell
Methods in org.languagetool.rules.spelling.hunspell with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionprotected 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“)HunspellRule.match
(AnalyzedSentence sentence) -
Uses of AnalyzedSentence in org.languagetool.rules.spelling.morfologik
Methods in org.languagetool.rules.spelling.morfologik with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionMorfologikSpellerRule.getRuleMatches
(String word, int startPos, AnalyzedSentence sentence, List<RuleMatch> ruleMatchesSoFar, int idx, AnalyzedTokenReadings[] tokens) MorfologikSpellerRule.match
(AnalyzedSentence sentence) MorfologikSpellerRule.orderSuggestions
(List<String> suggestions, String word, AnalyzedSentence sentence, int startPos) -
Uses of AnalyzedSentence in org.languagetool.rules.spelling.morfologik.suggestions_ordering
Methods in org.languagetool.rules.spelling.morfologik.suggestions_ordering with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionSuggestionsOrdererGSoC.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 AnalyzedSentenceModifier and TypeMethodDescriptionorg.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 suggestionsSuggestionsOrderer.orderSuggestions
(List<String> suggestions, String word, AnalyzedSentence sentence, int startPos) SuggestionsOrdererFeatureExtractor.orderSuggestions
(List<String> suggestions, String word, AnalyzedSentence sentence, int startPos) XGBoostSuggestionsOrderer.orderSuggestions
(List<String> suggestions, String word, AnalyzedSentence sentence, int startPos) 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 AnalyzedSentenceModifier and TypeMethodDescriptionDisambiguator.disambiguate
(AnalyzedSentence input) If possible, filters out the wrong POS tags.final AnalyzedSentence
MultiWordChunker.disambiguate
(AnalyzedSentence input) Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.MultiWordChunker2.disambiguate
(AnalyzedSentence input) Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.AbstractDisambiguator.preDisambiguate
(AnalyzedSentence input) Disambiguator.preDisambiguate
(AnalyzedSentence input) If possible, filters out the wrong POS tags.Methods in org.languagetool.tagging.disambiguation with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionDisambiguator.disambiguate
(AnalyzedSentence input) If possible, filters out the wrong POS tags.final AnalyzedSentence
MultiWordChunker.disambiguate
(AnalyzedSentence input) Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.MultiWordChunker2.disambiguate
(AnalyzedSentence input) Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.AbstractDisambiguator.preDisambiguate
(AnalyzedSentence input) 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 AnalyzedSentenceModifier and TypeMethodDescriptionXmlRuleDisambiguator.disambiguate
(AnalyzedSentence input) final AnalyzedSentence
DisambiguationPatternRule.replace
(AnalyzedSentence sentence) Performs disambiguation on the source sentence.final AnalyzedSentence
DisambiguationPatternRuleReplacer.replace
(AnalyzedSentence sentence) Methods in org.languagetool.tagging.disambiguation.rules with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionXmlRuleDisambiguator.disambiguate
(AnalyzedSentence input) private AnalyzedTokenReadings[]
DisambiguationPatternRuleReplacer.executeAction
(AnalyzedSentence sentence, AnalyzedTokenReadings[] whiteTokens, AnalyzedTokenReadings[] unifiedTokens, int firstMatchToken, int lastMatchToken, int matchingTokens, int[] tokenPositions) private boolean
DisambiguationPatternRuleReplacer.keepByDisambig
(AnalyzedSentence sentence, int ruleMatchFromPos, int ruleMatchToPos) final AnalyzedSentence
DisambiguationPatternRule.replace
(AnalyzedSentence sentence) Performs disambiguation on the source sentence.final AnalyzedSentence
DisambiguationPatternRuleReplacer.replace
(AnalyzedSentence sentence) -
Uses of AnalyzedSentence in org.languagetool.tagging.disambiguation.xx
Methods in org.languagetool.tagging.disambiguation.xx that return AnalyzedSentenceModifier and TypeMethodDescriptionfinal AnalyzedSentence
DemoDisambiguator.disambiguate
(AnalyzedSentence input) Methods in org.languagetool.tagging.disambiguation.xx with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionfinal AnalyzedSentence
DemoDisambiguator.disambiguate
(AnalyzedSentence input)
TextLevelRule.match(List, AnnotatedText)
instead