- Hands-On Natural Language Processing with Python
- Rajesh Arumugam Rajalingappaa Shanmugamani
- 141字
- 2021-08-13 16:01:43
Installing NLTK and its modules
Before getting started with the examples, we will set the system up with NLTK and other dependent Python libraries. The pip installer can be used to install NLTK, with an optional installation of numpy, as follows:
sudo pip install -U nltk
sudo pip install -U numpy
The NLTK corpora and various modules can be installed by using the common NLTK downloader in the Python interactive shell or a Jupyter Notebook, shown as follows:
import nltk
nltk.download()
The preceding command will open an NLTK Downloader, as follows. Select the packages or collections that are required:

As shown in the preceding screenshot, specific collections, text corpora, NLTK models, or packages, can be selected and installed. Navigate to stopwords and install it for future use. The following is a list of modules that are required for this chapter's examples:

- 軟件架構(gòu)設(shè)計(jì):大型網(wǎng)站技術(shù)架構(gòu)與業(yè)務(wù)架構(gòu)融合之道
- C語(yǔ)言程序設(shè)計(jì)基礎(chǔ)與實(shí)驗(yàn)指導(dǎo)
- 數(shù)據(jù)庫(kù)系統(tǒng)原理及MySQL應(yīng)用教程
- MariaDB High Performance
- 信息技術(shù)應(yīng)用基礎(chǔ)
- Visual FoxPro程序設(shè)計(jì)
- MATLAB for Machine Learning
- Natural Language Processing with Java and LingPipe Cookbook
- Backbone.js Testing
- C# 7.1 and .NET Core 2.0:Modern Cross-Platform Development(Third Edition)
- Mastering OpenStack
- ArcPy and ArcGIS(Second Edition)
- 每個(gè)人的Python:數(shù)學(xué)、算法和游戲編程訓(xùn)練營(yíng)
- JSP大學(xué)實(shí)用教程
- C#從入門到精通(微視頻精編版)