nlp情感分析经典书籍推荐_通过无监督学习对书籍进行情感分析

nlp情感分析经典书籍推荐

A simple tutorial to analyse the sentiment of a book in Python

一个简单的教程,用Python分析一本书的情感

入门 (Getting Started)

In this tutorial, I will show you how to apply sentiment analysis to the text contained into a book through an Unsupervised Learning (UL) technique, based on the AFINN lexicon. This tutorial exploits the afinn Python package, which is available only for English and Danish. If your text is written into a different language, you could translate it before in English and use the afinn package.

在本教程中,我将向您展示如何基于AFINN词典通过无监督学习(UL)技术将情感分析应用于书中包含的文本。 本教程利用afinn Python软件包,该软件包仅适用于英语和丹麦语。 如果您的文字是用其他语言书写的,则可以先使用英语将其翻译,然后使用afinn软件包。

This notebook applies sentiment analysis the Saint Augustine Confessions, which can be downloaded from the Gutemberg Project Page. The masterpiece is split in 13 books (or chapters). We have stored each book into a different file, named number.text (e.g. 1.txt and 2.txt). Each line of every file contains just one sentence.

本笔记本对圣奥古斯丁自白进行了情感分析,可从Gutemberg Project Page下载。 杰作分为13本书(或章节)。 我们已经将每本书存储到一个名为number.text的不同文件中(例如1.txt和2.txt)。 每个文件的每一行仅包含一个

  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值