Skip to Content.
Sympa Menu

illinois-ml-nlp-users - [Illinois-ml-nlp-users] LBJ doesn't generate code for classifier

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

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

List archive

[Illinois-ml-nlp-users] LBJ doesn't generate code for classifier


Chronological Thread 
  • From: Lars Buitinck <larsmans AT gmail.com>
  • To: illinois-ml-nlp-users <illinois-ml-nlp-users AT cs.uiuc.edu>
  • Subject: [Illinois-ml-nlp-users] LBJ doesn't generate code for classifier
  • Date: Wed, 6 Apr 2011 11:18:22 +0200
  • 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>

Hello,

I have a named-entity recognizer in LBJ that used to work, until I upgraded to 2.8.1. I get the error


Generating code for NEClassifier
Generating code for BioRecognizer
Compiling generated code
Training BioRecognizer
  BioRecognizer, pre-extract: 0 examples at Wed Apr 06 10:23:50 CEST 2011
Exception in thread "BioRecognizer" java.lang.InstantiationError: LBJ2.classify.DiscreteFeature
    at nl.larsmans.ner.BioLabel.classify(BioLabel.java:41)
    at LBJ2.learn.Learner.getExampleArray(Learner.java:675)
    at nl.larsmans.ner.BioRecognizer.getExampleArray(BioRecognizer.java:734)
    at LBJ2.learn.Learner.getExampleArray(Learner.java:640)
    at nl.larsmans.ner.BioRecognizer.getExampleArray(BioRecognizer.java:723)
    at LBJ2.learn.BatchTrainer.preExtract(BatchTrainer.java:510)
    at LBJ2.learn.BatchTrainer.preExtract(BatchTrainer.java:363)
    at LBJ2.Train$TrainingThread.preExtractAndPrune(Train.java:714)
    at LBJ2.Train$TrainingThread.run(Train.java:885)
Compiling generated code
javac: no source files
Usage: javac <options> <source files>
use -help for a list of possible options


When I check my generated_java directory, BioLabel.java isn't there, while it is defined in my .lbj file as

discrete BioLabel(Token tok) <- { return tok.bioLabel; }

Any idea what could cause this?

Regards,
Lars Buitinck
Scientific programmer, U. Amsterdam



Archive powered by MHonArc 2.6.16.

Top of Page