Class RuleEntryLHS

java.lang.Object
  |
  +--RuleEntryLHS
All Implemented Interfaces:
java.lang.Comparable

public class RuleEntryLHS
extends java.lang.Object
implements java.lang.Comparable

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

lhs

public java.lang.String lhs
This is the target type

filtertype

public 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

choosingrate

public 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

filter

public java.util.BitSet filter
This is the filter that the node that is being replaced must pass

featurepass

public 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

rhs

public java.util.Vector rhs
Contains the all the types on the rhs of the rule in order

ororder

public java.util.Vector ororder
This vector contains the order of the objects and relations

mapping

public java.util.Vector mapping
This vector contains the mapping between the parts of speech in the rhs and the or.

agreement

public java.util.Vector agreement
This vector contain the information required for feature passing

pos_implication

public java.util.BitSet[][] pos_implication
This 2d arrary contains contains the positive filter for checking features during parsing

neg_implication

public java.util.BitSet[][] neg_implication
This 2d arrary contains contains the negative filter for checking features during parsing

restore

public java.util.BitSet[][] restore
This 2d array is required to add features that were removed by the N[det] -> det N[-det] rule.

feature_depth

public int feature_depth
The number of features that are passed
Constructor Detail

RuleEntryLHS

public RuleEntryLHS()
Defualt constructor
Method Detail

make

public 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.
Parameters:
cmds - A line from a rule file.
features - The feature table being used by the system, this is needed to maintain constant bit assignments
Returns:
The modified feature table that reflects any additions made during the method.

ruleDisplay

public void ruleDisplay()
Display function for outputing a text representation of the rule

compareTo

public int compareTo(java.lang.Object comparee)
compareTo is required to implement Arrays.sort([]) later in the parsing routine
Specified by:
compareTo in interface java.lang.Comparable