Skip to Content.
Sympa Menu

illinois-ml-nlp-users - Re: [Illinois-ml-nlp-users] NER doesn't work! Please help!

illinois-ml-nlp-users AT lists.cs.illinois.edu

Subject: Support for users of CCG software closed 7-27-20

List archive

Re: [Illinois-ml-nlp-users] NER doesn't work! Please help!


Chronological Thread 
  • From: Peter Groves <pdgroves AT gmail.com>
  • To: Deborah Fernandes <debmarfer AT gmail.com>
  • Cc: illinois-ml-nlp-users AT cs.uiuc.edu
  • Subject: Re: [Illinois-ml-nlp-users] NER doesn't work! Please help!
  • Date: Tue, 7 May 2013 09:53:46 -0500
  • 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>

You have the name of a jar file where it is expecting the name of the class that contains a main() method. 

First thing to try is probably to add "-jar" before the jar filename[1]. This will only work if the jar file was setup to be executable (which you have no control over).

> java -classpath lib/LBJ2.jar:lib/LBJ2Library.jar:lib/LbjNerTagger.jar -Xmx2000m -jar dist/LbjNerTagger-2.1.jar -annotate TestFile.txt TestFileAnn.txt true Config/allLayer1.config

If that doesn't work, you need to replace the 'dist/LbjNerTAgger-2.1.jar' argument with a classname[2]. If you unpack the jar you may be able to find a MANIFEST which will tell you the classname. 

[1] http://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html
[2] http://sjengle.cs.usfca.edu/resources/using-java-via-command-line



On Tue, May 7, 2013 at 9:26 AM, Deborah Fernandes <debmarfer AT gmail.com> wrote:
Hi,

I'm PHD student of University of Brasilia - Brazil. I read about the Illinois Named Recognition and I'm trying to use it but it doesn't work. I read all the posts of the list and tried to fix but it doen't work too. So, I downloaded from the site the file IllinoisNerExtended-v2.2.tgz at my Linux Ubuntu 10.04 LTS. I unzipped with the command  tar -xzf and inside the folder I tried:

>java -classpath lib/LBJ2.jar:lib/LBJ2Library.jar:lib/LbjNerTagger.jar -Xmx2000m dist/LbjNerTagger-2.1.jar -annotate TestFile.txt TestFileAnn.txt true Config/allLayer1.config
Exception in thread "main" java.lang.NoClassDefFoundError: dist/LbjNerTagger-2/1/jar
Caused by: java.lang.ClassNotFoundException: dist.LbjNerTagger-2.1.jar
    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:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: dist/LbjNerTagger-2.1.jar. Program will exit.
>

I really don't know what I could do, and I would like to ask if  Config/ is a folder tht should contain allFeaturesBigTrainingSet.config , allLayer1.config and other config files?
If is, there is no Config folder  in the IllinoisNerExtended-v2.2.tgz available for dowload on the site.
Any help?
Thank you so much for any help.

Deborah :-)



_______________________________________________
illinois-ml-nlp-users mailing list
illinois-ml-nlp-users AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/illinois-ml-nlp-users





Archive powered by MHonArc 2.6.16.

Top of Page