Return the coverage of this match to the matched rule as a float between 0 and 1.
(self)
| 470 | return self.qspan.overlap(other.qspan) |
| 471 | |
| 472 | def _icoverage(self): |
| 473 | """ |
| 474 | Return the coverage of this match to the matched rule as a float between |
| 475 | 0 and 1. |
| 476 | """ |
| 477 | if not self.rule.length: |
| 478 | return 0 |
| 479 | return self.len() / self.rule.length |
| 480 | |
| 481 | def coverage(self): |
| 482 | """ |