Matcher support for searching on a Span, as well as a Doc #5056
Labels
enhancement
Feature requests and improvements
feat / matcher
Feature: Token, phrase and dependency matcher
Feature description
It would be nice to have support for running pattern matching on Span, as well as Doc.
Sometimes it could be not necessary to perform the pattern searching in the whole document, but in some sentences or, more generally, spans only.
I already implemented and partially tested a solution locally, any downside I'm not aware of in terms of policies or code design constraints for this kind of feature?
Here are some of my changes in the matcher.pyx:
where
find_matches
changes acceptingdoc_or_span
andlength
as new parameters:The text was updated successfully, but these errors were encountered: