-
Notifications
You must be signed in to change notification settings - Fork 287
Fix tokenization benchmark issue #269
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
Conversation
|
On Windows, there is Unicode encoding problem at line 11 of with open("./tests/data/sentences.yml", "r", encoding="utf-8") as stream:
TEST_DATA = yaml.safe_load(stream) |
bact
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- remove unused imports, sort imports
- specify encoding (utf-8) when open sentences.yml
|
Code is already updated: PyThaiNLP/attacut@c866982 |
|
@bact I've updated the attacut package with the load_dict patch. At the moment, it's a pre-release version. |
|
@bact I've renamed the benchmark module to |
|
Thanks! |
| .. autofunction:: pythainlp.benchmarks.word_tokenisation.preprocessing | ||
| .. autofunction:: pythainlp.benchmarks.word_tokenization.compute_stats | ||
| .. autofunction:: pythainlp.benchmarks.word_tokenization.benchmark | ||
| .. autofunction:: pythainlp.benchmarks.word_tokenization.preprocessing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, thanks!
Related to #268