public boolean isOffsetOverlap( WeightedPhraseInfo other ){int so = getStartOffset();int eo = getEndOffset();int oso = other.getStartOffset();int oeo = other.getEndOffset();if( so <= oso && oso < eo ) return true;if( so < oeo && oeo <= eo ) return true;if( oso <= so && so < oeo ) return true;if( oso < eo && eo <= oeo ) return true;return false;}
public virtual bool IsOffsetOverlap(WeightedPhraseInfo other){int so = StartOffset;int eo = EndOffset;int oso = other.StartOffset;int oeo = other.EndOffset;if (so <= oso && oso < eo) return true;if (so < oeo && oeo <= eo) return true;if (oso <= so && so < oeo) return true;if (oso < eo && eo <= oeo) return true;return false;}