Quantcast
Channel: Active questions tagged nltk - Stack Overflow
Browsing all 82 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

WinError 10061 : NLTK - No connection could be made because the target...

I want to download stopwords and punkt using the syntax:nltk.download('stopwords')nltk.download('punkt')But it always throws me an errorI have tested all possible method but the problem persist.

View Article



nltk library is not running methods on JupyterLab

I am trying to import nltk and use the method ".words" on JupyterLab. I had some difficulty trying to import the nltk library but I managed to download it using "nltk.download()". However, when Ino...

View Article

Why am I getting incorrect response from my chatbot (ChatterBot)?

When I ask for "Contact Details", the chatbot replies for "Admission Details".What is wrong? How do I fix it?Python code:from chatterbot.trainers import ListTrainerfrom chatterbot.trainers import...

View Article

nltk.download('vader_lexicon') failed

I'm using databrick notebook for Sentiment Analysis I'm using the below code for downloading "vader_lexicon" using nltk but it giving false in root path.import nltkfrom nltk import...

View Article

LookupError in NLTK for WordNet Lemmatizer Despite Successful Download of...

I am working on a text processing task in a Kaggle notebook and facing a LookupErrorwhen using NLTK's WordNetLemmatizer. Despite my efforts to download the required NLTK resources, the error continues...

View Article


I am having trouble downloading nltk's punkt tokenizer

I'm trying to download punkt, but I'm getting the following error...>>> import nltk>>> nltk.download('punkt')>>> [nltk_data] Error loading punkt: <urlopen error [SSL]...

View Article

How to remove stop words using nltk or python

I have a dataset from which I would like to remove stop words.I used NLTK to get a list of stop words:from nltk.corpus import stopwordsstopwords.words('english')Exactly how do I compare the data to the...

View Article

Image may be NSFW.
Clik here to view.

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 error message. How to solve this problem? Thanks.The system I used is Ubuntu installed...

View Article


NLTK vs Stanford NLP

I have recently started to use NLTK toolkit for creating few solutions using Python.I hear a lot of community activity regarding using Stanford NLP.Can anyone tell me the difference between NLTK and...

View Article


What is the benefit of NLP sentence segmentation over Python algorithm?

I have a task in NLP to do a sentence segmentation, but I wonder, what are the advantages of using built-in NLP sentence segmentation algorithms, such as Spacy, NLTK, BERT etc., over Python '.'...

View Article

POS-Tagger is incredibly slow

I am using nltk to generate n-grams from sentences by first removing given stop words. However, nltk.pos_tag() is extremely slow taking up to 0.6 sec on my CPU (Intel i7).The output:['The first time I...

View Article

Image may be NSFW.
Clik here to view.

error installing nltk supporting packages : nltk.download()

I have installed the nltk package. Following that I am trying to download the supporting packages using nltk.download() and am getting error:[Errno 11001] getaddrinfo My machine / software details...

View Article

How to find similar sounding words?

I'm writing a specialized (in food realm) multi-lingual search engine.I use python and nltk libraries.I have quite a big database of recipes for all cultures I want to support.I'm asking if and how it...

View Article


NLTK lemmatizer received error BadZipFile: File is not a zip file

I am trying to use the lemmatizer from NLTK package but I had this error:Traceback (most recent call last): File /opt/anaconda3/lib/python3.8/site-packages/spyder_kernels/py3compat.py:356 in...

View Article

Low alpha for NLTK agreement using MASI distance

I'm getting a very low value for Krippendorff's alpha when I calculate agreement in NLTK using MASI as the distance function.Three coders (Inky, Blinky, and Sue) are instructed to assign topic labels...

View Article


Image may be NSFW.
Clik here to view.

Dictionary of terms index and posting list compression

I'm studying and developing a simple information retrieval system base on the book "Introduction to information retrieval" and there are two topic about the dictionary and posting list compression that...

View Article

NLTK's sentence_nist() returns ZeroDivisionError when the hypothesis &...

NLTK's sentence_nist() returns ZeroDivisionError when the hypothesis & reference are the same. Here is my code:from nltk.translate.nist_score import sentence_nistref_test = '太少'hypo_test =...

View Article


Are nltk.corpus.wordnet and nltk.corpus.reader.wordnet different?

I'm looking at a G4G page about wordnet, and see from nltk.corpus import wordnet. So I'm trying things out, but want to look at the documentation and see the methods etc. available, but can't seem to...

View Article

Change name of any state, county, regions, or their abbreviations to country...

I have a list of locations that is mixed with states, cities and countries, counties and regions, in abbreviations and some in full. For instance, NY, CA, England, UK, USA, Minnesota, London, Bradford,...

View Article

Change nltk.download() path directory from default ~/ntlk_data

I was trying to download/update python nltk packages on a computing server and it returned this [Errno 122] Disk quota exceeded: error.Specifically:[nltk_data] Downloading package stop words to...

View Article
Browsing all 82 articles
Browse latest View live




Latest Images