-
Notifications
You must be signed in to change notification settings - Fork 94
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
wrong result when convert to furigana #60
Comments
异步模式太糟糕,至少初始化时应该是同步模式,初始化是耗时的步骤,不应该每次计算时又初始化一次。 |
@halfsprit 这个库接口设计为异步是有原因的,因为部分 analyzer 是异步的。当然,这个设计不太好,因为存在异步 analyzer,导致所有接口都异步了 = = 初始化并不存在什么问题吧,因为可以只初始化一次的。 |
analyzer 里面似乎也只有readFile是异步的,但是readFile好像也有同步版本,是不是使用readFile的同步版本就能解决这个问题呢? |
@halfsprit 和 |
利用kuroshiro的库,编写了一个小工具,除了初始化要点时间外,后面就是即时进行转换。 |
as a non-japanese speaker i'd love to know what the verdict is (is the hiragana accurate or not) :) |
I am trying to convert
渡り鳥
using code bellow:And get the result
which is wrong, the correct result should be
BTW, the async api is a real pain, we should make it sync, at least when used with kuromoji analyzer.
The text was updated successfully, but these errors were encountered: