以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 Semantic Web(语义Web)/描述逻辑/本体 』 (http://bbs.xml.org.cn/list.asp?boardid=2) ---- [求助]在wordnet中如何求词与词之间的距离? (http://bbs.xml.org.cn/dispbbs.asp?boardid=2&rootid=&id=78184) |
-- 作者:冬雨 -- 发布时间:11/12/2009 9:19:00 PM -- [求助]在wordnet中如何求词与词之间的距离? 想通过词与词的距离计算词的相似值,只知道词之间的关系可以用指针表示,这距离应该用什么表示呢? 只要得到两个词之间的最短路径就可以了 [此贴子已经被作者于2009-11-12 22:17:09编辑过]
|
-- 作者:冬雨 -- 发布时间:11/13/2009 10:45:00 AM -- 论坛里有人知道吗,或者有相关的资料也可以? |
-- 作者:lsp_jlu -- 发布时间:11/13/2009 2:55:00 PM -- 关于这个问题可参考NLTK中的关于Wordnet的Api说明,链接为: http://nltk.googlecode.com/svn/trunk/doc/api/index.html ———————————————————————————————————— hypernym_distances(self, distance=0) Get the path(s) from this synset to the root, counting the distance of each node from the initial node on the way. source code shortest_path_distance(self, other) Returns the distance of the shortest path linking the two synsets (if one exists). |
-- 作者:冬雨 -- 发布时间:11/15/2009 10:33:00 AM -- 问题基本得以解决,谢谢第3楼的提醒! |
-- 作者:Humphrey -- 发布时间:11/15/2009 2:51:00 PM -- WordNet RDF/OWL版本也同样遵循这个规则吗?可是看不出RDF文档中如何使用WordNet的API啊。那么就得靠推理引擎了? |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
125.000ms |