|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.lexmorph.MorphState
public class MorphState
This is a class of objects used to carry the state of a morphological analysis. MorphState was designed to support multithreading by allowing each morph thread to instantiate a different MorphState instance to keep the state of morphological analyses on that thread. During morphological analysis, additional instances of MorphState may be created for managing the morphological analyses of potential roots of a word being analyzed.
Field Summary | |
---|---|
protected int |
action
|
protected java.lang.String |
addLeftString
|
protected java.lang.String |
addRightString
|
protected Word |
apparentRoot
|
protected Value |
capcode
|
protected java.util.Vector |
catSenses
|
protected static java.lang.String |
className
|
protected boolean |
cModeKnownFlag
|
protected MorphCompoundRule |
compoundRule
|
protected java.lang.String |
connector
|
protected boolean |
doneFlag
|
MorphEngine |
frame
|
protected boolean |
keepMorphCacheFlag
|
protected int |
killLeftNum
|
protected int |
killRightNum
|
protected boolean |
knownRoot
|
protected int |
leftContextPtr
|
protected Word |
lex
|
protected java.lang.String |
lexString
|
protected int |
likelihood
|
protected boolean |
matched
|
protected java.util.Hashtable |
morphCache
|
protected boolean |
phaseOneFlag
|
protected boolean |
phaseTwoFlag
|
protected Word |
prefix
|
protected boolean |
prefixPhaseFlag
|
protected java.lang.String |
prefixString
|
protected int |
rightContextPtr
|
protected Word |
root
|
protected java.lang.String |
rootString
|
protected MorphRule |
rule
|
protected int |
ruleNum
|
protected java.lang.String |
substitutionString
|
protected Word |
suffix
|
protected java.lang.String |
suffixString
|
protected boolean |
testval
|
protected Word |
word1
|
protected Word |
word2
|
Constructor Summary | |
---|---|
MorphState()
Create a MorphState |
|
MorphState(int startDepth,
java.util.Hashtable cache)
Create a MorphState |
|
MorphState(int startDepth,
java.util.Hashtable cache,
MorphEngine morph,
MorphRule testrule,
java.lang.String teststring)
Create a MorphState for testing a MorphRule |
Method Summary | |
---|---|
void |
initialize()
Method to initialize a state for reuse. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Hashtable morphCache
public MorphEngine frame
protected Word lex
protected java.lang.String lexString
protected boolean cModeKnownFlag
protected MorphRule rule
protected int ruleNum
protected int action
protected boolean matched
protected Word root
protected java.lang.String rootString
protected Word apparentRoot
protected Value capcode
protected java.lang.String addLeftString
protected java.lang.String addRightString
protected java.lang.String substitutionString
protected int killLeftNum
protected int killRightNum
protected int leftContextPtr
protected int rightContextPtr
protected boolean testval
protected int likelihood
protected boolean phaseOneFlag
protected boolean phaseTwoFlag
protected boolean prefixPhaseFlag
protected boolean knownRoot
protected java.util.Vector catSenses
protected java.lang.String prefixString
protected java.lang.String suffixString
protected Word prefix
protected Word suffix
protected boolean doneFlag
protected MorphCompoundRule compoundRule
protected Word word1
protected Word word2
protected java.lang.String connector
protected boolean keepMorphCacheFlag
protected static java.lang.String className
Constructor Detail |
---|
public MorphState()
public MorphState(int startDepth, java.util.Hashtable cache)
startDepth
- The depth of analysis this state is used for.cache
- The morphCache to use at this level.public MorphState(int startDepth, java.util.Hashtable cache, MorphEngine morph, MorphRule testrule, java.lang.String teststring)
startDepth
- The depth of analysis this state is used for.cache
- The morphCache to use for this test.morph
- The MorphEngine to use.testrule
- A Rule to test.teststring
- A string to test the rule against.Method Detail |
---|
public void initialize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |