根据给定文本自动创建标题
我正在尝试编写一个程序,当给出一篇文章(通常是摘要)时,它会给出一个恰当的标题。有没有可用的标准算法?
I am trying to write a program that will give an apt title when an article is give ( usually an abstract). Is there any standard algorithm available?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果你想手动完成,你必须从词频计数之类的东西开始,然后分析经常出现的短语或相互出现的单词。我只在 Java 中简单地触及了这个主题,但似乎有一本关于 Python 的好书涉及文本分析:
Text用Python处理
OpenFTS,一个开放的全文搜索引擎,有一个Python接口,称为[PyFTS]。3
看看。也许这就是你想要的。
If you want to do it by hand, you'd have to start with something like word frequency counting, then analyzing phrases that appear a lot or words that appear around each other. I have only briefly touched this topic in Java, but there seems to be a good book for Python that deals with text analysis:
Text Processing in Python
OpenFTS, an open full text search engine has a Python interface, called [PyFTS].3
Check it out. Maybe that's what you want.