Uses of Class
org.languagetool.AnalyzedSentence
-
-
Uses of AnalyzedSentence in org.languagetool
Fields in org.languagetool with type parameters of type AnalyzedSentence Modifier and Type Field Description private java.util.List<AnalyzedSentence>JLanguageTool.TextCheckCallable. analyzedSentencesprivate com.google.common.cache.Cache<SimpleInputSentence,AnalyzedSentence>ResultCache. sentenceCacheMethods in org.languagetool that return AnalyzedSentence Modifier and Type Method Description AnalyzedSentenceMultiThreadedJLanguageTool.AnalyzeSentenceCallable. call()AnalyzedSentenceMultiThreadedJLanguageTool.ParagraphEndAnalyzeSentenceCallable. call()AnalyzedSentenceAnalyzedSentence. copy(AnalyzedSentence sentence)The method copiesAnalyzedSentenceand returns the copy.AnalyzedSentenceJLanguageTool. getAnalyzedSentence(java.lang.String sentence)Tokenizes the givensentenceinto words and analyzes it, and then disambiguates POS tags.AnalyzedSentenceResultCache. getIfPresent(SimpleInputSentence key)AnalyzedSentenceJLanguageTool. getRawAnalyzedSentence(java.lang.String sentence)Tokenizes the givensentenceinto words and analyzes it.Methods in org.languagetool that return types with arguments of type AnalyzedSentence Modifier and Type Method Description protected java.util.List<AnalyzedSentence>JLanguageTool. analyzeSentences(java.util.List<java.lang.String> sentences)protected java.util.List<AnalyzedSentence>MultiThreadedJLanguageTool. analyzeSentences(java.util.List<java.lang.String> sentences)java.util.List<AnalyzedSentence>JLanguageTool. analyzeText(java.lang.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 AnalyzedSentence Modifier and Type Method Description java.util.List<RuleMatch>JLanguageTool. checkAnalyzedSentence(JLanguageTool.ParagraphHandling paraMode, java.util.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.AnalyzedSentenceAnalyzedSentence. copy(AnalyzedSentence sentence)The method copiesAnalyzedSentenceand returns the copy.protected voidJLanguageTool. printSentenceInfo(AnalyzedSentence analyzedSentence)voidResultCache. put(SimpleInputSentence key, AnalyzedSentence aSentence)protected voidJLanguageTool. rememberUnknownWords(AnalyzedSentence analyzedText)intResultCache.SentenceWeigher. weigh(SimpleInputSentence sentence, AnalyzedSentence analyzedSentence)Method parameters in org.languagetool with type arguments of type AnalyzedSentence Modifier and Type Method Description private java.util.List<java.util.concurrent.Callable<java.util.List<RuleMatch>>>MultiThreadedJLanguageTool. createTextCheckCallables(JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, java.util.List<AnalyzedSentence> analyzedSentences, java.util.List<java.lang.String> sentences, java.util.List<Rule> allRules, int charCount, int lineCount, int columnCount, RuleMatchListener listener, JLanguageTool.Mode mode)protected java.util.List<RuleMatch>JLanguageTool. performCheck(java.util.List<AnalyzedSentence> analyzedSentences, java.util.List<java.lang.String> sentences, java.util.List<Rule> allRules, JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, JLanguageTool.Mode mode)protected java.util.List<RuleMatch>JLanguageTool. performCheck(java.util.List<AnalyzedSentence> analyzedSentences, java.util.List<java.lang.String> sentences, java.util.List<Rule> allRules, JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, RuleMatchListener listener, JLanguageTool.Mode mode)protected java.util.List<RuleMatch>MultiThreadedJLanguageTool. performCheck(java.util.List<AnalyzedSentence> analyzedSentences, java.util.List<java.lang.String> sentences, java.util.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 AnalyzedSentenceNoopDisambiguator. disambiguate(AnalyzedSentence input)Methods in org.languagetool.noop with parameters of type AnalyzedSentence Modifier and Type Method Description AnalyzedSentenceNoopDisambiguator. disambiguate(AnalyzedSentence input) -
Uses of AnalyzedSentence in org.languagetool.rules
Fields in org.languagetool.rules declared as AnalyzedSentence Modifier and Type Field Description private AnalyzedSentenceRuleMatch. sentenceprivate AnalyzedSentenceSymbolLocator. sentenceMethods in org.languagetool.rules that return AnalyzedSentence Modifier and Type Method Description AnalyzedSentenceRuleMatch. getSentence()(package private) AnalyzedSentenceSymbolLocator. 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 AnalyzedSentence Modifier and Type Method Description private java.lang.StringOpenNMTRule. createJson(AnalyzedSentence sentence)private @Nullable RuleMatchGenericUnpairedBracketsRule. createMatch(java.util.List<RuleMatch> ruleMatches, UnsyncStack<SymbolLocator> ruleMatchStack, int startPos, java.lang.String symbol, AnalyzedSentence sentence, java.util.List<AnalyzedSentence> sentences)protected RuleMatchAbstractSimpleReplaceRule. createRuleMatch(AnalyzedTokenReadings tokenReadings, java.util.List<java.lang.String> replacements, AnalyzedSentence sentence)protected RuleMatchWordRepeatRule. createRuleMatch(java.lang.String prevToken, java.lang.String token, int prevPos, int pos, java.lang.String msg, AnalyzedSentence sentence)protected booleanAbstractUnitConversionRule. detectNumberRange(AnalyzedSentence sentence, java.util.regex.Matcher matcher)private booleanGenericUnpairedBracketsRule. fillSymbolStack(int startPosBase, AnalyzedTokenReadings[] tokens, int i, int j, UnsyncStack<SymbolLocator> symbolStack, AnalyzedSentence sentence)protected java.util.List<RuleMatch>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.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)private voidAbstractUnitConversionRule. matchUnits(AnalyzedSentence sentence, java.util.List<RuleMatch> matches, java.util.List<java.util.Map.Entry<java.lang.Integer,java.lang.Integer>> ignoreRanges, boolean isMetric)private voidAbstractUnitConversionRule. tryConversion(AnalyzedSentence sentence, java.util.List<RuleMatch> matches, java.util.regex.Pattern unitPattern, java.lang.Double customValue, javax.measure.Unit customUnit, java.util.regex.Matcher unitMatcher, java.util.List<java.util.Map.Entry<java.lang.Integer,java.lang.Integer>> ignoreRanges)Method parameters in org.languagetool.rules with type arguments of type AnalyzedSentence Modifier and Type Method Description RuleMatch[]AbstractFillerWordsRule. match(java.util.List<AnalyzedSentence> sentences)RuleMatch[]AbstractStyleRepeatedWordRule. match(java.util.List<AnalyzedSentence> sentences)RuleMatch[]AbstractWordCoherencyRule. match(java.util.List<AnalyzedSentence> sentences)RuleMatch[]EmptyLineRule. match(java.util.List<AnalyzedSentence> sentences)RuleMatch[]GenericUnpairedBracketsRule. match(java.util.List<AnalyzedSentence> sentences)RuleMatch[]LongParagraphRule. match(java.util.List<AnalyzedSentence> sentences)RuleMatch[]MultipleWhitespaceRule. match(java.util.List<AnalyzedSentence> sentences)RuleMatch[]ParagraphRepeatBeginningRule. match(java.util.List<AnalyzedSentence> sentences)RuleMatch[]PunctuationMarkAtParagraphEnd. match(java.util.List<AnalyzedSentence> sentences)RuleMatch[]ReadabilityRule. match(java.util.List<AnalyzedSentence> sentences)RuleMatch[]SentenceWhitespaceRule. match(java.util.List<AnalyzedSentence> sentences)abstract RuleMatch[]TextLevelRule. match(java.util.List<AnalyzedSentence> sentences)Deprecated.useTextLevelRule.match(List, AnnotatedText)insteadRuleMatch[]TextLevelRule. match(java.util.List<AnalyzedSentence> sentences, AnnotatedText annotatedText)RuleMatch[]UppercaseSentenceStartRule. match(java.util.List<AnalyzedSentence> sentences)RuleMatch[]WhiteSpaceBeforeParagraphEnd. match(java.util.List<AnalyzedSentence> sentences)RuleMatch[]WordRepeatBeginningRule. match(java.util.List<AnalyzedSentence> sentences)Constructors in org.languagetool.rules with parameters of type AnalyzedSentence Constructor Description RuleMatch(Rule rule, AnalyzedSentence sentence, int fromPos, int toPos, java.lang.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, java.lang.String message, java.lang.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, java.lang.String message, java.lang.String shortMessage, boolean startWithUppercase, java.lang.String suggestionsOutMsg)Creates a RuleMatch object, taking the rule that triggered this match, position of the match and an explanation message.SymbolLocator(java.lang.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 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 private @NotNull RuleMatchNeuralNetworkRule. createRuleMatch(AnalyzedTokenReadings token, Suggestion suggestion, float[] y, AnalyzedSentence sentence)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 booleanNgramProbabilityRule. acceptMatch(RuleMatch match, Probability p, AnalyzedSentence sentence)Overwrite this method to discard matches by returningfalse.private static java.util.Set<AnalyzedToken>GoogleToken. findOriginalAnalyzedTokens(AnalyzedSentence sentence, int startPos, int endPos)static doubleLanguageModelUtils. get3gramProbabilityFor(Language lang, LanguageModel lm, int position, AnalyzedSentence sentence, java.lang.String candidate)static doubleLanguageModelUtils. get4gramProbabilityFor(Language lang, LanguageModel lm, int position, AnalyzedSentence sentence, java.lang.String candidate)private NgramProbabilityRule.AlternativesNgramProbabilityRule. getBetterAlternatives(GoogleToken prevToken, java.lang.String token, GoogleToken next, GoogleToken googleToken, Probability p, AnalyzedSentence sentence)(package private) static java.util.List<GoogleToken>GoogleToken. getGoogleTokens(AnalyzedSentence sentence, boolean addStartToken, Tokenizer wordTokenizer)private booleanConfusionProbabilityRule. isLocalException(AnalyzedSentence sentence, GoogleToken googleToken)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 booleanPatternRule. canBeIgnoredFor(AnalyzedSentence sentence)A fast check whether this rule can be ignored for the given sentence because it can never match.private @Nullable RuleMatchPatternRuleMatcher. createRuleMatch(java.util.List<java.lang.Integer> tokenPositions, AnalyzedTokenReadings[] tokens, int firstMatchToken, int lastMatchToken, int firstMarkerMatchToken, int lastMarkerMatchToken, AnalyzedSentence sentence)RuleMatch[]AbstractPatternRule. match(AnalyzedSentence sentence)RuleMatch[]PatternRule. match(AnalyzedSentence sentence)RuleMatch[]PatternRuleMatcher. match(AnalyzedSentence sentence)RuleMatch[]RegexPatternRule. match(AnalyzedSentence sentenceObj)RuleMatch[]RuleFilter.FakeRule. match(AnalyzedSentence sentence)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 RuleMatchSpellingCheckRule. createWrongSplitMatch(AnalyzedSentence sentence, java.util.List<RuleMatch> ruleMatchesSoFar, int pos, java.lang.String coveredWord, java.lang.String suggestion1, java.lang.String suggestion2, int prevPos)protected java.util.List<java.lang.String>SpellingCheckRule. filterSuggestions(java.util.List<java.lang.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 java.lang.StringHunspellRule. getSentenceTextWithoutUrlsAndImmunizedTokens(AnalyzedSentence sentence)protected booleanHunspellRule. isQuotedCompound(AnalyzedSentence analyzedSentence, int idx, java.lang.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 java.util.List<RuleMatch>MorfologikSpellerRule. getRuleMatches(java.lang.String word, int startPos, AnalyzedSentence sentence, java.util.List<RuleMatch> ruleMatchesSoFar, int idx, AnalyzedTokenReadings[] tokens)RuleMatch[]MorfologikSpellerRule. match(AnalyzedSentence sentence)private java.util.List<java.lang.String>MorfologikSpellerRule. orderSuggestions(java.util.List<java.lang.String> suggestions, java.lang.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 AnalyzedSentence Modifier and Type Method Description java.util.List<SuggestedReplacement>SuggestionsOrdererGSoC. orderSuggestions(java.util.List<java.lang.String> suggestions, java.lang.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<java.util.List<SuggestedReplacement>,java.util.SortedMap<java.lang.String,java.lang.Float>>SuggestionsOrdererFeatureExtractor. computeFeatures(java.util.List<java.lang.String> suggestions, java.lang.String word, AnalyzedSentence sentence, int startPos)compute features for training or prediction of a ranking model for suggestionsjava.util.List<SuggestedReplacement>SuggestionsOrderer. orderSuggestions(java.util.List<java.lang.String> suggestions, java.lang.String word, AnalyzedSentence sentence, int startPos)java.util.List<SuggestedReplacement>SuggestionsOrdererFeatureExtractor. orderSuggestions(java.util.List<java.lang.String> suggestions, java.lang.String word, AnalyzedSentence sentence, int startPos)java.util.List<SuggestedReplacement>XGBoostSuggestionsOrderer. orderSuggestions(java.util.List<java.lang.String> suggestions, java.lang.String word, AnalyzedSentence sentence, int startPos)default java.util.List<java.lang.String>SuggestionsOrderer. orderSuggestionsUsingModel(java.util.List<java.lang.String> suggestions, java.lang.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 AnalyzedSentenceDisambiguator. disambiguate(AnalyzedSentence input)If possible, filters out the wrong POS tags.AnalyzedSentenceMultiWordChunker. disambiguate(AnalyzedSentence input)Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.AnalyzedSentenceMultiWordChunker2. disambiguate(AnalyzedSentence input)Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.AnalyzedSentenceAbstractDisambiguator. preDisambiguate(AnalyzedSentence input)AnalyzedSentenceDisambiguator. 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 AnalyzedSentenceDisambiguator. disambiguate(AnalyzedSentence input)If possible, filters out the wrong POS tags.AnalyzedSentenceMultiWordChunker. disambiguate(AnalyzedSentence input)Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.AnalyzedSentenceMultiWordChunker2. disambiguate(AnalyzedSentence input)Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.AnalyzedSentenceAbstractDisambiguator. preDisambiguate(AnalyzedSentence input)AnalyzedSentenceDisambiguator. 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 AnalyzedSentenceXmlRuleDisambiguator. disambiguate(AnalyzedSentence input)AnalyzedSentenceDisambiguationPatternRule. replace(AnalyzedSentence sentence)Performs disambiguation on the source sentence.AnalyzedSentenceDisambiguationPatternRuleReplacer. replace(AnalyzedSentence sentence)Methods in org.languagetool.tagging.disambiguation.rules with parameters of type AnalyzedSentence Modifier and Type Method Description AnalyzedSentenceXmlRuleDisambiguator. disambiguate(AnalyzedSentence input)private AnalyzedTokenReadings[]DisambiguationPatternRuleReplacer. executeAction(AnalyzedSentence sentence, AnalyzedTokenReadings[] whiteTokens, AnalyzedTokenReadings[] unifiedTokens, int firstMatchToken, int lastMatchToken, int matchingTokens, int[] tokenPositions)private booleanDisambiguationPatternRuleReplacer. keepByDisambig(AnalyzedSentence sentence, int ruleMatchFromPos, int ruleMatchToPos)AnalyzedSentenceDisambiguationPatternRule. replace(AnalyzedSentence sentence)Performs disambiguation on the source sentence.AnalyzedSentenceDisambiguationPatternRuleReplacer. replace(AnalyzedSentence 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 AnalyzedSentenceDemoDisambiguator. disambiguate(AnalyzedSentence input)Methods in org.languagetool.tagging.disambiguation.xx with parameters of type AnalyzedSentence Modifier and Type Method Description AnalyzedSentenceDemoDisambiguator. disambiguate(AnalyzedSentence input)
-