| Modifier and Type | Method and Description |
|---|---|
AnalyzedTokenReadings[] |
AnalyzedSentence.getTokens()
Returns the
AnalyzedTokenReadings of the analyzed text. |
AnalyzedTokenReadings[] |
AnalyzedSentence.getTokensWithoutWhitespace()
Returns the
AnalyzedTokenReadings of the analyzed text, with
whitespace tokens removed but with the artificial SENT_START
token included. |
| Constructor and Description |
|---|
AnalyzedSentence(AnalyzedTokenReadings[] tokens)
Creates an AnalyzedSentence from the given
AnalyzedTokenReadings. |
| Modifier and Type | Method and Description |
|---|---|
void |
Chunker.addChunkTags(List<AnalyzedTokenReadings> sentenceTokenReadings) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<AnalyzedTokenReadings> |
PartialPosTagFilter.tag(String token) |
| Modifier and Type | Method and Description |
|---|---|
RuleMatch |
AbstractDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PartialPosTagFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
AnalyzedTokenReadings[] patternTokens) |
boolean |
WordRepeatRule.ignore(AnalyzedTokenReadings[] tokens,
int position)
Implement this method to return
true if there's
a potential word repetition at the current position should be ignored,
i.e. if no error should be created. |
protected boolean |
WordRepeatBeginningRule.isAdverb(AnalyzedTokenReadings token) |
protected boolean |
GenericUnpairedBracketsRule.isNoException(String token,
AnalyzedTokenReadings[] tokens,
int i,
int j,
boolean precSpace,
boolean follSpace)
Generic method to specify an exception.
|
protected boolean |
AbstractSimpleReplaceRule.isTagged(AnalyzedTokenReadings tokenReadings)
This method allows to override which tags will mark token as tagged
|
| Modifier and Type | Field and Description |
|---|---|
protected AnalyzedTokenReadings[] |
AbstractPatternRulePerformer.unifiedTokens |
| Modifier and Type | Method and Description |
|---|---|
AnalyzedTokenReadings |
MatchState.filterReadings() |
AnalyzedTokenReadings[] |
Unifier.getFinalUnified()
Used for getting a unified sequence in case when simple test method
Unifier.isUnified(org.languagetool.AnalyzedToken, java.util.Map, boolean)} was used. |
AnalyzedTokenReadings[] |
Unifier.getUnifiedTokens()
Gets a full sequence of filtered tokens.
|
| Modifier and Type | Method and Description |
|---|---|
RuleMatch |
RuleFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
AnalyzedTokenReadings[] patternTokens)
Returns the original rule match or a modified one, or
null
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.
|
boolean |
PatternTokenMatcher.isMatchedByPreviousException(AnalyzedTokenReadings token) |
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").
|
void |
PatternTokenMatcher.resolveReference(int firstMatchToken,
AnalyzedTokenReadings[] tokens,
Language language) |
void |
MatchState.setToken(AnalyzedTokenReadings token) |
void |
MatchState.setToken(AnalyzedTokenReadings[] tokens,
int index,
int next)
Sets the token to be formatted etc. and includes the support for
including the skipped tokens.
|
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) |
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and Description |
|---|---|
List<AnalyzedTokenReadings> |
BaseTagger.tag(List<String> sentenceTokens) |
List<AnalyzedTokenReadings> |
Tagger.tag(List<String> sentenceTokens)
Returns a list of
AnalyzedTokens that assigns each term in the
sentence some kind of part-of-speech information (not necessarily just one tag). |
protected List<AnalyzedTokenReadings> |
BaseTagger.tag(String token) |
| Modifier and Type | Method and Description |
|---|---|
AnalyzedTokenReadings |
DemoTagger.createNullToken(String token,
int startPos) |
| Modifier and Type | Method and Description |
|---|---|
List<AnalyzedTokenReadings> |
DemoTagger.tag(List<String> sentenceTokens) |