A matcher used in the match process
| 1203 | |
| 1204 | |
| 1205 | class Matcher(NamedTuple): |
| 1206 | """A matcher used in the match process""" |
| 1207 | # matcher name used in debugging |
| 1208 | name: str |
| 1209 | # function to call, passing a query |
| 1210 | function: Callable |
| 1211 | # whether to inlude low tokens when checking if there are matchable left |
| 1212 | include_low: bool |
| 1213 | # True if matching should continue after this matcher |
| 1214 | continue_matching: bool = True |
| 1215 | |
| 1216 | |
| 1217 | def get_weak_rids(len_legalese, tids_by_rid, _idx): |