🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Excecute Python

User: "DDresen"
New Altair Community Member
Updated by Jocelyn
Hey there, 

I'm trying to run a python script to make use of pythons spelling correction feature via textblob. Everytime I get this error message 
it looks to me that rapidminer searches the wrong path for the needed files. How do I change those?  Or is anything else the problem? Because I double checked if I installed the necessary files and like I thought everything needed is provided

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "jacobcybulski"
    New Altair Community Member
    Accepted Answer
    First of all make sure that RapidMiner executes the correct Python, e. g. you may normally be running Python from an environment while your RM may be configured to run a global Python. If so set the location of your preferred Python in RM settings. When you run RM on a Linux it will use global profile (for Java) and not your personal profile, so either put the environment variable NLTK_DATA in /etc/profile. You can also define NLTK_DATA variable in the RM script yourself (beware that it may get wiped out when you update RM), which is what I have done with the settings for CUDA. Finally, if you can specify within Python where is your download directory, e.g. nltk.download('xyz', download_dir=mypath).