Difference between revisions of "Python: siapkan nltk"

From OnnoWiki
Jump to navigation Jump to search
(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...")
 
 
Line 21: Line 21:
 
==Pranala Menarik==
 
==Pranala Menarik==
  
* [[Pyhton]]
+
* [[Python]]

Latest revision as of 10:54, 30 October 2018

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