==Python NLTK(Natural Language Toolkit)==
[[Python][Python ライブラリ][自然言語処理]]
{{amazon|4873114705}}
===NLTK Bookコレクションのダウンロード===
>>> >>> import nltk >>> >>> nltk.download()
NLTK Downloader
---------------------------------------------------------------------------
---------------------------------------------------------------------------
====Download の選択後、list を選択====
Downloader> > d
Download which package (l=list; x=cancel)?
[ ] book................ Everything used in the NLTK Book
====book モジュールのダウンロード====
Downloader> > d book
Downloading collection 'book'
|
| Downloading package 'brown' to /home/piroto/nltk_data...
====book モジュールをロード====
>>> >>> from nltk.book import *
*** Introductory Examples for the NLTK Book ***
Loading text1, ..., text9 and sent1, ..., sent9
text9: The Man Who Was Thursday by G . K . Chesterton 1908
<<blockquote>>実際の使用例は、[自然言語処理]<</blockquote>>