Skip to Content
Python计算机视觉和自然语言处理
book

Python计算机视觉和自然语言处理

by Posts & Telecom Press, Álvaro Morena Alberolaï, Gonzalo Molina Gallegoï, Unai Garay Maestreï
May 2024
Intermediate to advanced
274 pages
4h 17m
Chinese
Packt Publishing
Content preview from Python计算机视觉和自然语言处理

第4章 NLP神经网络

学习目标

阅读完本章之后,你将能够:

  • 解释循环神经网络的概念;
  • 设计并构建一个循环神经网络;
  • 评估非数值数据;
  • 评估各种最先进的RNN语言模型;
  • 基于时序数据进行数值预测。

本章介绍RNN的各个方面,对各种RNN模型进行解释、设计和构建。

如前一章所述,自然语言处理(NLP)是人工智能(AI)的一个领域,旨在让计算机理解和使用人类语言,从而执行有用的任务。如今,随着深度学习技术的进步,深度NLP成为一个新的研究领域。

那么,什么是深度NLP呢?深度NLP就是NLP技术与深度学习的结合。这两种技术的结合在以下领域中取得了较大的进展。

  • 语言学:语音转文本。
  • 工具:词性标注、实体识别、句法分析。
  • 应用:情感分析、问答系统、对话代理、机器翻译。

深度NLP中最重要的方法之一就是词语和句子的表示。词语可以表示为多维空间中的一个向量,且该平面同时包含很多其他词语的向量。根据两个词语之间相似度的不同,它们在平面上的距离也会有相应的大小。

图4.1所示为词嵌入的一个例子。词嵌入(word embedding)是一组将语料库中的词语和句子映射为向量或实数的技术和方法,可以根据每个词语出现的上下文来生成词语的表示,从而计算词语之间的相似度。例如,与“dog”一词最接近的词语如下:

  • Dogs;
  • Cat;
  • Cow;
  • Rat;
  • Bird。

图片 1

图4.1 词嵌入的一个例子

使用诸如Word2Vec之类的方法可以生成词嵌入,本书会在第7章中介绍Word2Vec。

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

Kafka权威指南(第2版)

Kafka权威指南(第2版)

Gwen Shapira, Todd Palino, Rajini Sivaram, Krit Petty
精益AI

精益AI

Lomit Patel
基于Azure的自动机器学习

基于Azure的自动机器学习

Deepak Mukunthu, Parashar Shah, Wee Hyong Tok
Spark机器学习实战

Spark机器学习实战

Posts & Telecom Press, Siamak Amirghodsi, Meenakshi Rajendran, Broderick Hall, Shuen Mei

Publisher Resources

ISBN: 9781836201175