How might we account for multiple filters matching on the same token? #51
stevepolitodesign
started this conversation in
Ideas
Replies: 1 comment
-
We probably want to introduce a "priority" concept to the default filters. In the meantime, one workaround would be to disable the TopSecret::Text.filter("My name is Austin, and I live in Austin TX.", people_filter: nil, custom_filters: [
TopSecret::Filters::NER.new(label: "PERSON", tag: :person)
]) |
Beta Was this translation helpful? Give feedback.
0 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'm imagining a case where a string could return a match for multiple filters. Here's a contrived example:
The
people_filter
is declared before thelocation_filter
, so it takes priority.Beta Was this translation helpful? Give feedback.
All reactions