Hi Alex,
thank you for your kind helpfull suggestion.
After changing megam permissions through:
$chmod ugo+rx ~/nltk_data/megam_i686.opt
-rwxrwxr-x 1 ubuntu ubuntu 977748 Oct 8 2007 megam_i686.opt
The error changed from being "permission denied" to being "no such
file or directory":
[Found /home/ubuntu/nltk_data/megam_i686.opt:
/home/ubuntu/nltk_data/megam_i686.opt]
Traceback (most recent call last):
File "classifying.py", line 494, in <module>
me_classifier = MaxentClassifier.train(train_feats, algorithm='megam')
File "/usr/local/lib/python2.7/dist-packages/nltk/classify/maxent.py",
line 319, in train
gaussian_prior_sigma, **cutoffs)
File "/usr/local/lib/python2.7/dist-packages/nltk/classify/maxent.py",
line 1522, in train_maxent_classifier_with_megam
stdout = call_megam(options)
File "/usr/local/lib/python2.7/dist-packages/nltk/classify/megam.py",
line 167, in call_megam
p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Any other suggestions?
Thank you very much for your help.
Marco
2014/1/6 Alex Rudnick <
alex.r...@gmail.com>:
> --
> You received this message because you are subscribed to a topic in the Google Groups "nltk-users" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/nltk-users/X2nld28FYBw/unsubscribe.
> To unsubscribe from this group and all of its topics, send an email to
nltk-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.