Coder Social home page Coder Social logo

Comments (7)

danyaljj avatar danyaljj commented on September 6, 2024

Could you clone the current project and use this one? Because the code on the website is outdated

from lbjava.

wailoktam avatar wailoktam commented on September 6, 2024

Do you mean I should not use lbj2.jar provided with the source in http://cogcomp.cs.illinois.edu/page/resource_view/107

So I point the class path to $HOME/lbjava/lbjava/target/classes ?

from lbjava.

wailoktam avatar wailoktam commented on September 6, 2024

Hi, I know it is not the proper place to ask about the source in http://cogcomp.cs.illinois.edu/page/resource_view/107

But if anyone of you know anything, I would be extremely grateful. The following gives me a lot of complaints about unknown symbols and missing classes

java -Xmx5G -XX:MaxPermSize=5G -cp /home/ubuntu/lbjava/lbjava/target/classes:/home/ubuntu/ACL2016Code/lbj/LBJ2Library.jar:/home/ubuntu/ACL2016Code/lbj/LBJChunk.jar:/home/ubuntu/ACL2016Code/lbj/LBJPOS.jar:/home/ubuntu/ACL2016Code/lbj/:class:/home/ubuntu/lbjava/lbjava/target/ LBJ2.Main -sourcepath src -gsp lbj -d class article.lbj

Compiling generated code
lbj/esl/PrepositionUnconfuse.java:39: error: cannot find symbol
    setEncoding(null);
    ^
  symbol:   method setEncoding(<null>)
  location: class PrepositionUnconfuse
lbj/esl/PrepositionUnconfuse.java:63: error: cannot find symbol
      lcFilePath = new java.net.URL("file:" + modelPath);
      ^
  symbol:   variable lcFilePath
  location: class PrepositionUnconfuse
lbj/esl/PrepositionUnconfuse.java:64: error: cannot find symbol
      lexFilePath = new java.net.URL("file:" + lexiconPath);
      ^
  symbol:   variable lexFilePath
  location: class PrepositionUnconfuse
lbj/esl/PrepositionUnconfuse.java:73: error: cannot find symbol
      readModel(lcFilePath);
                ^
  symbol:   variable lcFilePath
  location: class PrepositionUnconfuse
lbj/esl/PrepositionUnconfuse.java:74: error: cannot find symbol
      readLexiconOnDemand(lexFilePath);
                          ^
  symbol:   variable lexFilePath
  location: class PrepositionUnconfuse
lbj/esl/PrepositionUnconfuse.java:111: error: no suitable method found for learn(int[],double[],int[],double[])
        super.learn((int[]) a[0], (double[]) a[1], (int[]) a[2], (double[]) a[3]);
             ^
    method Learner.learn(Object) is not applicable
      (actual and formal argument lists differ in length)
    method Learner.learn(Object[]) is not applicable
      (actual and formal argument lists differ in length)
    method SparseNetworkLearner.learn(Object) is not applicable
      (actual and formal argument lists differ in length)
lbj/esl/PrepositionUnconfuse.java:159: error: cannot find symbol
        return super.featureValue((int[]) a[0], (double[]) a[1]);
                    ^
  symbol: method featureValue(int[],double[])
lbj/esl/PrepositionUnconfuse.java:163: error: cannot find symbol
    __result = super.featureValue(__example);
                    ^
  symbol: method featureValue(Object)
lbj/esl/PLabel.java:35: error: cannot find symbol
    return new DiscretePrimitiveStringFeature(containingPackage, name, "", result, valueIndexOf(result), (short) allowableValues().length);
               ^
  symbol:   class DiscretePrimitiveStringFeature
  location: class PLabel
lbj/esl/headWordHeadPos.java:47: error: cannot find symbol
      __result.addFeature(new DiscretePrimitiveStringFeature(this.containingPackage, this.name, __id, __value, valueIndexOf(__value), (short) 0));
                              ^

I would be extremely grateful to any help.

from lbjava.

danyaljj avatar danyaljj commented on September 6, 2024

What I mean is, clone this project and follow the instructions on the readme?

from lbjava.

wailoktam avatar wailoktam commented on September 6, 2024

Hi, I have cloned this project and succeeded with compiling it with maven.

How do I get the lbj file in http://cogcomp.cs.illinois.edu/page/resource_view/107 to compile?

from lbjava.

danyaljj avatar danyaljj commented on September 6, 2024

Ah I see. Sorry misunderstood your problem. Let me take a look at this package and get back to you.

from lbjava.

wailoktam avatar wailoktam commented on September 6, 2024

Hi, thanks. This is the command I try to run:

java -Xmx5G -XX:MaxPermSize=5G -cp /home/ubuntu/ACL2016Code/lbj/LBJ2.jar:/home/ubuntu/ACL2016Code/lbj/LBJ2Library.jar:/home/ubuntu/ACL2016Code/lbj/LBJChunk.jar:/home/ubuntu/ACL2016Code/lbj/LBJPOS.jar:class /home/wailoktam/ubuntu/ACL2016Code/lbj/LBJ2/classify/ LBJ2.Main -sourcepath src -gsp lbj -d class article.lbj

I am getting the following errors:

Generating code for PrepositionUnconfuse
Compiling generated code

lbj/esl/PrepositionUnconfuse.java:39: error: cannot find symbol
setEncoding(null);
^
symbol: method setEncoding()
location: class PrepositionUnconfuse
lbj/esl/PrepositionUnconfuse.java:63: error: cannot find symbol
lcFilePath = new java.net.URL("file:" + modelPath);
^
symbol: variable lcFilePath
location: class PrepositionUnconfuse
lbj/esl/PrepositionUnconfuse.java:64: error: cannot find symbol
lexFilePath = new java.net.URL("file:" + lexiconPath);
^
symbol: variable lexFilePath
location: class PrepositionUnconfuse
lbj/esl/PrepositionUnconfuse.java:73: error: cannot find symbol
readModel(lcFilePath);
^
symbol: variable lcFilePath
location: class PrepositionUnconfuse
lbj/esl/PrepositionUnconfuse.java:74: error: cannot find symbol
readLexiconOnDemand(lexFilePath);
^
symbol: variable lexFilePath
location: class PrepositionUnconfuse
lbj/esl/PrepositionUnconfuse.java:111: error: no suitable method found for learn(int[],double[],int[],double[])
super.learn((int[]) a[0], (double[]) a[1], (int[]) a[2], (double[]) a[3]);
^
method Learner.learn(Object) is not applicable
(actual and formal argument lists differ in length)
method Learner.learn(Object[]) is not applicable
(actual and formal argument lists differ in length)
method SparseNetworkLearner.learn(Object) is not applicable
(actual and formal argument lists differ in length)
lbj/esl/PrepositionUnconfuse.java:159: error: cannot find symbol
return super.featureValue((int[]) a[0], (double[]) a[1]);
^
symbol: method featureValue(int[],double[])
lbj/esl/PrepositionUnconfuse.java:163: error: cannot find symbol
__result = super.featureValue(__example);
^
symbol: method featureValue(Object)
lbj/esl/PLabel.java:35: error: cannot find symbol
return new DiscretePrimitiveStringFeature(containingPackage, name, "", result, valueIndexOf(result), (short) allowableValues().length);
^
symbol: class DiscretePrimitiveStringFeature
location: class PLabel
lbj/esl/headWordHeadPos.java:47: error: cannot find symbol
__result.addFeature(new DiscretePrimitiveStringFeature(this.containingPackage, this.name, __id, __value, valueIndexOf(__value), (short) 0));

from lbjava.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.