com.sun.labs.minion.lexmorph
Class MorphCompoundRule
java.lang.Object
com.sun.labs.minion.lexmorph.MorphRule
com.sun.labs.minion.lexmorph.MorphCompoundRule
public class MorphCompoundRule
- extends MorphRule
This is a class of compound rules used in MorphEngine.
- See Also:
MorphEngine
Method Summary |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
categoryPattern
public Category[] categoryPattern
actions
public int[] actions
name
public java.lang.String name
MorphCompoundRule
public MorphCompoundRule()
MorphCompoundRule
public MorphCompoundRule(java.lang.String expression,
java.lang.String blockName,
Lexicon dict)
- Create a MorphCompoundRule
- Parameters:
expression
- A string specifying a MorphCompoundRule.blockName
- A String specifying the name of the block for tracing.dict
- A Lexicon to use for making the categories to match.
MorphCompoundRule
public MorphCompoundRule(MorphRule oldRule,
java.lang.String newName,
Lexicon dict)
- Create a MorphCompoundRule from a temporary MorphRule
- Parameters:
oldRule
- A MorphRule whose pattern specifies two categories as strings.newName
- A String specifying the name of the converted rule for tracing.dict
- A Lexicon to use for making the categories to match.
toString
public java.lang.String toString()
- Overrides:
toString
in class MorphRule