public virtual bool AreEqual(object o, object o2)
        {
            WordCatConstituent span  = (WordCatConstituent)o;
            WordCatConstituent span2 = (WordCatConstituent)o2;

            if (span.type != span2.type)
            {
                return(false);
            }
            else
            {
                if (span.Start() != span2.Start() || span.End() != span2.End())
                {
                    return(false);
                }
                else
                {
                    if (span.type != WordCatConstituent.wordType && !span.Value().Equals(span2.Value()))
                    {
                        return(false);
                    }
                    else
                    {
                        return(true);
                    }
                }
            }
        }
Example #2
0
        public virtual object EquivalenceClass(object o)
        {
            WordCatConstituent lb = (WordCatConstituent)o;

            return(lb.type);
        }