示例#1
0
 /// <summary>
 /// Hooks are equal if they have same state, substate, head, tag, start,
 /// and end.
 /// </summary>
 public override bool Equals(object o)
 {
     // System.out.println("\nCHECKING HOOKS: " + this + " vs. " + o);
     if (this == o)
     {
         return(true);
     }
     if (o is Edu.Stanford.Nlp.Parser.Lexparser.Hook)
     {
         Edu.Stanford.Nlp.Parser.Lexparser.Hook e = (Edu.Stanford.Nlp.Parser.Lexparser.Hook)o;
         if (state == e.state && subState == e.subState && head == e.head && tag == e.tag && start == e.start && end == e.end)
         {
             return(true);
         }
     }
     return(false);
 }
示例#2
0
 public Hook(Edu.Stanford.Nlp.Parser.Lexparser.Hook h)
     : base(h)
 {
     subState = h.subState;
 }