Top "Nltk" questions

The Natural Language Toolkit is a Python library for computational linguistics.

Corpora/stopwords not found when import nltk library

I trying to import the nltk package in python 2.7 import nltk stopwords = nltk.corpus.stopwords.words('english') print(stopwords[:10]) Running …

python nltk
What is the difference between lemmatization vs stemming?

When do I use each ? Also...is the NLTK lemmatization dependent upon Parts of Speech? Wouldn't it be more accurate …

python nlp nltk lemmatization
Python can't find module NLTK

I followed these instructions http://www.nltk.org/install.html to install nltk module on my mac (10.6) I have installed …

python macos python-2.7 pip nltk
Computing N Grams using Python

I needed to compute the Unigrams, BiGrams and Trigrams for a text file containing text like: "Cystic fibrosis affects 30,000 children …

python nlp nltk n-gram
NLTK Lookup Error

While running a Python script using NLTK I got this: Traceback (most recent call last): File "cpicklesave.py", line 56, in &…

python python-2.7 nltk
NLTK python error: "TypeError: 'dict_keys' object is not subscriptable"

I am following instructions for a class homework assignment and I am supposed to look up the top 200 most frequently …

python nltk
Creating a new corpus with NLTK

I reckoned that often the answer to my title is to go and read the documentations, but I ran through …

python nlp nltk corpus
FreqDist with NLTK

NLTK in python has a function FreqDist which gives you the frequency of words within a text. I am trying …

python nlp nltk
Forming Bigrams of words in list of sentences with Python

I have a list of sentences: text = ['cant railway station','citadel hotel',' police stn']. I need to form bigram …

python list list-comprehension nltk collocation
Improving the extraction of human names with nltk

I am trying to extract human names from text. Does anyone have a method that they would recommend? This is …

python nlp nltk