在 Windows 上为 NLTK 安装 megam
Installing megam for NLTK on Windows
我需要为 Python 中的 nltk 分类例程安装 megam。
我遵循了 this post:
的 Milk Magic 的指示
0. 从 http://www.umiacs.umd.edu/~hal/megam/index.html
下载 megam 源
1. 安装带有 gcc、make 和 ocaml 包的 cygwin
2. 修改了makefile
3. 当尝试使用 makefile 编译 megam 时,我收到以下内容的错误
make
ocamldep *.mli *.ml > .depend
ocamlc -g -custom -o megam str.cma -cclib -lcamlstr bigarray.cma -cclib -lbigarray unix.cma -cclib -lunix -I /lib/ocaml/caml fastdot_c.c fastdot.cmo intHashtbl.cmo arry.cmo util.cmo data.cmo bitvec.cmo cg.cmo wsemlm.cmo bfgs.cmo pa.cmo perceptron.cmo radapt.cmo kernelmap.cmo abffs.cmo main.cmo
sh: flexlink: command not found
File "fastdot_c.c", line 1:
Error: Error while building custom runtime system
make: *** [Makefile:101: megam] Error 2
你知道问题出在哪里吗?
也许有人最近解决了同样的问题,可以提供帮助。
因为错误是
sh: flexlink: command not found
您需要找到包含它的包
$ cygcheck -p flexlink
Found 5 matches for flexlink
flexdll-0.34-1 - flexdll: Creates DLLs with runtime symbol resolution (installed binaries and support files)
flexdll-0.35-1 - flexdll: Creates DLLs with runtime symbol resolution (installed binaries and support files)
flexdll-0.35-2 - flexdll: Creates DLLs with runtime symbol resolution
...
所以需要安装flexdll包。
$ cygcheck -l flexdll |grep bin
/usr/bin/flexlink
我需要为 Python 中的 nltk 分类例程安装 megam。
我遵循了 this post:
的 Milk Magic 的指示
0. 从 http://www.umiacs.umd.edu/~hal/megam/index.html
下载 megam 源
1. 安装带有 gcc、make 和 ocaml 包的 cygwin
2. 修改了makefile
3. 当尝试使用 makefile 编译 megam 时,我收到以下内容的错误
make
ocamldep *.mli *.ml > .depend ocamlc -g -custom -o megam str.cma -cclib -lcamlstr bigarray.cma -cclib -lbigarray unix.cma -cclib -lunix -I /lib/ocaml/caml fastdot_c.c fastdot.cmo intHashtbl.cmo arry.cmo util.cmo data.cmo bitvec.cmo cg.cmo wsemlm.cmo bfgs.cmo pa.cmo perceptron.cmo radapt.cmo kernelmap.cmo abffs.cmo main.cmo
sh: flexlink: command not found
File "fastdot_c.c", line 1:
Error: Error while building custom runtime system make: *** [Makefile:101: megam] Error 2
你知道问题出在哪里吗?
也许有人最近解决了同样的问题,可以提供帮助。
因为错误是
sh: flexlink: command not found
您需要找到包含它的包
$ cygcheck -p flexlink
Found 5 matches for flexlink
flexdll-0.34-1 - flexdll: Creates DLLs with runtime symbol resolution (installed binaries and support files)
flexdll-0.35-1 - flexdll: Creates DLLs with runtime symbol resolution (installed binaries and support files)
flexdll-0.35-2 - flexdll: Creates DLLs with runtime symbol resolution
...
所以需要安装flexdll包。
$ cygcheck -l flexdll |grep bin
/usr/bin/flexlink