Top "Nltk" questions

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

Ordinal numbers replacement

I am currently looking for the way to replace words like first, second, third,...with appropriate ordinal number representation (1st, 2…

python nlp nltk ordinals
Practical examples of NLTK use

I'm playing around with the Natural Language Toolkit (NLTK). Its documentation (Book and HOWTO) are quite bulky and the examples …

python nlp nltk
downloading error using nltk.download()

I am experimenting NLTK package using Python. I tried to downloaded NLTK using nltk.download(). I got this kind of …

python python-2.7 ubuntu nltk spyder
Python NLTK: Bigrams trigrams fourgrams

I have this example and i want to know how to get this result. I have text and I tokenize …

python nltk n-gram
NLTK WordNet Lemmatizer: Shouldn't it lemmatize all inflections of a word?

I'm using the NLTK WordNet Lemmatizer for a Part-of-Speech tagging project by first modifying each word in the training corpus …

python nlp nltk
how to use spacy lemmatizer to get a word into basic form

I am new to spacy and I want to use its lemmatizer function, but I don't know how to use …

python nltk spacy lemmatization
Generate bigrams with NLTK

I am trying to produce a bigram list of a given sentence for example, if I type, To be or …

python nltk n-gram
What is NLTK POS tagger asking me to download?

I just started using a part-of-speech tagger, and I am facing many problems. I started POS tagging with the following: …

python nlp nltk pos-tagger
How do I do dependency parsing in NLTK?

Going through the NLTK book, it's not clear how to generate a dependency tree from a given sentence. The relevant …

python nlp grammar nltk