-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug when highlighted perfectly adjacent spans #10
Comments
Hi @idc9, I’m experiencing the same issue as you. Additionally, I’ve noticed another related problem: when the text spans multiple paragraphs, if you try to label the last word of a paragraph (e.g., I’ve found a workaround for this issue. While it might not be the most elegant solution—since I don’t fully understand the application’s code—it has been working for me so far. Here are the behaviors I’ve tested:
To test this, I split your text into three paragraphs:
Here are what I've tested: The code I modified is located at:
To work with this modification, you’ll need to install the library by following these steps:
I’m also attaching the JSON output generated from the labels in the previous image for reference:
I hope this explanation and the workaround I’ve shared are clear and helpful. Please let me know if I’ve missed anything or made any mistakes, and feel free to reach out if further clarification is needed. Best regards, |
When I highlight perfectly adjacent spans it does some weird stuff with the text. Here I highlighted "Yesterday" and " , at 3pm Emily" and it added an extra "Yesterday" in between
The text was updated successfully, but these errors were encountered: