Top "Nltk" questions

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

BLEU scores:could I use nltk.translate.bleu_score.sentence_bleu for calculating scores of bleu in chinese

If I have chinese word list: like reference = ['我', '是', '好' ,'人'], hypothesis = ['我', '是…

python-2.7 nltk bleu
How to get PMI scores for trigrams with NLTK Collocations? python

I know how to get bigram and trigram collocations using NLTK and I apply them to my own corpora. The …

python nlp nltk collocation
Python: NLTK and TextBlob in french

I'm using NLTK and TextBlob to find nouns and noun phrases in a text: from textblob import TextBlob import nltk …

python nltk textblob
Sum up the number of words frequency using FreqDist, python

How to sum up the number of words frequency using fd.items() from FreqDist? >>> fd = FreqDist(text) &…

python nltk frequency-distribution
Using WN-Affect to detect emotion/mood of a string

I downloaded WN-Affect. I am however not sure how to use it to detect the mood of a sentence. For …

python nlp nltk wordnet
How to get n-gram collocations and association in python nltk?

In this documentation, there is example using nltk.collocations.BigramAssocMeasures(), BigramCollocationFinder,nltk.collocations.TrigramAssocMeasures(), and TrigramCollocationFinder. There is example method …

python nlp nltk n-gram collocation
TF*IDF for Search Queries

Okay, so I have been following these two posts on TF*IDF but am little confused : http://css.dzone.com/…

python nlp nltk scikit-learn tf-idf
How Can I Add More Languages to Stopwords in NLTK?

I'm using NLTK with stopwords to detect the language of a document using the method described by Alejandro Nolla at …

python nlp nltk stop-words
How to test whether a word is in singular form or not in python?

I am trying to get whether a word is in singular form or in plural form by using nltk pos_…

python-2.7 nlp nltk wordnet
NLTK - how to find out what corpora are installed from within python?

I'm trying to load some corpora I installed with the NLTK installer but I got a: >>> from …

python nlp nltk corpus