Uses of Class
org.languagetool.AnalyzedSentence
Packages that use AnalyzedSentence
Package
Description
-
Uses of AnalyzedSentence in org.languagetool
Methods in org.languagetool that return AnalyzedSentenceModifier and TypeMethodDescriptionAnalyzedSentence.copy(AnalyzedSentence sentence) The method copiesAnalyzedSentenceand returns the copy.JLanguageTool.getAnalyzedSentence(String sentence) Tokenizes the givensentenceinto words and analyzes it, and then disambiguates POS tags.ResultCache.getIfPresent(org.languagetool.SimpleInputSentence key) JLanguageTool.getRawAnalyzedSentence(String sentence) Tokenizes the givensentenceinto 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<org.languagetool.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 copiesAnalyzedSentenceand returns the copy.protected voidJLanguageTool.printSentenceInfo(AnalyzedSentence analyzedSentence) voidResultCache.put(org.languagetool.SimpleInputSentence key, AnalyzedSentence aSentence) protected voidJLanguageTool.rememberUnknownWords(AnalyzedSentence analyzedText) Method parameters in org.languagetool with type arguments of type AnalyzedSentenceModifier and TypeMethodDescriptionJLanguageTool.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 AnalyzedSentenceNoopDisambiguator.disambiguate(AnalyzedSentence input) Methods in org.languagetool.noop with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionfinal AnalyzedSentenceNoopDisambiguator.disambiguate(AnalyzedSentence input) -
Uses of AnalyzedSentence in org.languagetool.rules
Methods in org.languagetool.rules that return AnalyzedSentenceModifier and TypeMethodDescriptionRuleMatch.getSentence()protected AnalyzedSentenceRule.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 TypeMethodDescriptionprotected RuleMatchAbstractSimpleReplaceRule.createRuleMatch(AnalyzedTokenReadings tokenReadings, List<String> replacements, AnalyzedSentence sentence) protected RuleMatchWordRepeatRule.createRuleMatch(String prevToken, String token, int prevPos, int pos, String msg, AnalyzedSentence sentence) protected booleanAbstractUnitConversionRule.detectNumberRange(AnalyzedSentence sentence, Matcher matcher) AbstractSimpleReplaceRule.findMatches(AnalyzedTokenReadings tokenReadings, AnalyzedSentence sentence) protected AnalyzedSentenceRule.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. whether it contains the error detected by this rule.final RuleMatch[]TextLevelRule.match(AnalyzedSentence sentence) WhiteSpaceAtBeginOfParagraph.match(AnalyzedSentence sentence) final RuleMatch[]WhitespaceBeforePunctuationRule.match(AnalyzedSentence sentence) WordRepeatRule.match(AnalyzedSentence sentence) WrongWordInContextRule.match(AnalyzedSentence sentence) 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. -
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 AnalyzedSentence -
Uses of AnalyzedSentence in org.languagetool.rules.ngrams
Methods in org.languagetool.rules.ngrams with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionprotected booleanNgramProbabilityRule.acceptMatch(RuleMatch match, Probability p, AnalyzedSentence sentence) Overwrite this method to discard matches by returningfalse.static doubleLanguageModelUtils.get3gramProbabilityFor(Language lang, LanguageModel lm, int position, AnalyzedSentence sentence, String candidate) static doubleLanguageModelUtils.get4gramProbabilityFor(Language lang, LanguageModel lm, int position, AnalyzedSentence sentence, String candidate) 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 TypeMethodDescriptionbooleanPatternRule.canBeIgnoredFor(AnalyzedSentence sentence) A fast check whether this rule can be ignored for the given sentence because it can never match.AbstractPatternRule.match(AnalyzedSentence sentence) final RuleMatch[]PatternRule.match(AnalyzedSentence sentence) PatternRuleMatcher.match(AnalyzedSentence sentence) RegexPatternRule.match(AnalyzedSentence sentenceObj) 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 RuleMatchSpellingCheckRule.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 StringHunspellRule.getSentenceTextWithoutUrlsAndImmunizedTokens(AnalyzedSentence sentence) protected booleanHunspellRule.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) -
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 AnalyzedSentenceMultiWordChunker.disambiguate(AnalyzedSentence input) Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...)MultiWordChunker2.disambiguate(AnalyzedSentence input) Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...)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 AnalyzedSentenceMultiWordChunker.disambiguate(AnalyzedSentence input) Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...)MultiWordChunker2.disambiguate(AnalyzedSentence input) Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...)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 AnalyzedSentenceDisambiguationPatternRule.replace(AnalyzedSentence sentence) Performs disambiguation on the source sentence.Methods in org.languagetool.tagging.disambiguation.rules with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionXmlRuleDisambiguator.disambiguate(AnalyzedSentence input) final AnalyzedSentenceDisambiguationPatternRule.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 AnalyzedSentenceModifier and TypeMethodDescriptionfinal AnalyzedSentenceDemoDisambiguator.disambiguate(AnalyzedSentence input) Methods in org.languagetool.tagging.disambiguation.xx with parameters of type AnalyzedSentenceModifier and TypeMethodDescriptionfinal AnalyzedSentenceDemoDisambiguator.disambiguate(AnalyzedSentence input)
TextLevelRule.match(List, AnnotatedText)instead