nltk Questions
2
Solved
First of all I am using Google colab for the work and
I have downloaded nltk stopwords for English with following:
nltk.download('stopwords')
The download was successful
[nltk_data] Downloading...
Lynch asked 14/12, 2018 at 2:56
3
I am a beginner at Python and am trying to use nltk.sentiment.vader but get a recurrent error message despite multiple attempts to fix it. I previously installed most of NTLK (3 modules were out of...
6
So, I was trying to code a chatbot using Pytorch following this tutorial.
Code: (Minimal, Reproducible one)
tags = []
for intent in intents['intents']:
tag = intent['tag']
tags.append(tag)
tags ...
9
Is there a ready-to-use English grammar that I can just load it and use in NLTK? I've searched around examples of parsing with NLTK, but it seems like that I have to manually specify grammar ...
2
Solved
Can Python-NLTK recognize input string and parse it not only based on white space but also on the content? Say, "computer system" became a phrases in this situation. Can anyone provide a sample cod...
3
Solved
I have a list of all the nouns in WordNet. I want to remove all the nouns that are not vehicles. How do I do it? Below is the pseudo-code I want to make, but I do not know how to make it work:
for ...
1
Running this code block on google colab. "import nltk" is causing the issue.
Error Statement:
/usr/local/lib/python3.10/dist-packages/numpy/testing/_private/utils.py in <module>
55...
Someplace asked 9/11, 2023 at 6:45
8
I used nltk in my code for a few days, but now, when I try to import nltk, I get the error:
File "C:\Users\Nada\Anaconda\lib\site-packages\nltk\corpus\reader\plaintext.py", line 42, in PlaintextCo...
Camaraderie asked 20/8, 2017 at 19:31
2
Solved
I have a pandas dataframe where one column is a bunch of strings with certain travel details. My goal is to parse each string to extract the city of origin and destination city (I would like to ult...
15
Solved
When do I use each ?
Also...is the NLTK lemmatization dependent upon Parts of Speech?
Wouldn't it be more accurate if it was?
Clinquant asked 24/11, 2009 at 0:48
3
Solved
I just started my first NLTK project and am confused about the proper setup. I need several resources like the Punkt Tokenizer and the maxent pos tagger. I myself downloaded them using the GUI nltk...
4
I use NLTK with wordnet in my project. I did the installation manually on my PC, with pip:
pip3 install nltk --user in a terminal, then nltk.download() in a python shell to download wordnet.
I wan...
Jerol asked 7/11, 2014 at 11:7
15
Solved
I get the following error when trying to install Punkt for nltk:
nltk.download('punkt')
[nltk_data] Error loading Punkt: <urlopen error [SSL:
[nltk_data] CERTIFICATE_VERIFY_FAILED] certifica...
Physicalism asked 12/8, 2016 at 11:4
3
I have tried importing nltk module using notebook (Juypter) but its keep showing the error.
ImportError Traceback (most recent call last)
<ipython-input-1-b06499430ee0> in <module>()
...
Arterio asked 19/6, 2016 at 14:59
6
Solved
I have read multiple posts regarding this error, but I still can't figure it out. When I try to loop through my function:
def fix_Plan(location):
letters_only = re.sub("[^a-zA-Z]", # Sea...
4
Solved
This is a follow-up of my question. I am using nltk to parse out persons, organizations, and their relationships. Using this example, I was able to create chunks of persons and organizations; howev...
8
Solved
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...
Nanete asked 1/7, 2017 at 4:42
11
Solved
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 detai...
Fathometer asked 3/1, 2015 at 0:51
4
Solved
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...
Innoxious asked 12/11, 2015 at 16:32
8
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 ...
Snake asked 13/10, 2016 at 3:36
9
Solved
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 ins...
Engel asked 26/12, 2014 at 14:35
14
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 stopwords
stopwords.words('english')
Exactly how do I compare the d...
Haldas asked 30/3, 2011 at 12:36
9
I followed these instructions http://www.nltk.org/install.html to install nltk module on my mac (10.6)
I have installed python 2.7, but when I open IDLE and type import nltk it gives me this error
...
Squeak asked 14/1, 2015 at 16:9
4
Using NLTK 2.0.4. installed for EPD's Python-2.7.3 (not Canopy). on Ubuntu 12.10. In the terminal I type:
In [96]: nltk.download_shell()
NLTK Downloader
-------------------------------------------...
4
Solved
I want to use stopwords in my code on google colab, there are no errors when I import stuff regarding nltk but when I use stopwords in my code google colab gives this error:-
Resource 'corpora/sto...
Trulatrull asked 3/3, 2018 at 15:18
1 Next >
© 2022 - 2024 — McMap. All rights reserved.