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 unicode support in tokenization rules #31

Open
rth opened this issue Apr 13, 2019 · 1 comment
Open

Better unicode support in tokenization rules #31

rth opened this issue Apr 13, 2019 · 1 comment

Comments

@rth
Copy link
Owner

rth commented Apr 13, 2019

Currently, the VTextTokenizer first computes Unicode segmentation (which should handle Unicode well by definition) than applies a few simple rules on top to produce tokenization that is more standard in NLP (and possibly language dependent).

These rules might need to be generalized a bit to handle Unicode better. For instance, currently we merge tokens linked by - but only the ascii one, not on other Unicode variants.

@rth
Copy link
Owner Author

rth commented Apr 13, 2019

Using https://github.com/BurntSushi/utf8-ranges would probably be quite useful without sacrificing speed too much.

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

No branches or pull requests

1 participant