| 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(Pattern pattern) |
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 |
PatternTokenMatcher.isExceptionMatchedCompletely(AnalyzedToken token) |
boolean |
PatternToken.isExceptionMatchedCompletely(AnalyzedToken token)
This method checks exceptions both in AND-group and the token.
|
boolean |
PatternTokenMatcher.isMatched(AnalyzedToken token)
Checks whether the rule element matches the token given as a parameter.
|
boolean |
PatternToken.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 |
PatternTokenMatcher.isMatchedByScopeNextException(AnalyzedToken token) |
boolean |
PatternToken.isMatchedByScopeNextException(AnalyzedToken token)
Checks whether a previously set exception matches (in case the exception had scope == "next").
|
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 |
|---|---|
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[] |
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 |
|---|---|
protected AnalyzedToken |
BaseTagger.asAnalyzedToken(String word,
morfologik.stemming.WordData wd) |
AnalyzedToken |
Tagger.createToken(String token,
String posTag)
Create a token specific to the language of the implementing class.
|
AnalyzedToken |
BaseTagger.createToken(String token,
String posTag) |
| 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 |
|---|---|
List<String> |
MultiWordChunker.getTokenLettercaseVariants(String originalToken,
Map<String,AnalyzedToken> tokenMap) |
| 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 |
|---|---|
AnalyzedToken |
DemoTagger.createToken(String token,
String posTag) |