PhraseMatcher not matching phrase with forward slash as expected #13540
Unanswered
ealb0
asked this question in
Help: Coding & Implementations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using a
PhraseMatcher
to try to match the text "and/or". Withattr='LOWER'
, I would expect "and/or" to be matched with any capitalization. It only seems to be matching specifically the lowercase "and/or". Here is code that can be used to test this:The output of the above code is:
However, if I add the phrase "And/or", so the matcher.add line becomes:
The output is what I desired:
That seems like a band-aid solution that isn't addressing what's really going on. Does anyone know why it's working this way? Is my approach wrong? I appreciate any help. Thanks!
Environment
SpaCy version: 3.7.2
Python version: 3.12.2
Model: en_core_web_lg-3.7.0
Beta Was this translation helpful? Give feedback.
All reactions