{"action":"closed","issue":{"url":"https://api.github.com/repos/clips/topbox/issues/1","repository_url":"https://api.github.com/repos/clips/topbox","labels_url":"https://api.github.com/repos/clips/topbox/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/clips/topbox/issues/1/comments","events_url":"https://api.github.com/repos/clips/topbox/issues/1/events","html_url":"https://github.com/clips/topbox/issues/1","id":190732811,"number":1,"title":"Problems with using the wrapper.","user":{"login":"roskoN","id":8143425,"avatar_url":"https://avatars.githubusercontent.com/u/8143425?v=3","gravatar_id":"","url":"https://api.github.com/users/roskoN","html_url":"https://github.com/roskoN","followers_url":"https://api.github.com/users/roskoN/followers","following_url":"https://api.github.com/users/roskoN/following{/other_user}","gists_url":"https://api.github.com/users/roskoN/gists{/gist_id}","starred_url":"https://api.github.com/users/roskoN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roskoN/subscriptions","organizations_url":"https://api.github.com/users/roskoN/orgs","repos_url":"https://api.github.com/users/roskoN/repos","events_url":"https://api.github.com/users/roskoN/events{/privacy}","received_events_url":"https://api.github.com/users/roskoN/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"cmry","id":6041070,"avatar_url":"https://avatars.githubusercontent.com/u/6041070?v=3","gravatar_id":"","url":"https://api.github.com/users/cmry","html_url":"https://github.com/cmry","followers_url":"https://api.github.com/users/cmry/followers","following_url":"https://api.github.com/users/cmry/following{/other_user}","gists_url":"https://api.github.com/users/cmry/gists{/gist_id}","starred_url":"https://api.github.com/users/cmry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmry/subscriptions","organizations_url":"https://api.github.com/users/cmry/orgs","repos_url":"https://api.github.com/users/cmry/repos","events_url":"https://api.github.com/users/cmry/events{/privacy}","received_events_url":"https://api.github.com/users/cmry/received_events","type":"User","site_admin":false},"assignees":[{"login":"cmry","id":6041070,"avatar_url":"https://avatars.githubusercontent.com/u/6041070?v=3","gravatar_id":"","url":"https://api.github.com/users/cmry","html_url":"https://github.com/cmry","followers_url":"https://api.github.com/users/cmry/followers","following_url":"https://api.github.com/users/cmry/following{/other_user}","gists_url":"https://api.github.com/users/cmry/gists{/gist_id}","starred_url":"https://api.github.com/users/cmry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmry/subscriptions","organizations_url":"https://api.github.com/users/cmry/orgs","repos_url":"https://api.github.com/users/cmry/repos","events_url":"https://api.github.com/users/cmry/events{/privacy}","received_events_url":"https://api.github.com/users/cmry/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-11-21T14:32:30Z","updated_at":"2016-11-22T09:20:20Z","closed_at":"2016-11-22T09:20:20Z","body":"Hi,\r\n\r\nFirst of all, thank you very much for sharing this with the community!\r\n\r\nUnfortunately, when I follow your instructions and I run the provided example, I get a java exception. When I run the examples provided on STMT's website, there seem to be no problems. Can you please have a look into? Thank you very much!\r\n\r\nI am using Ubuntu 16.04.01 and my java is:\r\njava -version\r\njava version \"1.6.0_45\"\r\nJava(TM) SE Runtime Environment (build 1.6.0_45-b06)\r\nJava HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)\r\n\r\nHere is the exception text I get: \r\n\r\n`(topbox) rosko@rosko-ThinkPad-W510:~/GIT$ python ./test1.py \r\n[cell] creating /home/rosko/GIT/topbox/box/test_model_train.csv.term-counts.cache.16e042a9.gz\r\n[cell] creating /home/rosko/GIT/topbox/box/test_model_train.csv.term-counts.cache.ade3ddc9.gz\r\n[Train] iteration 0\r\nedu.stanford.nlp.tmt.data.concurrent.ConcurrentException: edu.stanford.nlp.tmt.data.concurrent.ConcurrentException: edu.stanford.nlp.tmt.data.concurrent.ConcurrentException: java.lang.ArrayIndexOutOfBoundsException: 0\r\n\tat edu.stanford.nlp.tmt.data.concurrent.Concurrent$InnerNode$2.value(Concurrent.scala:185)\r\n\tat edu.stanford.nlp.tmt.data.concurrent.Concurrent$.reduce(Concurrent.scala:205)\r\n\tat edu.stanford.nlp.tmt.learn.ThreadedModeler.learnIteration(ThreadedModeler.scala:116)\r\n\tat edu.stanford.nlp.tmt.learn.Modeler$$anonfun$train$1.apply(Modeler.scala:114)\r\n\tat edu.stanford.nlp.tmt.learn.Modeler$$anonfun$train$1.apply(Modeler.scala:114)\r\n\tat edu.stanford.nlp.tmt.learn.Train$.apply(Train.scala:184)\r\n\tat edu.stanford.nlp.tmt.learn.Modeler$class.train(Modeler.scala:113)\r\n\tat edu.stanford.nlp.tmt.learn.ThreadedModeler.train(ThreadedModeler.scala:35)\r\n\tat edu.stanford.nlp.tmt.stage.package$.TrainCVB0LabeledLDA(package.scala:83)\r\n\tat Main$$anon$1.<init>(test_model_train.scala:51)\r\n\tat Main$.main(test_model_train.scala:1)\r\n\tat Main.main(test_model_train.scala)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\r\n\tat java.lang.reflect.Method.invoke(Method.java:597)\r\n\tat scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:78)\r\n\tat scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:24)\r\n\tat scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:88)\r\n\tat scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:78)\r\n\tat scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:101)\r\n\tat scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:33)\r\n\tat scala.tools.nsc.ObjectRunner$.runAndCatch(ObjectRunner.scala:40)\r\n\tat scala.tools.nsc.ScriptRunner.scala$tools$nsc$ScriptRunner$$runCompiled(ScriptRunner.scala:171)\r\n\tat scala.tools.nsc.ScriptRunner$$anonfun$runScript$1.apply(ScriptRunner.scala:188)\r\n\tat scala.tools.nsc.ScriptRunner$$anonfun$runScript$1.apply(ScriptRunner.scala:188)\r\n\tat scala.tools.nsc.ScriptRunner$$anonfun$withCompiledScript$1.apply$mcZ$sp(ScriptRunner.scala:157)\r\n\tat scala.tools.nsc.ScriptRunner$$anonfun$withCompiledScript$1.apply(ScriptRunner.scala:131)\r\n\tat scala.tools.nsc.ScriptRunner$$anonfun$withCompiledScript$1.apply(ScriptRunner.scala:131)\r\n\tat scala.tools.nsc.util.package$.waitingForThreads(package.scala:26)\r\n\tat scala.tools.nsc.ScriptRunner.withCompiledScript(ScriptRunner.scala:130)\r\n\tat scala.tools.nsc.ScriptRunner.runScript(ScriptRunner.scala:188)\r\n\tat scala.tools.nsc.ScriptRunner.runScriptAndCatch(ScriptRunner.scala:201)\r\n\tat scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:58)\r\n\tat scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:80)\r\n\tat scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:89)\r\n\tat scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\r\n\tat java.lang.reflect.Method.invoke(Method.java:597)\r\n\tat edu.stanford.nlp.tmt.TMTMain$.main(TMTMain.scala:57)\r\n\tat edu.stanford.nlp.tmt.TMTMain.main(TMTMain.scala)\r\nCaused by: edu.stanford.nlp.tmt.data.concurrent.ConcurrentException: edu.stanford.nlp.tmt.data.concurrent.ConcurrentException: java.lang.ArrayIndexOutOfBoundsException: 0\r\n\tat edu.stanford.nlp.tmt.data.concurrent.Concurrent$InnerNode$2.value(Concurrent.scala:185)\r\n\tat edu.stanford.nlp.tmt.data.concurrent.Concurrent$InnerNode$2$$anon$6.run(Concurrent.scala:172)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)\r\n\tat java.lang.Thread.run(Thread.java:662)\r\nCaused by: edu.stanford.nlp.tmt.data.concurrent.ConcurrentException: java.lang.ArrayIndexOutOfBoundsException: 0\r\n\t... 5 more\r\nCaused by: java.lang.ArrayIndexOutOfBoundsException: 0\r\n\tat edu.stanford.nlp.tmt.model.SoftAssignmentModelState.numTerms(SoftAssignments.scala:44)\r\n\tat edu.stanford.nlp.tmt.model.llda.CVB0LabeledLDA$.doCollect(CVB0LabeledLDA.scala:309)\r\n\tat edu.stanford.nlp.tmt.model.llda.CVB0LabeledLDA$.doCollect(CVB0LabeledLDA.scala:285)\r\n\tat edu.stanford.nlp.tmt.learn.ThreadedModeler$$anonfun$3.apply(ThreadedModeler.scala:116)\r\n\t... 4 more\r\nLoading /home/rosko/GIT/topbox/box/test_model_train\r\njava.io.FileNotFoundException: /home/rosko/GIT/topbox/box/test_model_train/params.txt (No such file or directory)\r\n\tat java.io.FileInputStream.open(Native Method)\r\n\tat java.io.FileInputStream.<init>(FileInputStream.java:120)\r\n\tat scalanlp.io.FileStreams$.input(FileStreams.scala:40)\r\n\tat scalanlp.serialization.GenericFileSerializationFromText$$anon$2.read(FileSerialization.scala:101)\r\n\tat scalanlp.serialization.GenericFileSerializationFromText$$anon$2.read(FileSerialization.scala:97)\r\n\tat scalanlp.serialization.SerializationFormat$class.read(Serialization.scala:84)\r\n\tat scalanlp.serialization.FileSerialization$.read(FileSerialization.scala:40)\r\n\tat scalanlp.serialization.FileSerialization$.readText(FileSerialization.scala:46)\r\n\tat edu.stanford.nlp.tmt.model.llda.LabeledLDAModelParams$FileReadWritable$.read(LabeledLDA.scala:106)\r\n\tat edu.stanford.nlp.tmt.model.llda.LabeledLDAModelParams$FileReadWritable$.read(LabeledLDA.scala:104)\r\n\tat scalanlp.serialization.SerializationFormat$class.read(Serialization.scala:84)\r\n\tat scalanlp.serialization.FileSerialization$.read(FileSerialization.scala:40)\r\n\tat edu.stanford.nlp.tmt.learn.SerializableModelCompanion$class.load(ModelCompanion.scala:128)\r\n\tat edu.stanford.nlp.tmt.model.llda.CVB0LabeledLDA$.load(CVB0LabeledLDA.scala:285)\r\n\tat edu.stanford.nlp.tmt.stage.package$.LoadCVB0LabeledLDA(package.scala:140)\r\n\tat Main$$anon$1.<init>(test_model_test.scala:14)\r\n\tat Main$.main(test_model_test.scala:1)\r\n\tat Main.main(test_model_test.scala)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\r\n\tat java.lang.reflect.Method.invoke(Method.java:597)\r\n\tat scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:78)\r\n\tat scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:24)\r\n\tat scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:88)\r\n\tat scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:78)\r\n\tat scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:101)\r\n\tat scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:33)\r\n\tat scala.tools.nsc.ObjectRunner$.runAndCatch(ObjectRunner.scala:40)\r\n\tat scala.tools.nsc.ScriptRunner.scala$tools$nsc$ScriptRunner$$runCompiled(ScriptRunner.scala:171)\r\n\tat scala.tools.nsc.ScriptRunner$$anonfun$runScript$1.apply(ScriptRunner.scala:188)\r\n\tat scala.tools.nsc.ScriptRunner$$anonfun$runScript$1.apply(ScriptRunner.scala:188)\r\n\tat scala.tools.nsc.ScriptRunner$$anonfun$withCompiledScript$1.apply$mcZ$sp(ScriptRunner.scala:157)\r\n\tat scala.tools.nsc.ScriptRunner$$anonfun$withCompiledScript$1.apply(ScriptRunner.scala:131)\r\n\tat scala.tools.nsc.ScriptRunner$$anonfun$withCompiledScript$1.apply(ScriptRunner.scala:131)\r\n\tat scala.tools.nsc.util.package$.waitingForThreads(package.scala:26)\r\n\tat scala.tools.nsc.ScriptRunner.withCompiledScript(ScriptRunner.scala:130)\r\n\tat scala.tools.nsc.ScriptRunner.runScript(ScriptRunner.scala:188)\r\n\tat scala.tools.nsc.ScriptRunner.runScriptAndCatch(ScriptRunner.scala:201)\r\n\tat scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:58)\r\n\tat scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:80)\r\n\tat scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:89)\r\n\tat scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\r\n\tat java.lang.reflect.Method.invoke(Method.java:597)\r\n\tat edu.stanford.nlp.tmt.TMTMain$.main(TMTMain.scala:57)\r\n\tat edu.stanford.nlp.tmt.TMTMain.main(TMTMain.scala)\r\nTraceback (most recent call last):\r\n  File \"./test1.py\", line 21, in <module>\r\n    y_true, y_score = stmt.results(test_labels, array=True)\r\n  File \"/home/rosko/GIT/topbox/stmt.py\", line 342, in results\r\n    'train', LIDX), 'r')\r\nIOError: [Errno 2] No such file or directory: '/home/rosko/GIT/topbox/box/test_model_/train00000/label-index.txt`"}}
{"actor":{"display_login":"cmry"}}