简体   繁体   English

槌子不被识别为内部或外部命令

[英]Mallet is not recognized as internal or external command

I am using windows 7. I installed Mallet and it works perfectly when I go to the Mallet directory. 我正在使用Windows7。我安装了Mallet,当我转到Mallet目录时,它可以完美地工作。 However, I am using some python software that calls it ( https://github.com/uwgraphics/VEP_TMScripts ) and I get the above referenced error. 但是,我正在使用一些调用它的python软件( https://github.com/uwgraphics/VEP_TMScripts ),并且出现了上面引用的错误。 How do I install it so it is accessible from my system path. 如何安装它,以便可以从我的系统路径访问它。 I tried to add it to the path and that did not work.. Any ideas would be greatly appreciated! 我试图将其添加到路径中,但没有用。任何想法都将不胜感激! Thank you! 谢谢!

Sincerely, 真诚的

tom 汤姆

For Windows you may need to set the environment variable %MALLET_HOME% to point to the MALLET directory in order for the mallet.bat command to work. 对于Windows,您可能需要将环境变量%MALLET_HOME%设置为指向MALLET目录,以使mallet.bat命令起作用。

Calling Mallet from a python process might require you to set a classpath variable in Windows. 从python进程调用Mallet可能需要您在Windows中设置类路径变量。 You will need to check the script itself to be sure. 您需要检查脚本本身以确保。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM