PHP中有没有一个工具可以获取一个单词的所有派生词?
我需要输入“face”并得到“facial,faces,faced,faceing,facer,faceable”等。
我遇到过一些效果相反的无效程序,例如SNOWBALL和一些Porter Stemming PHP脚本,它们不似乎不起作用。
我开始认为我可能必须编写这个脚本 - 但是,我想我应该检查一下是否有人已经在那里/完成了该操作。
I need to input "face" and get "facial, faces, faced, facing, facer, faceable" etc.
I've come across some ineffective programs which do the opposite, such as SNOWBALL and a couple of Porter Stemming PHP scripts which don't seem to work.
I'm beginning to think I may have to write this script - But, I thought I'd check to see if somebody has already been there/done that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简单地找到一种算法来找到单词的不同书写方式是非常困难的。
您可以使用 字典网络服务 代替,它已经拥有所有可用的单词
It will be very hard to simply find an algorithm to find the different way a word can be written like that.
You can use a dictionary webservice instead that have all the words available already