Uses of Class
org.languagetool.AnalyzedTokenReadings
-
-
Uses of AnalyzedTokenReadings in org.languagetool
Methods in org.languagetool that return AnalyzedTokenReadings Modifier and Type Method Description AnalyzedTokenReadings[]
AnalyzedSentence. getPreDisambigTokens()
AnalyzedTokenReadings[]
AnalyzedSentence. getPreDisambigTokensWithoutWhitespace()
AnalyzedTokenReadings[]
AnalyzedSentence. getTokens()
Returns theAnalyzedTokenReadings
of the analyzed text.AnalyzedTokenReadings[]
AnalyzedSentence. getTokensWithoutWhitespace()
Returns theAnalyzedTokenReadings
of the analyzed text, with whitespace tokens removed but with the artificialSENT_START
token included.Constructors in org.languagetool with parameters of type AnalyzedTokenReadings Constructor Description AnalyzedSentence(AnalyzedTokenReadings[] tokens)
Creates an AnalyzedSentence from the givenAnalyzedTokenReadings
.AnalyzedSentence(AnalyzedTokenReadings[] tokens, AnalyzedTokenReadings[] preDisambigTokens)
AnalyzedTokenReadings(AnalyzedTokenReadings oldAtr, List<AnalyzedToken> newReadings, String ruleApplied)
-
Uses of AnalyzedTokenReadings in org.languagetool.chunking
Method parameters in org.languagetool.chunking with type arguments of type AnalyzedTokenReadings Modifier and Type Method Description void
Chunker. addChunkTags(List<AnalyzedTokenReadings> sentenceTokenReadings)
-
Uses of AnalyzedTokenReadings in org.languagetool.noop
Method parameters in org.languagetool.noop with type arguments of type AnalyzedTokenReadings Modifier and Type Method Description void
NoopChunker. addChunkTags(List<AnalyzedTokenReadings> tokenReadings)
-
Uses of AnalyzedTokenReadings in org.languagetool.rules
Methods in org.languagetool.rules that return types with arguments of type AnalyzedTokenReadings Modifier and Type Method Description protected abstract @Nullable List<AnalyzedTokenReadings>
PartialPosTagFilter. tag(String token)
Methods in org.languagetool.rules with parameters of type AnalyzedTokenReadings Modifier and Type Method Description RuleMatch
AbstractDateCheckFilter. acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
RuleMatch
AbstractFutureDateFilter. acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
RuleMatch
AbstractNewYearDateFilter. acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
@Nullable RuleMatch
DateRangeChecker. acceptRuleMatch(RuleMatch match, Map<String,String> arguments, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
RuleMatch
PartialPosTagFilter. acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
@Nullable RuleMatch
ShortenedYearRangeChecker. acceptRuleMatch(RuleMatch match, Map<String,String> arguments, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
RuleMatch
WhitespaceCheckFilter. acceptRuleMatch(RuleMatch match, Map<String,String> arguments, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
protected RuleMatch
AbstractSimpleReplaceRule. createRuleMatch(AnalyzedTokenReadings tokenReadings, List<String> replacements, AnalyzedSentence sentence)
protected List<RuleMatch>
AbstractSimpleReplaceRule. findMatches(AnalyzedTokenReadings tokenReadings, AnalyzedSentence sentence)
List<String>
AbstractStyleRepeatedWordRule. getSynonyms(AnalyzedTokenReadings token)
get synonyms for a repeated wordboolean
WordRepeatRule. ignore(AnalyzedTokenReadings[] tokens, int position)
Implement this method to returntrue
if there's a potential word repetition at the current position that should be ignored, i.e.protected boolean
WordRepeatBeginningRule. isAdverb(AnalyzedTokenReadings token)
boolean
ParagraphRepeatBeginningRule. isArticle(AnalyzedTokenReadings token)
protected boolean
AbstractFillerWordsRule. isException(AnalyzedTokenReadings[] tokens, int num)
protected boolean
GenericUnpairedBracketsRule. isNoException(String token, AnalyzedTokenReadings[] tokens, int i, int j, boolean precSpace, boolean follSpace, UnsyncStack<SymbolLocator> symbolStack)
Generic method to specify an exception.protected boolean
AbstractSimpleReplaceRule. isTagged(AnalyzedTokenReadings tokenReadings)
This method allows to override which tags will mark token as taggedprotected abstract boolean
AbstractStyleRepeatedWordRule. isTokenPair(AnalyzedTokenReadings[] tokens, int n, boolean before)
protected abstract boolean
AbstractStyleRepeatedWordRule. isTokenToCheck(AnalyzedTokenReadings token)
protected URL
AbstractStyleRepeatedWordRule. setURL(AnalyzedTokenReadings token)
-
Uses of AnalyzedTokenReadings in org.languagetool.rules.patterns
Fields in org.languagetool.rules.patterns declared as AnalyzedTokenReadings Modifier and Type Field Description protected AnalyzedTokenReadings[]
AbstractPatternRulePerformer. unifiedTokens
Methods in org.languagetool.rules.patterns that return AnalyzedTokenReadings Modifier and Type Method Description AnalyzedTokenReadings
MatchState. filterReadings()
@Nullable AnalyzedTokenReadings[]
Unifier. getFinalUnified()
Used for getting a unified sequence in case when simple test methodUnifier.isUnified(AnalyzedToken, Map, boolean)
} was used.@Nullable AnalyzedTokenReadings[]
Unifier. getUnifiedTokens()
Gets a full sequence of filtered tokens.Methods in org.languagetool.rules.patterns with parameters of type AnalyzedTokenReadings Modifier and Type Method Description abstract @Nullable RuleMatch
RuleFilter. acceptRuleMatch(RuleMatch match, Map<String,String> arguments, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
Returns the original rule match or a modified one, ornull
if the rule match is filtered out.void
Unifier. addNeutralElement(AnalyzedTokenReadings analyzedTokenReadings)
Used to add neutral elements (AnalyzedTokenReadings
to the unified sequence.PatternToken
PatternToken. compile(AnalyzedTokenReadings token, Synthesizer synth)
Prepare PatternToken for matching by formatting its string token and POS (if the Element is supposed to refer to some other token).MatchState
Match. createState(Synthesizer synthesizer, AnalyzedTokenReadings token)
Creates a state used for actually matching a token.MatchState
Match. createState(Synthesizer synthesizer, AnalyzedTokenReadings[] tokens, int index, int next)
Creates a state used for actually matching a token.Map<String,String>
RuleFilterEvaluator. getResolvedArguments(String filterArgs, AnalyzedTokenReadings[] patternTokens, int patternTokenPos, List<Integer> tokenPositions)
Resolves the backref arguments, e.g.boolean
PatternToken. isMatchedByPreviousException(AnalyzedTokenReadings prevToken)
Checks whether an exception for a previous token matches all readings of a given token (in case the exception had scope == "previous").boolean
PatternTokenMatcher. isMatchedByPreviousException(AnalyzedTokenReadings token)
boolean
RuleFilter. matches(Map<String,String> arguments, AnalyzedTokenReadings[] patternTokens, int firstMatchToken)
void
PatternTokenMatcher. resolveReference(int firstMatchToken, AnalyzedTokenReadings[] tokens, Language language)
@Nullable RuleMatch
RuleFilterEvaluator. runFilter(String filterArgs, RuleMatch ruleMatch, AnalyzedTokenReadings[] patternTokens, int patternTokenPos, List<Integer> tokenPositions)
void
MatchState. setToken(AnalyzedTokenReadings token)
void
MatchState. setToken(AnalyzedTokenReadings[] tokens, int index, int next)
Sets the token to be formatted etc.protected int
AbstractPatternRulePerformer. skipMaxTokens(AnalyzedTokenReadings[] tokens, PatternTokenMatcher elem, int firstMatchToken, int prevSkipNext, PatternTokenMatcher prevElement, int m, int remainingElems)
protected boolean
AbstractPatternRulePerformer. testAllReadings(AnalyzedTokenReadings[] tokens, PatternTokenMatcher matcher, PatternTokenMatcher prevElement, int tokenNo, int firstMatchToken, int prevSkipNext)
-
Uses of AnalyzedTokenReadings in org.languagetool.rules.spelling
Methods in org.languagetool.rules.spelling with parameters of type AnalyzedTokenReadings Modifier and Type Method Description protected boolean
SpellingCheckRule. ignoreToken(AnalyzedTokenReadings[] tokens, int idx)
Returns true iff the token at the given position should be ignored by the spell checker. -
Uses of AnalyzedTokenReadings in org.languagetool.rules.spelling.morfologik
Methods in org.languagetool.rules.spelling.morfologik with parameters of type AnalyzedTokenReadings Modifier and Type Method Description protected List<RuleMatch>
MorfologikSpellerRule. getRuleMatches(String word, int startPos, AnalyzedSentence sentence, List<RuleMatch> ruleMatchesSoFar, int idx, AnalyzedTokenReadings[] tokens)
-
Uses of AnalyzedTokenReadings in org.languagetool.tagging
Methods in org.languagetool.tagging that return AnalyzedTokenReadings Modifier and Type Method Description AnalyzedTokenReadings
BaseTagger. createNullToken(String token, int startPos)
AnalyzedTokenReadings
Tagger. createNullToken(String token, int startPos)
Create the AnalyzedToken used for whitespace and other non-words.Methods in org.languagetool.tagging that return types with arguments of type AnalyzedTokenReadings Modifier and Type Method Description List<AnalyzedTokenReadings>
BaseTagger. tag(List<String> sentenceTokens)
List<AnalyzedTokenReadings>
Tagger. tag(List<String> sentenceTokens)
Returns a list ofAnalyzedToken
s that assigns each term in the sentence some kind of part-of-speech information (not necessarily just one tag). -
Uses of AnalyzedTokenReadings in org.languagetool.tagging.disambiguation
Methods in org.languagetool.tagging.disambiguation that return AnalyzedTokenReadings Modifier and Type Method Description protected AnalyzedTokenReadings
MultiWordChunker2. prepareNewReading(String tokens, String tok, AnalyzedTokenReadings token, String tag)
Methods in org.languagetool.tagging.disambiguation with parameters of type AnalyzedTokenReadings Modifier and Type Method Description protected boolean
MultiWordChunker2. matches(String matchText, AnalyzedTokenReadings inputTokens)
protected AnalyzedTokenReadings
MultiWordChunker2. prepareNewReading(String tokens, String tok, AnalyzedTokenReadings token, String tag)
-
Uses of AnalyzedTokenReadings in org.languagetool.tagging.xx
Methods in org.languagetool.tagging.xx that return AnalyzedTokenReadings Modifier and Type Method Description AnalyzedTokenReadings
DemoTagger. createNullToken(String token, int startPos)
Methods in org.languagetool.tagging.xx that return types with arguments of type AnalyzedTokenReadings Modifier and Type Method Description List<AnalyzedTokenReadings>
DemoTagger. tag(List<String> sentenceTokens)
-