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)。 每个文件的每一行仅包含一个