Hands-On Natural Language Processing with PyTorch 1.x by Thomas Dop
Author:Thomas Dop
Language: eng
Format: epub
Publisher: Packt Publishing Pvt Ltd
Published: 2020-07-09T00:00:00+00:00
Let's get started!
Technical requirements
All the code for this chapter can be found at https://github.com/PacktPublishing/Hands-On-Natural-Language-Processing-with-PyTorch-1.x.
Exploring CNNs
The basis for CNNs comes from the field of computer vision but can conceptually be extended to work on NLP as well. The way the human brain processes and understands images is not on a pixel-by-pixel basis, but as a holistic map of an image and how each part of the image relates to the other parts.
A good analogy of CNNs would be how the human mind processes a picture versus how it processes a sentence. Consider the sentence, This is a sentence about a cat. When you read that sentence you read the first word, followed by the second word and so forth. Now, consider a picture of a cat. It would be foolish to assimilate the information within the picture by looking at the first pixel, followed by the second pixel. Instead, when we look at something, we perceive the whole image at once, rather than as a sequence.
For example, if we take a black and white representation of an image (in this case, the digit 1), we can see that we can transform this into a vector representation, where the color of each pixel is denoted by a 0 or a 1:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8305)
Test-Driven Development with Java by Alan Mellor(6763)
Data Augmentation with Python by Duc Haba(6677)
Principles of Data Fabric by Sonia Mezzetta(6425)
Learn Blender Simulations the Right Way by Stephen Pearson(6324)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6197)
Hadoop in Practice by Alex Holmes(5964)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5811)
RPA Solution Architect's Handbook by Sachin Sahgal(5594)
Big Data Analysis with Python by Ivan Marin(5380)
The Infinite Retina by Robert Scoble Irena Cronin(5285)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5153)
Pretrain Vision and Large Language Models in Python by Emily Webber(4347)
Infrastructure as Code for Beginners by Russ McKendrick(4111)
Functional Programming in JavaScript by Mantyla Dan(4041)
The Age of Surveillance Capitalism by Shoshana Zuboff(3960)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3823)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3627)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3601)
