Remove patterns and labels from EntityRuler #8228
dhruvrnaik
started this conversation in
New Features & Project Ideas
Replies: 1 comment 2 replies
-
It's true we don't have a good way to do this. I think the reason is that in our experience it's typical to just build the EntityRuler and use it without modifying it over time. I don't think it'd be complicated to add this, but can you clarify how you're using the Entity Ruler that makes this a feature you need? It'll help us understand how to best adjust the API. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I cannot find a good way to remove patterns from a label, or the entire list of patterns corresponding to a label with the EntityRuler pipe.
There is one way by using
entity_ruler.matcher.remove(<LABEL>)
, but this is not a good solution as it doesn't remove labels fromentity_ruler.token_patterns
orphrase_patterns
.It would also be great if there was a way to remove a single pattern from a label, and not have to delete the entire list of patterns and the label.
Beta Was this translation helpful? Give feedback.
All reactions