我没有使用java的经验,我正在尝试使用命令shell命令在Windows上使用lingpipe(在Linux上一切正常)。但不断收到错误信息。
这些是命令:
cd lingpipe \ lingpipe-4.1.2-website \ demos \ generic \ bin cmd_pos_en_general_brown.bat -inFile = C:\ lingpipe \ test.txt -outFile = C:\ lingpipe \ testout.xml
如本教程所示: 通过Shell命令进行词性演示部分的http://alias-i.com/lingpipe/web/demo-pos.html。
错误消息是:
C:\lingpipe\lingpipe-4.1.2-website\demos\generic\bin>set CLASS=com.aliasi.demo.demos.PosDemo
C:\lingpipe\lingpipe-4.1.2-website\demos\generic\bin>set ARGS="com.aliasi.tokenizer.IndoEuropeanTokenizerFactory,com.aliasi.sentences.IndoEuropeanSentenceModel,/models/pos-en-general-brown.HiddenMarkovModel,250000,250000,General English"
C:\lingpipe\lingpipe-4.1.2-website\demos\generic\bin>set CMD=com.aliasi.demo.framework.DemoCommand
C:\lingpipe\lingpipe-4.1.2-website\demos\generic\bin>set CP=../../;../lingpipe-demos.jar;../../../lingpipe-4.1.2.jar;../../lib/nekohtml-1.9.14.jar;../../lib/xercesImpl-2.9.1.jar;../../lib/xml-apis-2.9.1.jar
C:\lingpipe\lingpipe-4.1.2-website\demos\generic\bin>java -cp ../../;../lingpipe-demos.jar;../../../lingpipe-4.1.2.jar;../../lib/nekohtml-1.9.14.jar;../../lib/xercesImpl-2.9.1.jar;../../lib/xml-apis-2.9.1.jar com.aliasi.demo.framework.DemoCommand -demoConstructor=com.aliasi.demo.demos.PosDemo -demoConstructorArgs="com.aliasi.tokenizer.IndoEuropeanTokenizerFactory,com.aliasi.sentences.IndoEuropeanSentenceModel,/models/pos-en-general-brown.HiddenMarkovModel,250000,250000,General English" -inFile C:\lingpipe\test.txt -outFile C:\lingpipe\testout.xml
IOException processing inFile=*HAS_PROPERTY_VALUE* outFile=*HAS_PROPERTY_VALUE*
Exception msg=java.io.FileNotFoundException: *HAS_PROPERTY_VALUE* (The filename, directory name, or volume label syntax is incorrect)
java.io.FileNotFoundException: *HAS_PROPERTY_VALUE* (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.aliasi.demo.framework.DemoCommand.processFile(DemoCommand.java:107)
at com.aliasi.demo.framework.DemoCommand.run(DemoCommand.java:80)
at com.aliasi.demo.framework.DemoCommand.main(DemoCommand.java:139)
ps:输入文件已经存在,输出文件应该由命令自动创建。