Hi all,
I am beginner, I have just write a program that use nltk library.
In that program I use stopwords, and get it by command "stopwords.words('english')"
I run on linux Redhat 7.
When I call python from terminal, it is ok. (get stopwords ok)
But when I call python script from php (run on NGINX), that command (stopwords.words('english') not work. (use: exec, shell_exec, passthru)
Please help me to solve this problem.
Thanks,
My simple program like this:
import sys
from nltk.corpus import stopwords
try:
print(123)
# this not work when call python program from php (use: exec, shell_exec, passthru)
stops = set(stopwords.words('english'))
print(234)
except Exception as e:
print(e)
print(stops)
sys.exit(0)