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

[Advise]匹配算法可以考虑分为个多粒度依次匹配 #39

Open
arbalest339 opened this issue Mar 1, 2022 · 0 comments
Open

Comments

@arbalest339
Copy link

作者您好,今天第一次玩到汉兜,感觉十分有趣,但在尝试时发现了一些可以优化的地方,望采纳。

5589a64e0607736701d8974783edc91

这是本人今天的尝试,答案为“首当其冲”,我在第二次尝试时使用了“参差不齐”,“其”和“齐”是同音不同字,但是“齐”并没有作为一个整体匹配到“其”上,这对于我的判断产生了一定的影响。
由此我斗胆推断一下,这个匹配算法是将声母、韵母、音调三个部分拆开来分别进行匹配的。
改进的方法为采用多粒度匹配,即首先将声母、韵母、音调三者作为整体匹配,之后将声母拆分出去单独匹配,韵母和音调作为整体匹配,最后再将韵母和音调也拆分出去,三者都单独匹配。

不过以上改动实现起来可能较为复杂,然而实现之后可以在一定程度上降低猜测难度,对于我这样没文化的人是会友好一些啦。
希望作者大佬可以看到,我也打算fork下来先自己尝试实现。

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

2 participants