Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

stuck in using Megam in Python ( nltk.classify.MaxentClassifier)

I'm using ubuntu x64, after two days and searching all the net, still i've not been able to install Megam, i've read all information in this page http://www.cs.utah.edu/~hal/megam/ and installed x64 version of o'calm from http://packages.ubuntu.com/precise/ocaml but when i want to use "megam" as a classifier in python, it says:

"NLTK was unable to find the megam file! Use software specific configuration paramaters or set the MEGAM environment variable.

could anybody tell me how can i install and make use of it in python?

i've downloaded "ocaml-3.12.1.tar.gz" but the "make" command doesn't work (as it's said in its readme). i've downloaded "megam_i686.opt" too, but it's not executable and i cannot run it

any help?

thanks in advance

like image 894
light-blue Avatar asked Jun 17 '12 14:06

light-blue


1 Answers

For the future users:

megam is now available on MAC through brew:

$brew tap homebrew/science
$brew install megam
like image 117
pg2455 Avatar answered Sep 21 '22 20:09

pg2455