Options
Excecute Python
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
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
Tagged:
0
Best Answer
-
Optionsjacobcybulski Member, University Professor Posts: 391 UnicornFirst 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).5