illinois-ml-nlp-users AT lists.siebelschool.illinois.edu
Subject: Support for users of CCG software closed 7-27-20
List archive
- From: "Sammons, Mark" <mssammon AT illinois.edu>
- To: "Md. Musfique Anwar" <musfique.anwar AT gmail.com>
- Cc: "illinois-ml-nlp-users AT cs.uiuc.edu" <illinois-ml-nlp-users AT cs.uiuc.edu>
- Subject: Re: [Illinois-ml-nlp-users] Error in running the LBJ Tagger
- Date: Fri, 15 Feb 2013 16:46:19 +0000
- Accept-language: en-US
- List-archive: <http://lists.cs.uiuc.edu/pipermail/illinois-ml-nlp-users/>
- List-id: Support for users of CCG software <illinois-ml-nlp-users.cs.uiuc.edu>
Hi, Musfique.
Most of our Java software has the jar files in subdirectories, and these need to be part of the classpath entries. For example, if I have two directories with jars: dist/, which contains the jar for the main application (LbjNerTagger-2.2.jar) and lib/, which contains the other jars it needs to run, then I need to set the classpath to something like this:
java -classpath lib/LBJ2.jar:lib/LBJ2Library.jar:dist/LbjNerTagger-2.2.jar -Xmx2000m LbjTagger.NerTagger -annotate /home/musfique/foo.txt /home/musfique/foo.tagged.txt true Config/allFeaturesBigTrainingSet.config
You need to check the specific names of the jars -- some of them have version numbers, and these may change between releases; sometimes the documentation doesn't quite keep up with these version changes.
Regards,
Mark
Most of our Java software has the jar files in subdirectories, and these need to be part of the classpath entries. For example, if I have two directories with jars: dist/, which contains the jar for the main application (LbjNerTagger-2.2.jar) and lib/, which contains the other jars it needs to run, then I need to set the classpath to something like this:
java -classpath lib/LBJ2.jar:lib/LBJ2Library.jar:dist/LbjNerTagger-2.2.jar -Xmx2000m LbjTagger.NerTagger -annotate /home/musfique/foo.txt /home/musfique/foo.tagged.txt true Config/allFeaturesBigTrainingSet.config
You need to check the specific names of the jars -- some of them have version numbers, and these may change between releases; sometimes the documentation doesn't quite keep up with these version changes.
Regards,
Mark
From: illinois-ml-nlp-users-bounces AT cs.uiuc.edu [illinois-ml-nlp-users-bounces AT cs.uiuc.edu] on behalf of Md. Musfique Anwar [musfique.anwar AT gmail.com]
Sent: Friday, February 15, 2013 2:54 AM
To: illinois-ml-nlp-users AT cs.uiuc.edu
Subject: [Illinois-ml-nlp-users] Error in running the LBJ Tagger
Sent: Friday, February 15, 2013 2:54 AM
To: illinois-ml-nlp-users AT cs.uiuc.edu
Subject: [Illinois-ml-nlp-users] Error in running the LBJ Tagger
Hi,
I tried to run Illinois Named Entity Tagger -- Extended Types (2.2) but got the following error:
I gave the following command:
java -classpath LBJ2.jar:LBJ2Library.jar:LbjNerTagger.jar -Xmx2000m LbjTagger.NerTagger -annotate /home/musfique/foo.txt /home/musfique/foo.tagged.txt true Config/allFeaturesBigTrainingSet.config
Error message shown:
Exception in thread "main" java.lang.NoClassDefFoundError: LbjTagger/NerTagger
Caused by: java.lang.ClassNotFoundException: LbjTagger.NerTagger
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
I could not figure out the problem. I will be happy if anyone can tell me the solution. Also I like to know how to use Illinois Named Entity Tagger to java code.
best regards-
Musfique Anwar
I tried to run Illinois Named Entity Tagger -- Extended Types (2.2) but got the following error:
I gave the following command:
java -classpath LBJ2.jar:LBJ2Library.jar:LbjNerTagger.jar -Xmx2000m LbjTagger.NerTagger -annotate /home/musfique/foo.txt /home/musfique/foo.tagged.txt true Config/allFeaturesBigTrainingSet.config
Error message shown:
Exception in thread "main" java.lang.NoClassDefFoundError: LbjTagger/NerTagger
Caused by: java.lang.ClassNotFoundException: LbjTagger.NerTagger
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
I could not figure out the problem. I will be happy if anyone can tell me the solution. Also I like to know how to use Illinois Named Entity Tagger to java code.
best regards-
Musfique Anwar
- [Illinois-ml-nlp-users] Error in running the LBJ Tagger, Md. Musfique Anwar, 02/15/2013
- Message not available
- Re: [Illinois-ml-nlp-users] Error in running the LBJ Tagger, Sammons, Mark, 02/15/2013
- Message not available
Archive powered by MHonArc 2.6.16.