Code Monkey home page Code Monkey logo

dualist's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dualist's Issues

Cannot find command "dualist"

I followed the step in README file and installed Play!.
When I tried to use command "dualist gui" as in the instruction, it prompted me that "-bash: dualist: command not found". How can I fix this? Thanks!

Null pointer exception, empty alphabet size

What steps will reproduce the problem?
1. Open DUALIST in Exploration Mode
2. Select single lines (or tweets) data set (example attached)
3. Fill in class labels (in this case: "Pos, neg, neu"))  and press "Start 
Exploring!".

What is the expected output? What do you see instead?
Expected output is DUALIST GUI, instead see Play exception report (attached)

What version of the product are you using? On what operating system?
Lastest version of DUALIST OS X 10.7.2, Google Chrome

Please provide any additional information below.
I've tried this with two single lines datasets, one with instance numbers and a 
classification followed by the instance (separated by tabs) and the one 
attached, both result in the same error. 

Original issue reported on code.google.com by [email protected] on 11 Dec 2011 at 7:33

Attachments:

dualist test throws exception

$ dualist test models/a_three_class_model /path_to_3_class_test.zip
~
~ __ __ __ __
~ .--| |.--.--.---.-.| ||.-----.| |_
~ | _ || | | _ || | ||
--|| |
~ ||||**
.|||||**||__|
~
~ Loading trained model...
|data|=199 |features|=7213 |labels|=4
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
at cc.mallet.types.Multinomial$Logged.addLogProbabilities(Multinomial.java:246)
at cc.mallet.classify.NaiveBayes.classify(NaiveBayes.java:153)
at cc.mallet.classify.Trial.(Trial.java:50)
at cc.mallet.classify.Classifier.getAccuracy(Classifier.java:148)
at dualist.tui.Test.main(Test.java:52)

Null pointer error due to empty alphabet size?

What steps will reproduce the problem?
1. create series of textual lines, e.g.
NTR|the old man died suddenly.
NTR|Just a test.
NEG|boah, what utter bullocks!
NTR|maybe yes, maybe no.
POS|great!!
NTR|oh, I am surprised.
NTR|another test sentence to serve as training instance
NEG|bah, that totally sucks BIG TIME!!!

or (unlabeled)

the old man died suddenly.
Just a test.
boah, what utter bullocks!
maybe yes, maybe no.
great!!
oh, I am surprised.
another test sentence to serve as training instance
NEG|bah, that totally sucks BIG TIME!!!

2. launch Dualist, go to Web GUI
3. set parameters as shown in attached screen capture

What is the expected output? What do you see instead?

Execution exception
NullPointerException occured : null

In /app/controllers/Application.java (around line 101)

97:
         Cache.set(session.getId()+"-startTime", (System.currentTimeMillis()/1000), "90mn" );
98:

99:
         Cache.set(session.getId()+"-explore", true, "90mn");
100:

101:
         Logger.info("|featureSet|=%s", dataAlphabet.size());
102:
         Logger.info("|labelSet|=%s", labelAlphabet.size());
103:
         Logger.info("|dataSet|=%s", ilist.size());
104:
         Logger.info("User: %s", username);
105:

106:
         clearResult();
107:
         logResult("%% |featureSet|=" + dataAlphabet.size());
This exception has been logged with id 67nj9836a

What version of the product are you using? On what operating system?
Dualist 0.1 on MacOS 10.6.7.

Please provide any additional information below.

I also tried with various other separators ('#', '|', '||', ' ', '\t') - the 
result is unchanged. The error appears to be caused by an empty set of labels, 
but I've entered them using a comma as separator as suggested.

Original issue reported on code.google.com by [email protected] on 20 Sep 2011 at 12:33

Attachments:

Oops: ClassFormatException An unexpected error occured caused by exception ClassFormatException: null

play.exceptions.UnexpectedException: Unexpected Error
at play.classloading.ApplicationCompiler$1.findType(ApplicationCompiler.java:195)
at play.classloading.ApplicationCompiler$1.findType(ApplicationCompiler.java:144)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:103)
at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:122)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromTypeSignature(LookupEnvironment.java:1237)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromVariantTypeSignature(LookupEnvironment.java:1293)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeArgumentsFromSignature(LookupEnvironment.java:1080)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromTypeSignature(LookupEnvironment.java:1242)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createMethod(BinaryTypeBinding.java:509)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createMethods(BinaryTypeBinding.java:590)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.cachePartsFrom(BinaryTypeBinding.java:329)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:674)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:653)
at org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:295)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:108)
at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:122)
at org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.resolve(ParameterizedTypeBinding.java:851)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:100)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveTypeFor(BinaryTypeBinding.java:1027)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.getField(BinaryTypeBinding.java:829)
at org.eclipse.jdt.internal.compiler.lookup.Scope.findField(Scope.java:988)
at org.eclipse.jdt.internal.compiler.lookup.BlockScope.getBinding(BlockScope.java:472)
at org.eclipse.jdt.internal.compiler.ast.QualifiedNameReference.resolveType(QualifiedNameReference.java:905)
at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:316)
at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:316)
at org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:186)
at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:90)
at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:261)
at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:90)
at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:261)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:451)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:212)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:410)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1147)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1235)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:540)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:759)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:464)
at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:278)
at play.classloading.ApplicationClasses$ApplicationClass.compile(ApplicationClasses.java:258)
at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:138)
at play.classloading.ApplicationClassloader.loadClass(ApplicationClassloader.java:75)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at play.Play.loadPlugins(Play.java:566)
at play.Play.init(Play.java:268)
at play.server.Server.main(Server.java:131)
Caused by: org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.(ClassFileReader.java:372)
at play.classloading.ApplicationCompiler$1.findType(ApplicationCompiler.java:163)
... 47 more
23:52:31,182 WARN ~ You're running Play! in DEV mode
23:52:31,358 INFO ~ Listening for HTTP on port 8080 (Waiting a first request to start) ...
23:53:07,900 ERROR ~

@75ichnloc
Internal Server Error (500) for request GET /

Oops: ClassFormatException
An unexpected error occured caused by exception ClassFormatException: null

play.exceptions.UnexpectedException: Unexpected Error
at play.classloading.ApplicationCompiler$1.findType(ApplicationCompiler.java:195)
at play.classloading.ApplicationCompiler$1.findType(ApplicationCompiler.java:144)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:103)
at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:122)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromTypeSignature(LookupEnvironment.java:1237)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromVariantTypeSignature(LookupEnvironment.java:1293)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeArgumentsFromSignature(LookupEnvironment.java:1080)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromTypeSignature(LookupEnvironment.java:1242)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createMethod(BinaryTypeBinding.java:509)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createMethods(BinaryTypeBinding.java:590)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.cachePartsFrom(BinaryTypeBinding.java:329)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:674)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:653)
at org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:295)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:108)
at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:122)
at org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.resolve(ParameterizedTypeBinding.java:851)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:100)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveTypeFor(BinaryTypeBinding.java:1027)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.getField(BinaryTypeBinding.java:829)
at org.eclipse.jdt.internal.compiler.lookup.Scope.findField(Scope.java:988)
at org.eclipse.jdt.internal.compiler.lookup.BlockScope.getBinding(BlockScope.java:472)
at org.eclipse.jdt.internal.compiler.ast.QualifiedNameReference.resolveType(QualifiedNameReference.java:905)
at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:316)
at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:316)
at org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:186)
at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:90)
at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:261)
at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:90)
at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:261)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:451)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:212)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:410)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1147)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1235)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:540)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:759)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:464)
at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:278)
at play.classloading.ApplicationClasses$ApplicationClass.compile(ApplicationClasses.java:258)
at play.classloading.ApplicationClassloader.detectChanges(ApplicationClassloader.java:292)
at play.Play.detectChanges(Play.java:517)
at play.Invoker$Invocation.init(Invoker.java:100)
at Invocation.HTTP Request(Play!)
Caused by: org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.(ClassFileReader.java:372)
at play.classloading.ApplicationCompiler$1.findType(ApplicationCompiler.java:163)
... 45 more

Color error when categories more 10

What steps will reproduce the problem?
1. Open Exploration Mode with more than 10 categories
2. In the exploration page, there is no color for all labels from 11 to further.

What version of the product are you using? On what operating system?
0.1

Original issue reported on code.google.com by [email protected] on 10 Oct 2011 at 1:29

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.