Skip to Content
Python文本分析
book

Python文本分析

by Jens Albrecht, Sidharth Ramachandran, Christian Winkler
August 2022
Intermediate to advanced
441 pages
11h 26m
Chinese
China Electric Power Press Ltd.
Content preview from Python文本分析
326
|
第
11
章
一个很明显的信息是:速度与规格描述的完全一致。启动时间长也有可能被当成是
一件好事,除非我们知道这是一个参数,而且越小越好。此外,情感分析的任务需
要针对文本数据类型选择不同的方法。例如,报纸上的文章是按照结构化的方式撰
写的,而推文和其他社交媒体的文本不仅结构松散,而且包含俚语和不正确的标点
符号。因此,我们没有适用每一种情况的统一解决方案。相反,我们只能介绍一系
列的解决方案,你可以使用它们来生成有效的情感分析结果。
11.1
本章内容概要
在本章中,我们将探索根据一段文本数据分析情感的多种技术。首先我们介绍最简
单的基于规则的技术,然后通过更复杂的方法进行情感分析,最后我们将学习使用
最先进的语言模型,如
Google
的
BERT
等。介绍这些技术可以提高我们对客户情感
的把握,并提供一系列可用于各种情况的解决方案。例如,你可以结合第
2
章介绍
的推特
API
,判断公众对于某种人格或某个政治问题的看法。你也可以在组织内使
用这些解决方案,分析客户投诉或客户支持邮件中的情绪,判断客户是否满意。
11.2
情感分析
文本包含了大量信息,根据交流的上下文,这些信息可以分成两种:客观文本和主
观文本。客观文本包含的是事实的陈述,就像教科书或维基百科文章。这些文本通
常只表述事实,不会表达观点或情绪。相反,主观文本会传达某人的反应,或包含
情绪、心情和感受。主观文本在社交媒体频道、推文或其他客户表达的观点(比如
产品评论)中很常见。我们进行情感研究,是为了理解人类通过文本媒介表达自己
时的心理状态。因此,情感分析在包含这类信息的主观文本上的效果最好,对于客 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

工程战略的制定

工程战略的制定

Will Larson
Python实用技能学习指南

Python实用技能学习指南

Posts & Telecom Press, Robert Smallshire, Austin Bingham
精益AI

精益AI

Lomit Patel
Excel金融建模

Excel金融建模

Posts & Telecom Press, Shmuel Oluwa

Publisher Resources

ISBN: 9787519864446