从上下文生成 Rails 动态标签 [英] Rails Dynamic tag generation from context

查看:34
本文介绍了从上下文生成 Rails 动态标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我想对网站上发布的所有评论进行趋势分析并创建动态标签.例如,如果有 x 条评论包含单词 iPad,我想自动创建一个名为iPad"的标签并将其放入标签云中.

Let's say I want to trend all comments posted on a site and create dynamic tags. For example, If there are x number of comments that contain the word iPad I would like to create automatically create a tag called "iPad" and put it in a tag cloud.

这可能吗?我检查了acts_as_taggable gem,但它需要一个来指定标签,我想我正在寻找一种从内容生成标签的方法.

Is this possible? I checked out the acts_as_taggable gem but it requires one to specify a tag, I guess I am looking for a way to generate tags from content.

推荐答案

嗯,像 yahoo 术语提取服务这样的东西可能会起作用,并且有一个插件 http://expressica.com/auto_tags/.

Well something like the yahoo term extraction service might do the trick and there is a plugin for it http://expressica.com/auto_tags/.

虽然不用于商业用途.

这篇关于从上下文生成 Rails 动态标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆