Is there a utility to show all the spans highlighted by a set of patterns in a corpus? Like ner.print-stream except for a set of patterns instead of a model?
(I think the answer is “no” and it’s fairly easy to write this, but I wanted to double-check.)
Not currently, no – but this is a good idea, and adding a --patterns argument to ner.print-stream should definitely be no problem. Will put this on my list for the next release!
In the meantime, I think the easiest way to write this yourself would be to take inspiration from ner.match (i.e. use the PatternMatcher), and add it to ner.print-stream