burrsettles / dualist

Interactive machine learning for text analysis
Other
85 stars 25 forks source link

dualist test throws exception #4

Open davidchengo opened 8 years ago

davidchengo commented 8 years ago

$ dualist test models/a_three_class_model /path_to_3_classtest.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)