正在加载输入法建议列表的字典
由于各种原因,我正在尝试编写自己的输入键盘。到目前为止,除了创建建议之外,一切都很顺利。
我找到了 latinIME 算法,这一切都很好。
然而,我一开始就很难弄清楚如何加载字典。
我仔细浏览了网络,发现了各种建议,但没有明确的答案,而且我似乎无法让其中任何一个发挥作用。
如果有人对如何最好地做到这一点有任何建议,或者甚至更好地提供一些示例代码,那就太好了。
非常感谢
詹姆斯
For various reasons, i'm trying to write my own input keyboard. So far all is going well except that of creating the suggestions.
I've found the latinIME algorithm, which is all good.
However i'm having major difficulty working out how to load the dictionary in the first place.
I've had a good look round the net, and found various suggestions, but no definitive answers, and i cant seem to get any of them to work.
If anyone has any suggestions on how best to do it, or even better some sample code, that would be brilliant.
Many Thanks
James
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
LatinIME src 代码中有一个
BinaryDictionary
此处。它使用以下方式加载字典:
我不知道您是否可以访问它,但请尝试一下。
There is a
BinaryDictionary
inside the LatinIME src code here.It loads the dictionary using:
I don't know if you can access it, but try it.