How to use EntityRuler and label my entity correctly #13195
Unanswered
dasseya1
asked this question in
Help: Coding & Implementations
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
-
Writing single matcher patterns to label one token based on the presence of another token AND within sentence boundaries is going to be tricky with the matcher or entity ruler by itself. I'd recommend trying a two-step approach instead:
|
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.
-
How it should work
"my doaq is ABCDAE" - because ABCDAE is six characters and we have doaq in the sentence, it should label ABCDAE a CODE
"my account code which is A7C6A9" - because A7C6A9 is six characters and we have account code in the sentence, it should label A7C6A9 a CODE
"I like my dog with 7861A3" - because 7861A3 is a six characters and we don't have "account code" and "doaq" in the sentence, it shouldn't label 7861A3 as a CODE
"""
My code
Current result
Expected Result
How can I fix my code?
Beta Was this translation helpful? Give feedback.
All reactions