|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--RuleEntryLHS
This contain a rule
Field Summary | |
java.util.Vector |
agreement
This vector contain the information required for feature passing |
double |
choosingrate
This is the weighting value It is compared to a random interager, if the random int is equal or less than the weighting value the rule is not rejected |
int |
feature_depth
The number of features that are passed |
java.util.BitSet |
featurepass
This is set of features that should be introduced to the nodes created by the rule if the rule is finally selected |
java.util.BitSet |
filter
This is the filter that the node that is being replaced must pass |
int |
filtertype
This is weither there is a filter on the left hand side of the rule, 1 if positive filter, 0 if non-filter, -1 if negative filter |
java.lang.String |
lhs
This is the target type |
java.util.Vector |
mapping
This vector contains the mapping between the parts of speech in the rhs and the or. |
java.util.BitSet[][] |
neg_implication
This 2d arrary contains contains the negative filter for checking features during parsing |
java.util.Vector |
ororder
This vector contains the order of the objects and relations |
java.util.BitSet[][] |
pos_implication
This 2d arrary contains contains the positive filter for checking features during parsing |
java.util.BitSet[][] |
restore
This 2d array is required to add features that were removed by the N[det] -> det N[-det] rule. |
java.util.Vector |
rhs
Contains the all the types on the rhs of the rule in order |
Constructor Summary | |
RuleEntryLHS()
Defualt constructor |
Method Summary | |
int |
compareTo(java.lang.Object comparee)
compareTo is required to implement Arrays.sort([]) later in the parsing routine |
Table2 |
make(java.util.StringTokenizer cmds,
Table2 features)
given an input line from a rule file this method will set the values of the different vectors and arrays. |
void |
ruleDisplay()
Display function for outputing a text representation of the rule |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String lhs
public int filtertype
public double choosingrate
public java.util.BitSet filter
public java.util.BitSet featurepass
public java.util.Vector rhs
public java.util.Vector ororder
public java.util.Vector mapping
public java.util.Vector agreement
public java.util.BitSet[][] pos_implication
public java.util.BitSet[][] neg_implication
public java.util.BitSet[][] restore
public int feature_depth
Constructor Detail |
public RuleEntryLHS()
Method Detail |
public Table2 make(java.util.StringTokenizer cmds, Table2 features)
cmds
- A line from a rule file.features
- The feature table being used by the system, this is needed to maintain constant bit assignmentspublic void ruleDisplay()
public int compareTo(java.lang.Object comparee)
compareTo
in interface java.lang.Comparable
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |