Skip to Content
ゼロから作るDeep Learning ❷ ―自然言語処理編
book

ゼロから作るDeep Learning ❷ ―自然言語処理編

by 斎藤 康毅
July 2018
Beginner to intermediate
432 pages
5h 58m
Japanese
O'Reilly Japan, Inc.
Content preview from ゼロから作るDeep Learning ❷ ―自然言語処理編

2章自然言語と単語の分散表現

マーティ:「これはヘビーだ」

ドク:「未来ではそんなに物が重いのか?」

——映画『バック・トゥ・ザ・フューチャー』

これからいよいよ自然言語処理の世界へ足を踏み入れます。自然言語処理が扱う分野は多岐にわたりますが、その本質的問題は、コンピュータに私たちの言葉を理解させることにあります。本章では、コンピュータに言葉を理解させるとはどういうことか、そしてどのようなアプローチが存在するのか、ということを中心に考察を進めます。特に古典的な手法——ディープラーニング登場以前の手法——について詳しく見ていきます。そして次章から、ディープラーニング(正確にはニューラルネットワーク)をベースとした手法へと進みます。

また、本章ではテキストをPythonで扱う練習も行います。テキストを単語に分割する処理や、単語を単語IDに変換する処理などを実装します。そして本章で実装する関数は、次章以降でも利用します。つまり本章は、これから先のテキスト処理の下準備も兼ねています。それでは、自然言語処理の世界へと進みましょう!

2.1 自然言語処理とは

日本語や英語など、私たちが普段使っている言葉を自然言語(Natural Language)と言います。自然言語処理(Natural Language Processing:NLP)とは、文字どおり解釈すれば、「自然言語を処理する分野」ということになります。これは分かりやすく言うと、「私たちの言葉をコンピュータに理解させるための技術(分野)」ということです。つまり、自然言語処理の目標とすることは、人の話す言葉をコンピュータに理解させ、私たちにとって役に立つことをコンピュータに行わせることにあるのです。

ところで、コンピュータが理解できる言語というと、「プログラミング言語」や「マークアップ言語」のようなものを思い浮かべるかもしれません。それらの言語は、コードの意味が一意に解釈できるように文法が定義されており、コンピュータは決まったルールに従ってコードを解析します。 ...

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

ゼロから作るDeep Learning ❺ ―生成モデル編

ゼロから作るDeep Learning ❺ ―生成モデル編

斎藤 康毅

Publisher Resources

ISBN: 9784873118369Other