Return True if this match query span surrounds other other match query span. This is different from containment. A matched query region can surround another matched query region and have no positions in common with the surrounded match.
(self, other)
| 619 | return round(query_coverage * rule_coverage * relevance * 100, 2) |
| 620 | |
| 621 | def surround(self, other): |
| 622 | """ |
| 623 | Return True if this match query span surrounds other other match query |
| 624 | span. |
| 625 | |
| 626 | This is different from containment. A matched query region can surround |
| 627 | another matched query region and have no positions in common with the |
| 628 | surrounded match. |
| 629 | """ |
| 630 | return self.qstart <= other.qstart and self.qend >= other.qend |
| 631 | |
| 632 | def is_after(self, other): |
| 633 | """ |
no outgoing calls