natural_language_processing_with_pytorch.pdf
(
15694 KB
)
Pobierz
Build Intelligent Language Applications Using
Deep Learning
Natural Language
Processing with PyTorch
Delip Rao and Brian McMahan
Beijing
Boston Farnham Sebastopol
Tokyo
Natural Language Processing with PyTorch
by Delip Rao and Brian McMahan
Copyright © 2019 Delip Rao and Brian McMahan. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://oreilly.com/safari). For more information, contact our corporate/insti‐
tutional sales department: 800-998-9938 or
corporate@oreilly.com.
Acquisition Editor:
Rachel Roumeliotis
Production Editor:
Nan Barber
Proofreader:
Rachel Head
Interior Designer:
David Futato
Illustrator:
Rebecca Demarest
February 2019:
First Edition
Development Editor:
Jeff Bleiel
Copyeditor:
Octal Publishing, LLC
Indexer:
Judy McConville
Cover Designer:
Karen Montgomery
Revision History for the First Edition
2019-01-16:
First Release
See
http://oreilly.com/catalog/errata.csp?isbn=9781491978238
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Natural Language Processing with
PyTorch,
the cover image, and related trade dress are trademarks of O’Reilly Media, Inc.
The views expressed in this work are those of the authors, and do not represent the publisher’s views.
While the publisher and the authors have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-491-97823-8
[LSI]
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
1.
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
The Supervised Learning Paradigm
Observation and Target Encoding
One-Hot Representation
TF Representation
TF-IDF Representation
Target Encoding
Computational Graphs
PyTorch Basics
Installing PyTorch
Creating Tensors
Tensor Types and Size
Tensor Operations
Indexing, Slicing, and Joining
Tensors and Computational Graphs
CUDA Tensors
Exercises
Solutions
Summary
References
2
5
6
7
8
9
10
11
13
13
16
17
19
22
24
26
26
27
27
29
32
33
34
iii
2.
A Quick Tour of Traditional NLP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Corpora, Tokens, and Types
Unigrams, Bigrams, Trigrams, …, N-grams
Lemmas and Stems
Categorizing Sentences and Documents
Plik z chomika:
Leniek
Inne pliki z tego folderu:
applied_text_analysis_with_python.pdf
(14326 KB)
architecting_modern_data_platforms.pdf
(18415 KB)
advanced_analytics_with_spark_2e.pdf
(5602 KB)
deep_learning_cookbook.pdf
(11915 KB)
graphing_data_with_r.pdf
(17256 KB)
Inne foldery tego chomika:
advanced_ai_by_morgan_claypool
ai_and_machine_learning_toolkit_by_morgan_and_claypool_publishers
applied_math_and_statistics_toolkit_by_morgan_and_claypool
applied_math_productivity_by_mercury
applied_mathematics_by_mercury
Zgłoś jeśli
naruszono regulamin