Java 拼写检查和自动完成
我使用 Jazzy 将拼写检查添加到我们公司使用的类似电子表格的程序中。对于通常带有拼写错误的完整单词来说,它似乎效果很好。但有一种情况它根本不能很好地处理,这在我们处理的数据中也很常见:截断的单词。
最初我以为单词列表可能不完整,但后来我意识到它正在对整个单词进行“听起来像”风格的比较。有没有办法获得自动完成的拼写建议以及常规建议?
如果我能坚持使用 Jazzy 那就太好了,但它对我们来说是一个足够重要的功能,如果需要的话我会从其他东西开始。我找到了大量有关 Solr 自动完成的信息,但看起来不太适合桌面应用程序的上下文。
I've added spell checking to a spreadsheet-like program used at our company using Jazzy. It seems to be working well for the usual complete words with typos. There's a case it doesn't handle well at all though, which is also fairly common in the data we work with: truncated words.
Initially I thought maybe the word list was incomplete, but then I realized that it's doing a "sounds-like" style comparison of whole words. Is there any way to get auto-complete spelling suggestions along with the regular suggestions?
It'd be nice if I could stick with Jazzy but it's an important enough feature for us that I'll start over with something else if that's what's required. I've found a fair amount of info about autocomplete with Solr but it doesn't look like that would be a good fit in the context of a desktop application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Solr 基于 Lucene,Lucene 是一个库,因此可以很好地集成到桌面应用程序中。 PrefixQuery 可用于快速自动-完成。
Solr is based on Lucene which is a library and can thus nicely be integrated into a desktop app. PrefixQuery can be used for fast auto-completion.