我想做一些类似gmail的“考虑包括”我的博客上的建议,但带有标签。Gmail如何实施“考虑包括”功能?
我想存储标签的设置是这样的:
,我认为以下算法:
//a blog post is published
//it has the tags "A", "B" & "C" :
if the tag set "A,B,C" doesn't exist
create it
else
add 1 to "number of times used"
,并建议标签:
//a blog post is being written.
//the author includes the tags "A" and "C"
//which tags should I suggest ?
find all the tags sets that contain "A" and "C"
among them, find the one with the highest "number of times used"
suggest the tags of the set not already picked (A & C)
有一个更好/更聪明的方式来完成这项任务?数据库模型呢?我可以优化它,使像“包含A & C”的搜索不会太慢吗?
“建议朋友使用内隐社会图表”http://research.google.com/pubs/pub36371.html – 2012-02-14 15:50:56
哇,很好:D – Manu 2012-02-14 17:14:37