-
Notifications
You must be signed in to change notification settings - Fork 13
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
Miss a LICENSE #18
Comments
If you are busy to do, can you add me to collaborators? @petronny |
Hi, as you can see that this repository is forked from https://github.com/adaptee/pinyin-completion.
Sure. |
I found a LICENSE: https://aur.archlinux.org/packages/pinyin-completion:
|
This is my mistake. I will file an issue to the original repository. |
I refactor the code to avoid the problem comes from original repo. Now this plugin use pypinyin to I have added unit tests and CI/CD to make sure it can work. Currently, pypinyin can work but not fast: % hyperfine -r 10 'pypinyin 你好'
Benchmark 1: pypinyin 你好
Time (mean ± σ): 613.4 ms ± 4.9 ms [User: 465.2 ms, System: 147.6 ms]
Range (min … max): 604.5 ms … 619.2 ms 10 runs
% hyperfine -r 10 'echo 你好|pinyin-tool'
Benchmark 1: echo 你好|pinyin-tool
Time (mean ± σ): 435.1 ms ± 10.1 ms [User: 382.1 ms, System: 53.3 ms]
Range (min … max): 425.7 ms … 461.7 ms 10 runs I have researched alternative tools:
And if it should be faster. However, the above features should be upstream's works and it is not directly related to us. |
This is a great idea. However, I believe pypinyin is using ngram models so the speed will be slow. We can write a new script with |
I agree. And the new script also can be contributed to upstream, because I think not only this repo need it. A cache named Currently, can you enable pre-commit.ci? |
Done. |
Miss a LICENSE will affect packaging NixOS/nixpkgs#262218.
The text was updated successfully, but these errors were encountered: