Comments (7)
Could you clone the current project and use this one? Because the code on the website is outdated
from lbjava.
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.
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.
What I mean is, clone this project and follow the instructions on the readme?
from lbjava.
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.
Ah I see. Sorry misunderstood your problem. Let me take a look at this package and get back to you.
from lbjava.
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)
- Mixed feature accuracy table HOT 1
- Investigate SVM Memory Usage
- [LBJava-Examples] Issue in Entity Relation example datastructures
- ILP inference fails when classifier is loaded from model files HOT 3
- Add ability for weighted code
- Tuning with respect to F1? HOT 1
- update liblinear version
- add libsvm for kernelized SVM
- xgboost
- Weka wrapper example
- write and read functions for AdaGrad are not written HOT 1
- copy dependencies necessary for java-cup? HOT 2
- lbjava Gurobi version
- make the setWeight for SparseNetwork public
- Discretizer for Real valued features
- Saving learner models in non-existing dir HOT 2
- Getting Fatal Error while Executing Xgboost in R HOT 2
- Lexicon equality
- Bug in AdaGrad implementation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lbjava.