Top "Nltk" questions

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

Error using Stanford POS Tagger in NLTK Python

I am trying to use Stanford POS Tagger in NLTK but I am not able to run the example code …

python-2.7 nltk stanford-nlp pos-tagger
Extracting nationalities and countries from text

I want to extract all country and nationality mentions from text using nltk, I used POS tagging to extract all …

python nlp nltk pos-tagger
Attribute error while using scikit-learn

I am trying to find similar questions using scikit using cosine similarity. I was trying this sample code available on …

python nltk scikit-learn feature-extraction
ImportError: cannot import name porter python

I am importing nltk library in my project and it is giving following error. If someone has same error, please …

python installation nlp nltk porter-stemmer
Extracting names from a text file using Spacy

I have a text file which contains lines as shown below: Electronically signed : Wes Scott, M.D.; Jun 26 2010 11:10AM CST …

python-3.x nlp nltk spacy data-extraction
What is the connection or difference between lemma and synset in wordnet?

I am a complete beginner to NLP and NLTK. I was not able to understand the exact difference between lemmas …

python nlp nltk wordnet
NLTK - Convert a chunked tree into a list (IOB tagging)

I need to perform Named Entity Recognition / Classification, and generate output in IOB tagged format. I'm using a NLTK chunker, …

nltk nltk-trainer
WordNetLemmatizer not returning the right lemma unless POS is explicit - Python NLTK

I'm lemmatizing the Ted Dataset Transcript. There's something strange I notice: Not all words are being lemmatized. To say, selected …

python nlp nltk wordnet lemmatization
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 0: unexpected end of data

I'm writing a code for stemming a tweet, but I'm having issues with encoding. When I tried to apply porter …

python unicode nltk decode tweetstream
How to Traverse an NLTK Tree object?

Given a bracketed parse, I could convert it into a Tree object in NLTK as such: >>> from …

parsing tree nlp nltk depth-first-search