How to get Spacy to Respect Bracket Tokens with Regex Match? #13105
Replies: 1 comment
-
I think I hacked it...any improvements from experts/non-beginners are welcome.
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
The below is what I'm looking for...
How do I get Spacy to respect the regex pattern? In my case, Spacy is recognizing the '{' character as a separate token.
I'd simply like Spacy to respect the regex and create the span, which may/not include brackets or whatever text.
Also, my guess is that there is a simpler/more-elegant way to integrate the regex match into Spacy
I think I'm almost there with thanks to this discussion forum!
I think this might approach might best merge what I currently know Spacy with the pre-existing regex of my project.
Incorrect Output (the brackets aren't merged)
Beta Was this translation helpful? Give feedback.
All reactions