Top "Nltk" questions

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

str.translate gives TypeError - Translate takes one argument (2 given), worked in Python 2

I have the following code import nltk, os, json, csv, string, cPickle from scipy.stats import scoreatpercentile lmtzr = nltk.stem.…

python nltk typeerror
wordnet lemmatization and pos tagging in python

I wanted to use wordnet lemmatizer in python and I have learnt that the default pos tag is NOUN and …

python nltk wordnet lemmatization
Tokenize a paragraph into sentence and then into words in NLTK

I am trying to input an entire paragraph into my word processor to be split into sentences first and then …

python nltk
Generating Ngrams (Unigrams,Bigrams etc) from a large corpus of .txt files and their Frequency

I need to write a program in NLTK that breaks a corpus (a large collection of txt files) into unigrams, …

python nltk
What is the best stemming method in Python?

I tried all the nltk methods for stemming but it gives me weird results with some words. Examples It often …

python nltk stemming
How to extract common / significant phrases from a series of text entries

I have a series of text items- raw HTML from a MySQL database. I want to find the most common …

nlp text-extraction nltk text-analysis
counting n-gram frequency in python nltk

I have the following code. I know that I can use apply_freq_filter function to filter out collocations that …

python nltk n-gram
How to use the a k-fold cross validation in scikit with naive bayes classifier and NLTK

I have a small corpus and I want to calculate the accuracy of naive Bayes classifier using 10-fold cross validation, …

python scikit-learn nltk cross-validation naivebayes
NLTK Named Entity recognition to a Python list

I used NLTK's ne_chunk to extract named entities from a text: my_sent = "WASHINGTON -- In the wake of …

python nlp nltk named-entity-recognition
How to get synonyms from nltk WordNet Python

WordNet is great, but I'm having a hard time getting synonyms in nltk. If you search similar to for the …

python nltk wordnet