Can SpanRuler do everything EntityRuler does? #11098
-
I'm belatedly realizing that there's an I'm basically wondering if I can simplify my code and use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
spaCy/spacy/pipeline/span_ruler.py Lines 22 to 63 in 86ee26e The plan is to remove the current |
Beta Was this translation helpful? Give feedback.
SpanRuler
can do everything thatEntityRuler
does. If you look at the factory forfuture_entity_ruler
you can see how we have implemented the originalEntityRuler
functionality usingSpanRuler
:spaCy/spacy/pipeline/span_ruler.py
Lines 22 to 63 in 86ee26e