September 17, 2011

Python, NLTK dan Perangkat Pendukungnya

Tugas 1 Information Retrieval

1. Import NLTK

2. Proses Download NLTK

3. Hasil dari:
from nltk.book import *

4. Hasil dari:
fdist1 = FreqDist(text1)
vocabulary = fdist.keys()
vocabulary[:50]


5. Hasil dari:
vocabulary['whale']

0 comments:

Post a Comment