从文本生成关键字的简单方法是什么? [英] What is a simple way to generate keywords from a text?

查看:105
本文介绍了从文本生成关键字的简单方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我可以拿一个文本并删除其中的高频英语单词.所谓关键字,是指我要提取出最能说明文本内容(标记)的单词.它不一定是完美的,一个很好的近似值可以满足我的需求.

I suppose I could take a text and remove high frequency English words from it. By keywords, I mean that I want to extract words that are most the characterizing of the content of the text (tags ) . It doesn't have to be perfect, a good approximation is perfect for my needs.

有人做过类似的事情吗?您知道这样做的Perl或Python库吗?

Has anyone done anything like that? Do you known a Perl or Python library that does that?

Lingua :: EN :: Tagger正是我所问的,但是我也需要一个可以处理法语文本的库.

Lingua::EN::Tagger is exactly what I asked however I needed a library that could work for french text too.

推荐答案

您可以尝试使用perl模块

You could try using the perl module Lingua::EN::Tagger for a quick and easy solution.

更复杂的模块 Lingua :: EN :: Semtags :: Engine 使用带有WordNet数据库的Lingua :: EN :: Tagger获得更结构化的输出.两者都很容易使用,安装模块后,只需查看CPAN上的文档或使用perldoc.

A more complicated module Lingua::EN::Semtags::Engine uses Lingua::EN::Tagger with a WordNet database to get a more structured output. Both are pretty easy to use, just check out the documentation on CPAN or use perldoc after you install the module.

这篇关于从文本生成关键字的简单方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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