Modifier and Type | Method and Description |
---|---|
AnalyzedToken |
AnalyzedTokenReadings.getAnalyzedToken(int idx)
Get a token reading.
|
AnalyzedToken |
AnalyzedTokenReadings.readingWithLemma(String lemma)
Returns the first reading that matches a given lemma.
|
AnalyzedToken |
AnalyzedTokenReadings.readingWithTagRegex(String posTagRegex)
Returns the first reading that matches a given POS tag regex.
|
Modifier and Type | Method and Description |
---|---|
List<AnalyzedToken> |
AnalyzedTokenReadings.getReadings() |
Iterator<AnalyzedToken> |
AnalyzedTokenReadings.iterator() |
Modifier and Type | Method and 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.
|
Constructor and Description |
---|
AnalyzedTokenReadings(AnalyzedToken token) |
AnalyzedTokenReadings(AnalyzedToken[] tokens,
int startPos) |
AnalyzedTokenReadings(AnalyzedToken token,
int startPos) |
Constructor and Description |
---|
AnalyzedTokenReadings(AnalyzedTokenReadings oldAtr,
List<AnalyzedToken> newReadings,
String ruleApplied) |
AnalyzedTokenReadings(List<AnalyzedToken> tokens,
int startPos) |
Modifier and Type | Method and Description |
---|---|
static AnalyzedToken |
GRPCUtils.fromGRPC(MLServerProto.AnalyzedToken token) |
Modifier and Type | Method and Description |
---|---|
static MLServerProto.AnalyzedToken |
GRPCUtils.toGRPC(AnalyzedToken token) |
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
static List<InflectionHelper.Inflection> |
InflectionHelper.getAdjInflections(List<AnalyzedToken> adjTokenReadings) |
static List<InflectionHelper.Inflection> |
InflectionHelper.getAdjInflections(List<AnalyzedToken> adjTokenReadings,
String postagStart) |
static List<InflectionHelper.Inflection> |
InflectionHelper.getNounInflections(List<AnalyzedToken> nounTokenReadings,
Pattern ignoreTag) |
static List<InflectionHelper.Inflection> |
InflectionHelper.getNumrInflections(List<AnalyzedToken> adjTokenReadings) |
static boolean |
LemmaHelper.hasLemma(List<AnalyzedToken> readings,
Collection<String> lemmas) |
static boolean |
LemmaHelper.hasLemma(List<AnalyzedToken> readings,
Pattern lemmaRegex) |
static boolean |
TokenAgreementNounVerbExceptionHelper.isException(AnalyzedTokenReadings[] tokens,
int nounPos,
int verbPos,
List<org.languagetool.rules.uk.VerbInflectionHelper.Inflection> nounInflections,
List<org.languagetool.rules.uk.VerbInflectionHelper.Inflection> verbInflections,
List<AnalyzedToken> nounTokenReadings,
List<AnalyzedToken> verbTokenReadings) |
static boolean |
TokenAgreementNounVerbExceptionHelper.isException(AnalyzedTokenReadings[] tokens,
int nounPos,
int verbPos,
List<org.languagetool.rules.uk.VerbInflectionHelper.Inflection> nounInflections,
List<org.languagetool.rules.uk.VerbInflectionHelper.Inflection> verbInflections,
List<AnalyzedToken> nounTokenReadings,
List<AnalyzedToken> verbTokenReadings) |
static boolean |
TokenAgreementVerbNounExceptionHelper.isException(AnalyzedTokenReadings[] tokens,
int verbPos,
int nounAdjPos,
org.languagetool.rules.uk.TokenAgreementVerbNounRule.State state,
List<org.languagetool.rules.uk.VerbInflectionHelper.Inflection> verbInflections,
List<org.languagetool.rules.uk.VerbInflectionHelper.Inflection> nounAdjInflections,
List<AnalyzedToken> verbTokenReadings,
List<AnalyzedToken> nounTokenReadings) |
static boolean |
TokenAgreementVerbNounExceptionHelper.isException(AnalyzedTokenReadings[] tokens,
int verbPos,
int nounAdjPos,
org.languagetool.rules.uk.TokenAgreementVerbNounRule.State state,
List<org.languagetool.rules.uk.VerbInflectionHelper.Inflection> verbInflections,
List<org.languagetool.rules.uk.VerbInflectionHelper.Inflection> nounAdjInflections,
List<AnalyzedToken> verbTokenReadings,
List<AnalyzedToken> nounTokenReadings) |
Modifier and Type | Method and Description |
---|---|
String[] |
GermanSynthesizer.synthesize(AnalyzedToken token,
String posTag) |
String[] |
Synthesizer.synthesize(AnalyzedToken token,
String posTag)
Generates a form of the word with a given POS tag for a given lemma.
|
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[] |
GermanSynthesizer.synthesize(AnalyzedToken token,
String posTag,
boolean posTagRegExp) |
String[] |
Synthesizer.synthesize(AnalyzedToken token,
String posTag,
boolean posTagRegExp)
Generates a form of the word with a given POS tag for a given lemma.
|
String[] |
BaseSynthesizer.synthesize(AnalyzedToken token,
String posTag,
boolean posTagRegExp) |
Modifier and Type | Method and Description |
---|---|
List<String> |
ArabicSynthesizer.inflectLemmaLike(String targetLemma,
AnalyzedToken sourcetoken) |
String |
ArabicSynthesizer.setEnclitic(AnalyzedToken token,
String suffix) |
List<String> |
ArabicSynthesizer.setEncliticMultiple(AnalyzedToken token,
String suffix) |
String |
ArabicSynthesizer.setJarProcletic(AnalyzedToken token,
String prefix) |
String |
ArabicSynthesizer.setProcletic(AnalyzedToken token,
String prefix) |
String[] |
ArabicSynthesizer.synthesize(AnalyzedToken token,
String posTag)
Get a form of a given AnalyzedToken, where the form is defined by a
part-of-speech tag.
|
String[] |
ArabicSynthesizer.synthesize(AnalyzedToken token,
String posTag,
boolean posTagRegExp) |
Modifier and Type | Method and Description |
---|---|
String[] |
CatalanSynthesizer.synthesize(AnalyzedToken token,
String posTag) |
String[] |
CatalanSynthesizer.synthesize(AnalyzedToken token,
String posTag,
boolean posTagRegExp) |
String[] |
CatalanSynthesizer.synthesize(AnalyzedToken token,
String posTag,
boolean posTagRegExp,
String langVariantCode) |
String[] |
CatalanSynthesizer.synthesize(AnalyzedToken token,
String posTag,
String langVariantCode) |
Modifier and Type | Method and Description |
---|---|
String[] |
EnglishSynthesizer.synthesize(AnalyzedToken token,
String posTag)
Get a form of a given AnalyzedToken, where the form is defined by a
part-of-speech tag.
|
String[] |
EnglishSynthesizer.synthesize(AnalyzedToken token,
String posTag,
boolean posTagRegExp)
Special English regexp based synthesizer that allows adding articles
when the regexp-based tag ends with a special signature
\\+INDT or \\+DT . |
Modifier and Type | Method and Description |
---|---|
String[] |
SpanishSynthesizer.synthesize(AnalyzedToken token,
String posTag) |
String[] |
SpanishSynthesizer.synthesize(AnalyzedToken token,
String posTag,
boolean posTagRegExp) |
Modifier and Type | Method and Description |
---|---|
String[] |
PolishSynthesizer.synthesize(AnalyzedToken token,
String posTag) |
String[] |
PolishSynthesizer.synthesize(AnalyzedToken token,
String pos,
boolean posTagRegExp) |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
protected List<AnalyzedToken> |
BaseTagger.additionalTags(String word,
WordTagger wordTagger)
Allows additional tagging in some language-dependent circumstances
|
protected 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) |
Modifier and Type | Method and Description |
---|---|
protected List<AnalyzedToken> |
ArabicTagger.additionalTags(String word,
morfologik.stemming.IStemmer stemmer) |
Modifier and Type | Method and Description |
---|---|
String |
ArabicTagger.getEnclitic(AnalyzedToken token) |
String |
ArabicTagger.getJarProclitic(AnalyzedToken token) |
String |
ArabicTagger.getProclitic(AnalyzedToken token) |
Modifier and Type | Method and Description |
---|---|
protected List<AnalyzedToken> |
CatalanTagger.additionalTags(String word,
morfologik.stemming.IStemmer stemmer) |
Constructor and Description |
---|
AnalyzedGermanToken(AnalyzedToken token) |
Modifier and Type | Method and Description |
---|---|
AnalyzedToken[] |
DisambiguationPatternRule.getNewTokenReadings() |
Modifier and Type | Method and Description |
---|---|
void |
DisambiguationPatternRule.setNewInterpretations(AnalyzedToken[] newReadings)
Used to add new interpretations.
|
Modifier and Type | Method and Description |
---|---|
protected List<AnalyzedToken> |
GreekTagger.additionalTags(String word,
WordTagger wordTagger) |
Modifier and Type | Method and Description |
---|---|
AnalyzedToken |
EsperantoTagger.createToken(String token,
String posTag) |
Modifier and Type | Method and Description |
---|---|
protected List<AnalyzedToken> |
SpanishTagger.additionalTags(String word,
morfologik.stemming.IStemmer stemmer) |
Modifier and Type | Method and Description |
---|---|
protected List<AnalyzedToken> |
FrenchTagger.additionalTags(String word) |
Modifier and Type | Method and Description |
---|---|
protected List<AnalyzedToken> |
GalicianTagger.additionalTags(String word,
morfologik.stemming.IStemmer stemmer) |
Modifier and Type | Method and Description |
---|---|
AnalyzedToken |
JapaneseTagger.createToken(String token,
String posTag) |
Modifier and Type | Method and Description |
---|---|
protected List<AnalyzedToken> |
PortugueseTagger.additionalTags(String word,
morfologik.stemming.IStemmer stemmer) |
Modifier and Type | Method and Description |
---|---|
List<AnalyzedToken> |
UkrainianTagger.additionalTags(String word,
WordTagger wordTagger) |
protected List<AnalyzedToken> |
UkrainianTagger.analyzeAllCapitamizedAdj(String word) |
static List<AnalyzedToken> |
PosTagHelper.filter(List<AnalyzedToken> analyzedTokens,
Pattern posTag) |
static List<AnalyzedToken> |
PosTagHelper.generateTokensForNv(String word,
String genders,
String extraTags) |
protected List<AnalyzedToken> |
UkrainianTagger.getAnalyzedTokens(String word) |
Modifier and Type | Method and Description |
---|---|
static boolean |
PosTagHelper.hasPosTag(AnalyzedToken analyzedToken,
Pattern posTagRegex) |
static boolean |
PosTagHelper.hasPosTag(AnalyzedToken analyzedToken,
String posTagRegex) |
static boolean |
PosTagHelper.hasPosTagPart(AnalyzedToken analyzedToken,
String posTagPart) |
static boolean |
PosTagHelper.hasPosTagStart(AnalyzedToken analyzedToken,
String posTagPart) |
static boolean |
PosTagHelper.isPredictOrInsert(AnalyzedToken token) |
Modifier and Type | Method and Description |
---|---|
static List<AnalyzedToken> |
PosTagHelper.filter(List<AnalyzedToken> analyzedTokens,
Pattern posTag) |
static boolean |
PosTagHelper.hasPosTag(Collection<AnalyzedToken> analyzedTokenReadings,
Pattern posTagRegex) |
static boolean |
PosTagHelper.hasPosTag(Collection<AnalyzedToken> analyzedTokenReadings,
String posTagRegex) |
static boolean |
PosTagHelper.hasPosTagAll(List<AnalyzedToken> analyzedTokenReadings,
Pattern posTag) |
static boolean |
PosTagHelper.hasPosTagPart(List<AnalyzedToken> analyzedTokenReadings,
String posTagPart) |
static boolean |
PosTagHelper.hasPosTagPartAll(List<AnalyzedToken> analyzedTokenReadings,
String posTagPart) |
static boolean |
PosTagHelper.hasPosTagStart(List<AnalyzedToken> analyzedTokenReadings,
String posTagPart) |
Modifier and Type | Method and Description |
---|---|
AnalyzedToken |
DemoTagger.createToken(String token,
String posTag) |
Modifier and Type | Method and Description |
---|---|
AnalyzedToken |
ChineseTagger.createToken(String token,
String posTag) |