def __init__(self, a, b, slop=1, ordered=True, mindist=1): self.a = a self.b = b self.slop = slop self.ordered = ordered self.mindist = mindist isect = IntersectionMatcher(a, b) super(SpanNear.SpanNearMatcher, self).__init__(isect)
def __init__(self, a, b): self.a = a isect = IntersectionMatcher(a, b) super(SpanCondition._Matcher, self).__init__(isect)
def __init__(self, a, b): self.a = a self.b = b isect = IntersectionMatcher(a, b) super(SpanBefore._Matcher, self).__init__(isect)
def __init__(self, a, b): self.a = a self.b = b isect = IntersectionMatcher(a, b) super(SpanContains.SpanContainsMatcher, self).__init__(isect)