|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectMatch
public class Match
Reference to a matched token in a pattern, can be formatted and used for matching & suggestions.
| Nested Class Summary | |
|---|---|
static class |
Match.CaseConversion
Possible string case conversions. |
| Constructor Summary | |
|---|---|
Match(String posTag,
String posTagReplace,
boolean postagRegexp,
String regexMatch,
String regexReplace,
Match.CaseConversion caseConversionType,
boolean setPOS)
|
|
| Method Summary | |
|---|---|
boolean |
convertsCase()
Used to let LT know that it should change the case of the match. |
AnalyzedTokenReadings |
filterReadings(AnalyzedTokenReadings tokenToFilter)
|
String |
getTargetPosTag()
Format POS tag using parameters already defined in the class. |
int |
getTokenRef()
Gets the token number referenced by the match. |
boolean |
posRegExp()
Checks if the Match element uses regexp-based form of the POS tag. |
void |
setLemmaString(String lemmaString)
Sets a base form (lemma) that will be formatted, or synthesized, using the specified POS regular expressions. |
boolean |
setsPos()
Checks if the Match element is used for setting the part of speech Element. |
void |
setSynthesizer(Synthesizer synth)
Sets a synthesizer used for grammatical synthesis of forms based on formatted POS values. |
void |
setToken(AnalyzedTokenReadings token)
Sets the token that will be formatted or otherwise used in the class. |
void |
setTokenRef(int i)
Sets the token number referenced by the match. |
String[] |
toFinalString()
Gets all strings formatted using the match element. |
String |
toTokenString()
Method for getting the formatted match as a single string. |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Match(String posTag,
String posTagReplace,
boolean postagRegexp,
String regexMatch,
String regexReplace,
Match.CaseConversion caseConversionType,
boolean setPOS)
| Method Detail |
|---|
public final void setToken(AnalyzedTokenReadings token)
token - @AnalyzedTokenReadingspublic final boolean setsPos()
public final boolean posRegExp()
public final void setLemmaString(String lemmaString)
lemmaString - @String that specifies the base form.public final void setSynthesizer(Synthesizer synth)
synth - @Synthesizer class.
public final String[] toFinalString()
throws IOException
IOException - in case of syntesizer-related disk problems.public final String getTargetPosTag()
public final String toTokenString()
public final void setTokenRef(int i)
i - Token number.public final int getTokenRef()
public boolean convertsCase()
public final AnalyzedTokenReadings filterReadings(AnalyzedTokenReadings tokenToFilter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||