Java 执行treetagger命令tag eng时出错

Java 执行treetagger命令tag eng时出错,java,windows,perl,batch-file,Java,Windows,Perl,Batch File,我正在尝试用java编写一个使用treetagger的应用程序。 所以在eclipse上点击了这个 String commande="cmd /c C:\Program Files (x86)\tree-tagger-windows-3.2\TreeTagger\bin\\tag-english"+" "+path; Process p=Runtime.getRuntime().exec(commande); 但它不起作用 我对TreeTagger不太了解,为了测试是否在windows下

我正在尝试用java编写一个使用treetagger的应用程序。 所以在eclipse上点击了这个

String commande="cmd /c  C:\Program Files (x86)\tree-tagger-windows-3.2\TreeTagger\bin\\tag-english"+" "+path;

 Process p=Runtime.getRuntime().exec(commande);
但它不起作用

我对TreeTagger不太了解,为了测试是否在windows下安装TreeTagger,我在命令提示符cd
C:\ProgramFiles(x86)\tree-tagger-windows-3.2\TreeTagger\bin
上键入了这些命令,然后

标记英文nom_de_fichier_áu tagger
但命令行显示此错误消息
“perl”不被识别为内部或外部命令、可执行程序或批处理文件。

我安装的TreeTagger是一个zip文件,我将其解压缩到一个文件夹中,并将其放入
C:\ProgramFiles(x86)
中,这正是我所做的


如果我在安装过程中犯了错误,你能帮我吗,因为我也搜索过网络,但我什么都不懂。

听起来你需要在windows上安装
perl
。我建议你使用

我没有使用TreeTagger的经验,但在谷歌上搜索一下,我发现了以下参考资料:。向下滚动有一个zip格式的Windows版本,其中包含一个INSTALL.txt,其中说明:

Installation
------------

1. Install a Perl interpreter (if you have not already installed one).
   You can download a Perl interpreter for Windows for free at
   http://www.activestate.com/activeperl/

2. Move the TreeTagger directory to the root directory of drive C:.

3. Download the PC parameter files for the languages you need, decompress
   them (e.g. using Winzip or 7zip) and move them to the subdirectory lib.
   Rename the parameter files to <language>.par
   Example: Rename french-par-linux-3.1.bin to french.par

   The UTF8 versions of the parameter files are not supported yet, but
   see below some hints on how to build tagging scripts for the UTF8
   parameter files.

4. Add the path C:\TreeTagger\bin to the PATH environment variable.

5. Open a shell and type the command
   set PATH=C:\TreeTagger\bin;%PATH%

6. Change to the directory C:\TreeTagger

7. Now you can test the tagger, e.g. by analyzing this file with the command
   tag-english INSTALL.txt
安装
------------
1.安装Perl解释器(如果尚未安装)。
您可以在以下位置免费下载用于Windows的Perl解释器:
http://www.activestate.com/activeperl/
2.将TreeTagger目录移动到驱动器C:的根目录。
3.下载所需语言的PC参数文件,解压缩
将它们(例如使用Winzip或7zip)移动到子目录库中。
将参数文件重命名为
示例:将法语PAR-LUNX-3.1.Bin重命名为法语。
参数文件的UTF8版本尚不受支持,但
请参阅下面关于如何为UTF8构建标记脚本的一些提示
参数文件。
4.将路径C:\TreeTagger\bin添加到path环境变量中。
5.打开shell并键入命令
设置路径=C:\TreeTagger\bin;%路径%
6.更改到目录C:\TreeTagger
7.现在您可以测试标记器,例如,使用命令分析此文件
tagenglish INSTALL.txt
显然,您一定跳过了步骤1.:)您可以按照他们的建议使用ActiveState,但在我看来,现在草莓perl是一个更好的选择