public class MatchState extends Object
Constructor and Description |
---|
MatchState(Match match,
Synthesizer synthesizer) |
Modifier and Type | Method and Description |
---|---|
AnalyzedTokenReadings |
filterReadings() |
Match |
getMatch() |
String |
getTargetPosTag()
Format POS tag using parameters already defined in the class.
|
void |
setToken(AnalyzedTokenReadings token) |
void |
setToken(AnalyzedTokenReadings[] tokens,
int index,
int next)
Sets the token to be formatted etc. and includes the support for
including the skipped tokens.
|
String[] |
toFinalString(Language lang)
Gets all strings formatted using the match element.
|
public MatchState(Match match, Synthesizer synthesizer)
public void setToken(AnalyzedTokenReadings token)
public final void setToken(AnalyzedTokenReadings[] tokens, int index, int next)
tokens
- Array of tokensindex
- Index of the token to be formattednext
- Position of the next token (the skipped tokens are the ones between the tokens[index] and tokens[next]public final AnalyzedTokenReadings filterReadings()
public final String[] toFinalString(Language lang) throws IOException
IOException
public final String getTargetPosTag()
public Match getMatch()