PHP 中的 ISpRecoGrammar::IsPronounceable?
我试图找到一些可以测试字符串“发音能力”的东西,尽管我实际上怀疑是否有任何东西可以免费获得。
我实际上有点惊讶地发现微软有一个库。 http://msdn.microsoft.com/en-us /library/ms718902(VS.85).aspx
这让我思考,也许它确实存在于其他地方,或者也许有一些 soundex+foo 的合理组合,我可以将它们放在一起,从而奖励 BOOL 或“% RATING”可能会帮助我确定生成的字符串是否可以发音。
你会如何解决这个问题?困难:在 LAMP 系统上实现它(我希望我的网络服务器能够自动对 PINDEX 中的单词进行分类)。
编辑: 哦...发现了一些更酷的链接。 凉爽的! :)
http://www.addedbytes.com/code/flesch-kincaid-function /
EDIT2:
天哪!有一个可用的谷歌代码项目:
http://code.google.com/p /php-text-statistics/
如果我确实设法让它工作,我一定会跟进一个简短的教程。
I was trying to track down something that could test a string for "Pronounceability" and though I actually doubt there's anything that might be freely available.
I was actually a bit surprised to find that Microsoft has a library.
http://msdn.microsoft.com/en-us/library/ms718902(VS.85).aspx
This got me thinking, maybe it does exist elsewhere or maybe there's some reasonable combination of soundex+foo that I might be able to put together that would award either a BOOL or a "% RATING" that might help me determine if a generated string is pronounceable.
How would you tackle the problem? Difficulty: make it happen on a LAMP system (I'd like my web server to automatically categorize the PINDEX for the words).
EDIT:
oo... found some more cool links.
Cool! :)
http://www.addedbytes.com/code/flesch-kincaid-function/
how to check if a string looks randomized, or human generated and pronouncable?
EDIT2:
oh my! there is a google code project available:
http://code.google.com/p/php-text-statistics/
If I do manage to get it working, I'll be sure to follow up with a brief tutorial.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论