Uses of Class
org.languagetool.AnalyzedToken
-
-
Uses of AnalyzedToken in org.languagetool
Methods in org.languagetool that return AnalyzedToken Modifier and Type Method Description AnalyzedToken
AnalyzedTokenReadings. getAnalyzedToken(int idx)
Get a token reading.Methods in org.languagetool that return types with arguments of type AnalyzedToken Modifier and Type Method Description List<AnalyzedToken>
AnalyzedTokenReadings. getReadings()
Iterator<AnalyzedToken>
AnalyzedTokenReadings. iterator()
Methods in org.languagetool with parameters of type AnalyzedToken Modifier and Type Method Description void
AnalyzedTokenReadings. addReading(AnalyzedToken token, String ruleApplied)
Add a new reading.void
AnalyzedTokenReadings. leaveReading(AnalyzedToken token)
Removes all readings but the one that matches the token given.boolean
AnalyzedToken. matches(AnalyzedToken an)
void
AnalyzedTokenReadings. removeReading(AnalyzedToken token, String ruleApplied)
Removes a reading from the list of readings.Constructors in org.languagetool with parameters of type AnalyzedToken Constructor Description AnalyzedTokenReadings(AnalyzedToken[] tokens, int startPos)
AnalyzedTokenReadings(AnalyzedToken token, int startPos)
Constructor parameters in org.languagetool with type arguments of type AnalyzedToken Constructor Description AnalyzedTokenReadings(List<AnalyzedToken> tokens, int startPos)
AnalyzedTokenReadings(AnalyzedTokenReadings oldAtr, List<AnalyzedToken> newReadings, String ruleApplied)
-
Uses of AnalyzedToken in org.languagetool.rules.patterns
Methods in org.languagetool.rules.patterns with parameters of type AnalyzedToken Modifier and Type Method Description void
PatternTokenMatcher. addMemberAndGroup(AnalyzedToken token)
Enables testing multiple conditions specified by different elements.boolean
PatternToken. isAndExceptionGroupMatched(AnalyzedToken token)
Enables testing multiple conditions specified by multiple element exceptions.boolean
PatternToken. isExceptionMatched(AnalyzedToken token)
Checks whether an exception matches.boolean
PatternToken. isExceptionMatchedCompletely(AnalyzedToken token)
This method checks exceptions both in AND-group and the token.boolean
PatternTokenMatcher. isExceptionMatchedCompletely(AnalyzedToken token)
boolean
PatternToken. isMatched(AnalyzedToken token)
Checks whether the rule element matches the token given as a parameter.boolean
PatternTokenMatcher. isMatched(AnalyzedToken token)
Checks whether the rule element matches the token given as a parameter.boolean
PatternToken. isMatchedByPreviousException(AnalyzedToken token)
Checks whether an exception for a previous token matches (in case the exception had scope == "previous").boolean
PatternToken. isMatchedByScopeNextException(AnalyzedToken token)
Checks whether a previously set exception matches (in case the exception had scope == "next").boolean
PatternTokenMatcher. isMatchedByScopeNextException(AnalyzedToken token)
protected boolean
Unifier. isSatisfied(AnalyzedToken aToken, Map<String,List<String>> uFeatures)
Tests if a token has shared features with other tokens.boolean
Unifier. isUnified(AnalyzedToken matchToken, Map<String,List<String>> uFeatures, boolean lastReading)
boolean
Unifier. isUnified(AnalyzedToken matchToken, Map<String,List<String>> uFeatures, boolean lastReading, boolean isMatched)
Tests if the token sequence is unified.boolean
PatternToken. isWhitespaceBefore(AnalyzedToken token)
protected boolean
AbstractPatternRulePerformer. testUnificationAndGroups(boolean matched, boolean lastReading, AnalyzedToken matchToken, PatternTokenMatcher elemMatcher, boolean alreadyTested)
-
Uses of AnalyzedToken in org.languagetool.synthesis
Methods in org.languagetool.synthesis with parameters of type AnalyzedToken Modifier and Type Method Description String[]
BaseSynthesizer. synthesize(AnalyzedToken token, String posTag)
Get a form of a given AnalyzedToken, where the form is defined by a part-of-speech tag.String[]
BaseSynthesizer. synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp)
String[]
Synthesizer. synthesize(AnalyzedToken token, String posTag)
Generates a form of the word with a given POS tag for a given lemma.String[]
Synthesizer. synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp)
Generates a form of the word with a given POS tag for a given lemma. -
Uses of AnalyzedToken in org.languagetool.tagging
Methods in org.languagetool.tagging that return AnalyzedToken Modifier and Type Method Description protected AnalyzedToken
BaseTagger. asAnalyzedToken(String word, morfologik.stemming.WordData wd)
AnalyzedToken
BaseTagger. createToken(String token, String posTag)
AnalyzedToken
Tagger. createToken(String token, String posTag)
Create a token specific to the language of the implementing class.Methods in org.languagetool.tagging that return types with arguments of type AnalyzedToken Modifier and Type Method Description protected @Nullable List<AnalyzedToken>
BaseTagger. additionalTags(String word, WordTagger wordTagger)
Allows additional tagging in some language-dependent circumstancesprotected List<AnalyzedToken>
BaseTagger. asAnalyzedTokenList(String word, List<morfologik.stemming.WordData> wdList)
protected List<AnalyzedToken>
BaseTagger. asAnalyzedTokenListForTaggedWords(String word, List<TaggedWord> taggedWords)
protected List<AnalyzedToken>
BaseTagger. getAnalyzedTokens(String word)
-
Uses of AnalyzedToken in org.languagetool.tagging.disambiguation.rules
Methods in org.languagetool.tagging.disambiguation.rules that return AnalyzedToken Modifier and Type Method Description AnalyzedToken[]
DisambiguationPatternRule. getNewTokenReadings()
Methods in org.languagetool.tagging.disambiguation.rules with parameters of type AnalyzedToken Modifier and Type Method Description void
DisambiguationPatternRule. setNewInterpretations(AnalyzedToken[] newReadings)
Used to add new interpretations. -
Uses of AnalyzedToken in org.languagetool.tagging.xx
Methods in org.languagetool.tagging.xx that return AnalyzedToken Modifier and Type Method Description AnalyzedToken
DemoTagger. createToken(String token, String posTag)
-