|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gate.creole.morph.Interpret
public class Interpret
Title: Interpret.java
Description: This is the main class which which should be invoked to load the rule file in the system and then to execute the program to find the root word and the affix to it.
Field Summary | |
---|---|
protected boolean |
foundRule
|
protected FSMState |
initialState
The initial state of the FSM that backs this morpher |
protected Set |
lastStates
|
protected int |
patternIndex
|
Constructor Summary | |
---|---|
Interpret()
|
Method Summary | |
---|---|
void |
addState(char ch,
FSMState fsm,
int index)
|
protected String |
executeRHS(String word,
String category,
RHS rhs)
|
protected String |
executeRHSes(SortedSet 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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FSMState initialState
protected Set lastStates
protected int patternIndex
protected boolean foundRule
Constructor Detail |
---|
public Interpret()
Method Detail |
---|
public void init(URL ruleFileURL) throws ResourceInstantiationException
ResourceInstantiationException
public void init(Interpret existingInterpret)
public void addState(char ch, FSMState fsm, int index)
public FSMState getState(char ch, int index)
public String runMorpher(String word, String category)
public int getPatternIndex()
protected String executeRHSes(SortedSet rhses, String word, String category)
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |