Community
cancel
Showing results for 
Search instead for 
Did you mean: 
BKish
Novice
2,002 Views

NLTK (Natural language processing) installation problems.

I am using Poky (Yocto Project Reference Distro) 1.7.2 in in my intel edison Arduino Breakout Board. I wanted to install NLTK tool kit in edison.

1. Installed nltk using pip

2. To download nltk_data., I am trying to import nltk but I get this info in the shell, can someone help me out with this problem,

"

>>> import nltk

Traceback (most recent call last):

File "", line 1, in

File "/usr/lib/python2.7/site-packages/nltk/__init__.py", line 137, in

from nltk.stem import *

File "/usr/lib/python2.7/site-packages/nltk/stem/__init__.py", line 29, in

from nltk.stem.snowball import SnowballStemmer

File "/usr/lib/python2.7/site-packages/nltk/stem/snowball.py", line 24, in

from nltk.corpus import stopwords

File "/usr/lib/python2.7/site-packages/nltk/corpus/__init__.py", line 66, in

from nltk.corpus.reader import *

File "/usr/lib/python2.7/site-packages/nltk/corpus/reader/__init__.py", line 105, in

from nltk.corpus.reader.panlex_lite import *

File "/usr/lib/python2.7/site-packages/nltk/corpus/reader/panlex_lite.py", line 15, in

import sqlite3

ImportError: No module named sqlite3

"

Also is the Yocko image that I am using is an old one? Is a new version available for 32 bit windows 7. Which is the best image someone can suggest to install in edison for building robots, AI and machine learning etc?

0 Kudos
5 Replies
idata
Community Manager
299 Views

Hi bhanukishan,

 

 

Thank you for contacting us.

 

 

I believe you're not using the latest Edison image. To check if you're using the latest image you can type cat /etc/version and you should receive 201606061707 as an output. The link to download the latest Edison image can be found here https://software.intel.com/en-us/iot/hardware/edison/downloads https://software.intel.com/en-us/iot/hardware/edison/downloads .

 

 

Between different images, there's not many different features that would make one better at building robots, machine learning etc. All images come with a predetermined functionality and doesn't differ much one from the other in terms of the features you need. If there's something extra you need to add to the image you can add it and build your own image. For this, I'd suggest you to look at the Edison BSP: http://www.intel.com/content/www/us/en/support/boards-and-kits/000005616.html http://www.intel.com/content/www/us/en/support/boards-and-kits/000005616.html .

 

 

Now, with the new image installed, try to install NLTK again and let us know if you're successful. You can try with the instructions from http://www.nltk.org/install.html http://www.nltk.org/install.html .

 

 

We'll be waiting for your response.

 

 

-Sergio

 

idata
Community Manager
299 Views

Hi bhanukishan,

 

 

Do you still need assistance with this case? Were you able to install NLTK?

 

 

-Sergio

 

BKish
Novice
299 Views

I still get the same issue. Its not getting installed. I am guessing "sqlite3" is the culprit. Can someone help on this issue please?

idata
Community Manager
299 Views

Hi bhanukishan,

 

 

We'll try to help you out in any way we can. I tried to install NLTK using the guide I posted above and using the latest image and didn't see any issues.

 

 

Run the following commands:

 

Cat /etc/version (you should see 201606061707 as an output. Please confirm this is what you receive)

 

pip install -U nltk pip install -U numpy python import nltk

 

 

This were the commands I used to install NLTK. Give it a try and let us know your results.

 

 

-Sergio

 

idata
Community Manager
299 Views

Hi bhanukishan,

 

 

Do you still need assistance with this case? Let us know the result of running the commands we recommended.

 

 

-Sergio

 

Reply