Skip to content
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

Quotes detokenized incorrectly #152

Open
eu9ene opened this issue Nov 9, 2024 · 0 comments
Open

Quotes detokenized incorrectly #152

eu9ene opened this issue Nov 9, 2024 · 0 comments

Comments

@eu9ene
Copy link

eu9ene commented Nov 9, 2024

Example:

“See what you have done!” she screamed. “In a minute I shall melt away.”

tokenized:
['“', 'See', 'what', 'you', 'have', 'done', '!', '”', 'she', 'screamed', '.', '“', 'In', 'a', 'minute', 'I', 'shall', 'melt', 'away', '.', '”']

detokenized:
“See what you have done! ” she screamed.“ In a minute I shall melt away. ”

Expected: spacing is the same as in the the original sentence
Actual: extra whitespace near the quotes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant