|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.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 HashSet |
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(TreeSet 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(URL ruleFileURL)
It starts the actual program |
static void |
main(String[] args)
Main method |
String |
runMorpher(String word,
String category)
lookup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FSMState initialState
protected HashSet lastStates
protected int patternIndex
protected boolean foundRule
| Constructor Detail |
|---|
public Interpret()
| Method Detail |
|---|
public void init(URL ruleFileURL)
throws ResourceInstantiationException
ruleFileName -
ResourceInstantiationException
public void addState(char ch,
FSMState fsm,
int index)
public FSMState getState(char ch,
int index)
public String runMorpher(String word,
String category)
singleItem - a single string to be looked up by the gazetteer
public int getPatternIndex()
protected String executeRHSes(TreeSet rhses,
String word,
String category)
protected String executeRHS(String word,
String category,
RHS rhs)
public static void main(String[] args)
throws ResourceInstantiationException
args -
ResourceInstantiationExceptionpublic String getAffix()
public FSMState getInitialState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||