text: 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;}