Skip to Content.
Sympa Menu

illinois-ml-nlp-users - Re: [Illinois-ml-nlp-users] Fwd: 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] Fwd: NER doesn't work! Please help!


Chronological Thread 
  • From: Deborah Fernandes <debmarfer AT gmail.com>
  • To: "Sammons, Mark" <mssammon AT illinois.edu>
  • Cc: "illinois-ml-nlp-users AT cs.uiuc.edu" <illinois-ml-nlp-users AT cs.uiuc.edu>
  • Subject: Re: [Illinois-ml-nlp-users] Fwd: NER doesn't work! Please help!
  • Date: Tue, 7 May 2013 15:40:33 -0300
  • 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>

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


Here it is the command. :-)

Deborah.


On Tue, May 7, 2013 at 3:34 PM, Sammons, Mark <mssammon AT illinois.edu> wrote:
Hi, Deborah.

It looks like your classpath doesn't have the LBJ2Library.jar or LBJ2.jar on it. Can you paste the command you use to run NER into an email, so I can look at the classpath?

Regards,

Mark



From: illinois-ml-nlp-users-bounces AT cs.uiuc.edu [illinois-ml-nlp-users-bounces AT cs.uiuc.edu] on behalf of Deborah Fernandes [debmarfer AT gmail.com]
Sent: Tuesday, May 07, 2013 1:20 PM
To: illinois-ml-nlp-users AT cs.uiuc.edu
Subject: [Illinois-ml-nlp-users] Fwd: NER doesn't work! Please help!


Hello. I found some problems in the Manifest content. I fixed it. But  I got a new problem in an another  file. See below:

Exception in thread "main" java.lang.NoClassDefFoundError: LBJ2/learn/SparseNetworkLearner
    at edu.illinois.cs.cogcomp.LbjNer.LbjTagger.NerTagger.main(NerTagger.java:14)
Caused by: java.lang.ClassNotFoundException: LBJ2.learn.SparseNetworkLearner

    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)

I checked inside of LBJ 2.jar  and I didn't find LBJ2/learn/SparseNetworkLearner directory or file.

Any help ?

Thank you a lot, Deborah.




On Tue, May 7, 2013 at 11:53 AM, Peter Groves <pdgroves AT gmail.com> wrote:
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. 




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