Modifier and Type | Field and Description |
---|---|
protected boolean |
foundRule |
protected FSMState |
initialState
The initial state of the FSM that backs this morpher
|
protected int |
patternIndex |
Constructor and Description |
---|
Interpret() |
Modifier and Type | Method and Description |
---|---|
void |
addState(char ch,
FSMState fsm,
int index) |
protected String |
executeRHS(String word,
String category,
RHS rhs) |
protected String |
executeRHSes(SortedSet<RHS> rhses,
String word,
String category) |
String |
getAffix()
This method tells what was the affix to the provided word
|
FSMState |
getInitialState() |
int |
getPatternIndex() |
FSMState |
getState(char ch,
int index) |
void |
init(Interpret existingInterpret)
Initialize this Interpret by copying pointers to the sharable state
of an existing Interpret instance.
|
void |
init(URL ruleFileURL)
It starts the actual program
|
static void |
main(String[] args)
Main method
|
String |
runMorpher(String word,
String category) |
protected FSMState initialState
protected int patternIndex
protected boolean foundRule
public Interpret()
public void init(URL ruleFileURL) throws ResourceInstantiationException
ResourceInstantiationException
public void init(Interpret existingInterpret)
public String runMorpher(String word, String category)
public int getPatternIndex()
protected String executeRHS(String word, String category, RHS rhs)
public static void main(String[] args) throws ResourceInstantiationException
args
- ResourceInstantiationException
public String getAffix()
public FSMState getInitialState()