Python: siapkan nltk

From OnnoWiki
Revision as of 10:44, 30 October 2018 by Onnowpurbo (talk | contribs) (Created page with "Siapkan sudo apt install python-pip pip install nltk Buat script dl-data-nltk.py untuk download data vi dl-data-nltk.py import nltk nltk.download('stopwords') Jalank...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Siapkan

sudo apt install python-pip
pip install nltk

Buat script dl-data-nltk.py untuk download data

vi dl-data-nltk.py
import nltk
nltk.download('stopwords')

Jalankan

python dl-data-nltk.py

Data akan ada di

~/nltk-data/

Pranala Menarik