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

Better handling of spaces in ASCII text (fixes #65) #66

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

polm
Copy link
Owner

@polm polm commented Dec 20, 2024

This preserves spacing between ASCII tokens (after converting full width to half width). It makes the results for ASCII input more natural instead of adding surprising spacing due to MeCab token boundaries.

This doesn't fix everything in #65, but it fixes the reproducible part.

This modifies behavior in old tests, but it seems to have no downsides.

polm added 4 commits December 20, 2024 20:57
This resolves most of the weird spacing around ASCII input. Note that it
has to happen at the end of the processing pipeline to work with rules
that make sure ascii-ish punctuation next to Japanese gets the right
results.
Various kinds of weird behavior that tests documented now just works
naturally, so that's good.
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

Successfully merging this pull request may close these issues.

1 participant