java - Mallet SimpleTagger Classpath -
i going use mallet simpletagger sequence tagging. however, have problem setting classpath. have seen here: classpath
i must able use java -cp set classpath. followed instructions here (i sure have installed ant , mallet correctly). however, receive message:
error: not find or load main class cc.mallet.fst.simpletagger
here real code use:
c:\mallet> java -cp "c:\mallet\class:c:\mallet\lib\mallet-deps.jar" cc.mallet.fst.simpletagger --model-file g:\test1-model g:\test2-feats.txt
meanwhile, when run command: echo %classpath%
, returns %classpath%.
i thankful if can me.
fortunately, comments , suggested link of @user2339071, solve problem:
if using windows os, must replace ":" ";". so, code worked me:
c:\mallet> java -cp "c:\mallet\class;c:\mallet\lib\mallet-deps.jar" cc.mallet.fst.simpletagger --model-file g:\test1-model g:\test2-feats.txt
actually, done code 2 different paths determined classpath, 1 folder includes .class files of mallet (c:\mallet\class) , other 1 includes required jar files (c:\mallet\lib\mallet-deps.jar) , need separate them ";".
that's all!
Comments
Post a Comment