{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/1623","repository_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j","labels_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/1623/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/1623/comments","events_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/1623/events","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/1623","id":157705228,"number":1623,"title":"ParagraphVectorsClassifierExample.java Exception in thread \"main\" java.lang.IllegalArgumentException: Length must be >= 1","user":{"login":"DYelamos","id":10819041,"avatar_url":"https://avatars.githubusercontent.com/u/10819041?v=3","gravatar_id":"","url":"https://api.github.com/users/DYelamos","html_url":"https://github.com/DYelamos","followers_url":"https://api.github.com/users/DYelamos/followers","following_url":"https://api.github.com/users/DYelamos/following{/other_user}","gists_url":"https://api.github.com/users/DYelamos/gists{/gist_id}","starred_url":"https://api.github.com/users/DYelamos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DYelamos/subscriptions","organizations_url":"https://api.github.com/users/DYelamos/orgs","repos_url":"https://api.github.com/users/DYelamos/repos","events_url":"https://api.github.com/users/DYelamos/events{/privacy}","received_events_url":"https://api.github.com/users/DYelamos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/labels/bug","name":"bug","color":"d93f0b"}],"state":"open","locked":false,"assignee":{"login":"raver119","id":12250879,"avatar_url":"https://avatars.githubusercontent.com/u/12250879?v=3","gravatar_id":"","url":"https://api.github.com/users/raver119","html_url":"https://github.com/raver119","followers_url":"https://api.github.com/users/raver119/followers","following_url":"https://api.github.com/users/raver119/following{/other_user}","gists_url":"https://api.github.com/users/raver119/gists{/gist_id}","starred_url":"https://api.github.com/users/raver119/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raver119/subscriptions","organizations_url":"https://api.github.com/users/raver119/orgs","repos_url":"https://api.github.com/users/raver119/repos","events_url":"https://api.github.com/users/raver119/events{/privacy}","received_events_url":"https://api.github.com/users/raver119/received_events","type":"User","site_admin":false},"milestone":null,"comments":31,"created_at":"2016-05-31T15:47:15Z","updated_at":"2016-06-02T01:54:54Z","closed_at":null,"body":"So i get this stack:\r\n`\"D:\\Program Files\\Java\\jdk1.8.0_65\\bin\\java\" -Didea.launcher.port=7535 \"-Didea.launcher.bin.path=C:\\Program Files (x86)\\JetBrains\\IntelliJ IDEA Community Edition 2016.1.2\\bin\" -Dfile.encoding=UTF-8 -classpath \"D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\charsets.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\deploy.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\ext\\access-bridge-64.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\ext\\cldrdata.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\ext\\dnsns.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\ext\\jaccess.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\ext\\jfxrt.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\ext\\localedata.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\ext\\nashorn.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\ext\\sunec.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\ext\\sunjce_provider.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\ext\\sunmscapi.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\ext\\sunpkcs11.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\ext\\zipfs.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\javaws.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\jce.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\jfr.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\jfxswt.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\jsse.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\management-agent.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\plugin.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\resources.jar;D:\\Program Files\\Java\\jdk1.8.0_65\\jre\\lib\\rt.jar;D:\\Dropbox\\tfg\\prueba_word2vec\\dl4j-0.4-examples\\target\\classes;C:\\Users\\Dani\\.m2\\repository\\org\\deeplearning4j\\deeplearning4j-nlp\\0.4-rc3.9\\deeplearning4j-nlp-0.4-rc3.9.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\lucene\\lucene-analyzers-common\\5.3.1\\lucene-analyzers-common-5.3.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\lucene\\lucene-core\\5.3.1\\lucene-core-5.3.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\lucene\\lucene-queryparser\\5.3.1\\lucene-queryparser-5.3.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\lucene\\lucene-queries\\5.3.1\\lucene-queries-5.3.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\lucene\\lucene-sandbox\\5.3.1\\lucene-sandbox-5.3.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\directory\\studio\\org.apache.commons.codec\\1.8\\org.apache.commons.codec-1.8.jar;C:\\Users\\Dani\\.m2\\repository\\commons-codec\\commons-codec\\1.8\\commons-codec-1.8.jar;C:\\Users\\Dani\\.m2\\repository\\it\\unimi\\dsi\\dsiutils\\2.2.2\\dsiutils-2.2.2.jar;C:\\Users\\Dani\\.m2\\repository\\it\\unimi\\dsi\\fastutil\\6.5.15\\fastutil-6.5.15.jar;C:\\Users\\Dani\\.m2\\repository\\com\\martiansoftware\\jsap\\2.1\\jsap-2.1.jar;C:\\Users\\Dani\\.m2\\repository\\commons-configuration\\commons-configuration\\1.8\\commons-configuration-1.8.jar;C:\\Users\\Dani\\.m2\\repository\\commons-lang\\commons-lang\\2.6\\commons-lang-2.6.jar;C:\\Users\\Dani\\.m2\\repository\\commons-logging\\commons-logging\\1.1.1\\commons-logging-1.1.1.jar;C:\\Users\\Dani\\.m2\\repository\\commons-collections\\commons-collections\\20040616\\commons-collections-20040616.jar;C:\\Users\\Dani\\.m2\\repository\\org\\cleartk\\cleartk-snowball\\2.0.0\\cleartk-snowball-2.0.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\lucene\\lucene-snowball\\3.0.3\\lucene-snowball-3.0.3.jar;C:\\Users\\Dani\\.m2\\repository\\org\\cleartk\\cleartk-util\\2.0.0\\cleartk-util-2.0.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\uima\\uimaj-core\\2.5.0\\uimaj-core-2.5.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\uima\\uimafit-core\\2.0.0\\uimafit-core-2.0.0.jar;C:\\Users\\Dani\\.m2\\repository\\commons-logging\\commons-logging-api\\1.1\\commons-logging-api-1.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\springframework\\spring-core\\3.1.2.RELEASE\\spring-core-3.1.2.RELEASE.jar;C:\\Users\\Dani\\.m2\\repository\\org\\springframework\\spring-asm\\3.1.2.RELEASE\\spring-asm-3.1.2.RELEASE.jar;C:\\Users\\Dani\\.m2\\repository\\org\\springframework\\spring-context\\3.1.2.RELEASE\\spring-context-3.1.2.RELEASE.jar;C:\\Users\\Dani\\.m2\\repository\\org\\springframework\\spring-aop\\3.1.2.RELEASE\\spring-aop-3.1.2.RELEASE.jar;C:\\Users\\Dani\\.m2\\repository\\aopalliance\\aopalliance\\1.0\\aopalliance-1.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\springframework\\spring-expression\\3.1.2.RELEASE\\spring-expression-3.1.2.RELEASE.jar;C:\\Users\\Dani\\.m2\\repository\\org\\springframework\\spring-beans\\3.1.2.RELEASE\\spring-beans-3.1.2.RELEASE.jar;C:\\Users\\Dani\\.m2\\repository\\org\\cleartk\\cleartk-type-system\\2.0.0\\cleartk-type-system-2.0.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\cleartk\\cleartk-opennlp-tools\\2.0.0\\cleartk-opennlp-tools-2.0.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\opennlp\\opennlp-maxent\\3.0.3\\opennlp-maxent-3.0.3.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\opennlp\\opennlp-tools\\1.5.3\\opennlp-tools-1.5.3.jar;C:\\Users\\Dani\\.m2\\repository\\net\\sf\\jwordnet\\jwnl\\1.3.3\\jwnl-1.3.3.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\opennlp\\opennlp-uima\\1.5.3\\opennlp-uima-1.5.3.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-assets\\0.8.0\\dropwizard-assets-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-core\\0.8.0\\dropwizard-core-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-util\\0.8.0\\dropwizard-util-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\com\\google\\code\\findbugs\\jsr305\\3.0.0\\jsr305-3.0.0.jar;C:\\Users\\Dani\\.m2\\repository\\joda-time\\joda-time\\2.7\\joda-time-2.7.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-jackson\\0.8.0\\dropwizard-jackson-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\com\\fasterxml\\jackson\\datatype\\jackson-datatype-jdk7\\2.5.1\\jackson-datatype-jdk7-2.5.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\fasterxml\\jackson\\datatype\\jackson-datatype-guava\\2.5.1\\jackson-datatype-guava-2.5.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\fasterxml\\jackson\\module\\jackson-module-afterburner\\2.5.1\\jackson-module-afterburner-2.5.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\fasterxml\\jackson\\datatype\\jackson-datatype-joda\\2.5.1\\jackson-datatype-joda-2.5.1.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-validation\\0.8.0\\dropwizard-validation-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\hibernate\\hibernate-validator\\5.1.3.Final\\hibernate-validator-5.1.3.Final.jar;C:\\Users\\Dani\\.m2\\repository\\javax\\validation\\validation-api\\1.1.0.Final\\validation-api-1.1.0.Final.jar;C:\\Users\\Dani\\.m2\\repository\\org\\jboss\\logging\\jboss-logging\\3.1.3.GA\\jboss-logging-3.1.3.GA.jar;C:\\Users\\Dani\\.m2\\repository\\com\\fasterxml\\classmate\\1.0.0\\classmate-1.0.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\javax.el\\3.0.0\\javax.el-3.0.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-configuration\\0.8.0\\dropwizard-configuration-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-logging\\0.8.0\\dropwizard-logging-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\metrics\\metrics-logback\\3.1.0\\metrics-logback-3.1.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\slf4j\\jul-to-slf4j\\1.7.10\\jul-to-slf4j-1.7.10.jar;C:\\Users\\Dani\\.m2\\repository\\org\\slf4j\\log4j-over-slf4j\\1.7.10\\log4j-over-slf4j-1.7.10.jar;C:\\Users\\Dani\\.m2\\repository\\org\\slf4j\\jcl-over-slf4j\\1.7.10\\jcl-over-slf4j-1.7.10.jar;C:\\Users\\Dani\\.m2\\repository\\org\\eclipse\\jetty\\jetty-util\\9.2.9.v20150224\\jetty-util-9.2.9.v20150224.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-metrics\\0.8.0\\dropwizard-metrics-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-jersey\\0.8.0\\dropwizard-jersey-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\jersey\\core\\jersey-server\\2.16\\jersey-server-2.16.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\jersey\\media\\jersey-media-jaxb\\2.16\\jersey-media-jaxb-2.16.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\jersey\\ext\\jersey-metainf-services\\2.16\\jersey-metainf-services-2.16.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\metrics\\metrics-jersey2\\3.1.0\\metrics-jersey2-3.1.0.jar;C:\\Users\\Dani\\.m2\\repository\\com\\fasterxml\\jackson\\jaxrs\\jackson-jaxrs-json-provider\\2.5.1\\jackson-jaxrs-json-provider-2.5.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\fasterxml\\jackson\\jaxrs\\jackson-jaxrs-base\\2.5.1\\jackson-jaxrs-base-2.5.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\fasterxml\\jackson\\module\\jackson-module-jaxb-annotations\\2.5.1\\jackson-module-jaxb-annotations-2.5.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\jersey\\containers\\jersey-container-servlet\\2.16\\jersey-container-servlet-2.16.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\jersey\\containers\\jersey-container-servlet-core\\2.16\\jersey-container-servlet-core-2.16.jar;C:\\Users\\Dani\\.m2\\repository\\org\\eclipse\\jetty\\jetty-server\\9.2.9.v20150224\\jetty-server-9.2.9.v20150224.jar;C:\\Users\\Dani\\.m2\\repository\\javax\\servlet\\javax.servlet-api\\3.1.0\\javax.servlet-api-3.1.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\eclipse\\jetty\\jetty-io\\9.2.9.v20150224\\jetty-io-9.2.9.v20150224.jar;C:\\Users\\Dani\\.m2\\repository\\org\\eclipse\\jetty\\jetty-webapp\\9.2.9.v20150224\\jetty-webapp-9.2.9.v20150224.jar;C:\\Users\\Dani\\.m2\\repository\\org\\eclipse\\jetty\\jetty-xml\\9.2.9.v20150224\\jetty-xml-9.2.9.v20150224.jar;C:\\Users\\Dani\\.m2\\repository\\org\\eclipse\\jetty\\jetty-continuation\\9.2.9.v20150224\\jetty-continuation-9.2.9.v20150224.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-jetty\\0.8.0\\dropwizard-jetty-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\metrics\\metrics-jetty9\\3.1.0\\metrics-jetty9-3.1.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\eclipse\\jetty\\jetty-servlet\\9.2.9.v20150224\\jetty-servlet-9.2.9.v20150224.jar;C:\\Users\\Dani\\.m2\\repository\\org\\eclipse\\jetty\\jetty-security\\9.2.9.v20150224\\jetty-security-9.2.9.v20150224.jar;C:\\Users\\Dani\\.m2\\repository\\org\\eclipse\\jetty\\jetty-servlets\\9.2.9.v20150224\\jetty-servlets-9.2.9.v20150224.jar;C:\\Users\\Dani\\.m2\\repository\\org\\eclipse\\jetty\\jetty-http\\9.2.9.v20150224\\jetty-http-9.2.9.v20150224.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-lifecycle\\0.8.0\\dropwizard-lifecycle-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\metrics\\metrics-core\\3.1.0\\metrics-core-3.1.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\metrics\\metrics-jvm\\3.1.0\\metrics-jvm-3.1.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\metrics\\metrics-servlets\\3.1.0\\metrics-servlets-3.1.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\metrics\\metrics-json\\3.1.0\\metrics-json-3.1.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\metrics\\metrics-healthchecks\\3.1.0\\metrics-healthchecks-3.1.0.jar;C:\\Users\\Dani\\.m2\\repository\\net\\sourceforge\\argparse4j\\argparse4j\\0.4.4\\argparse4j-0.4.4.jar;C:\\Users\\Dani\\.m2\\repository\\org\\eclipse\\jetty\\toolchain\\setuid\\jetty-setuid-java\\1.0.2\\jetty-setuid-java-1.0.2.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-servlets\\0.8.0\\dropwizard-servlets-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\metrics\\metrics-annotation\\3.1.0\\metrics-annotation-3.1.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-views-mustache\\0.8.0\\dropwizard-views-mustache-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-views\\0.8.0\\dropwizard-views-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\com\\github\\spullara\\mustache\\java\\compiler\\0.8.17\\compiler-0.8.17.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-views-freemarker\\0.8.0\\dropwizard-views-freemarker-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\freemarker\\freemarker\\2.3.21\\freemarker-2.3.21.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\nd4j-jackson\\0.4-rc3.9\\nd4j-jackson-0.4-rc3.9.jar;C:\\Users\\Dani\\.m2\\repository\\org\\deeplearning4j\\deeplearning4j-core\\0.4-rc3.9\\deeplearning4j-core-0.4-rc3.9.jar;C:\\Users\\Dani\\.m2\\repository\\io\\netty\\netty-buffer\\4.0.28.Final\\netty-buffer-4.0.28.Final.jar;C:\\Users\\Dani\\.m2\\repository\\io\\netty\\netty-common\\4.0.28.Final\\netty-common-4.0.28.Final.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\canova-api\\0.0.0.15\\canova-api-0.0.0.15.jar;C:\\Users\\Dani\\.m2\\repository\\org\\slf4j\\slf4j-api\\1.7.12\\slf4j-api-1.7.12.jar;C:\\Users\\Dani\\.m2\\repository\\ch\\qos\\logback\\logback-classic\\1.1.2\\logback-classic-1.1.2.jar;C:\\Users\\Dani\\.m2\\repository\\ch\\qos\\logback\\logback-core\\1.1.2\\logback-core-1.1.2.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\commons\\commons-math3\\3.4.1\\commons-math3-3.4.1.jar;C:\\Users\\Dani\\.m2\\repository\\commons-io\\commons-io\\2.4\\commons-io-2.4.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\commons\\commons-compress\\1.8\\commons-compress-1.8.jar;C:\\Users\\Dani\\.m2\\repository\\org\\tukaani\\xz\\1.5\\xz-1.5.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\nd4j-api\\0.4-rc3.9\\nd4j-api-0.4-rc3.9.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\nd4j-context\\0.4-rc3.9\\nd4j-context-0.4-rc3.9.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\commons\\commons-lang3\\3.3.1\\commons-lang3-3.3.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\fasterxml\\jackson\\core\\jackson-core\\2.5.1\\jackson-core-2.5.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\fasterxml\\jackson\\core\\jackson-databind\\2.5.1\\jackson-databind-2.5.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\json\\json\\20131018\\json-20131018.jar;C:\\Users\\Dani\\.m2\\repository\\com\\fasterxml\\jackson\\core\\jackson-annotations\\2.5.1\\jackson-annotations-2.5.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\projectlombok\\lombok\\1.16.4\\lombok-1.16.4.jar;C:\\Users\\Dani\\.m2\\repository\\com\\fasterxml\\jackson\\dataformat\\jackson-dataformat-yaml\\2.5.1\\jackson-dataformat-yaml-2.5.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\yaml\\snakeyaml\\1.12\\snakeyaml-1.12.jar;C:\\Users\\Dani\\.m2\\repository\\org\\deeplearning4j\\deeplearning4j-ui\\0.4-rc3.9\\deeplearning4j-ui-0.4-rc3.9.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-client\\0.8.0\\dropwizard-client-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\jersey\\core\\jersey-client\\2.16\\jersey-client-2.16.jar;C:\\Users\\Dani\\.m2\\repository\\javax\\ws\\rs\\javax.ws.rs-api\\2.0.1\\javax.ws.rs-api-2.0.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\hk2\\hk2-api\\2.4.0-b09\\hk2-api-2.4.0-b09.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\hk2\\hk2-utils\\2.4.0-b09\\hk2-utils-2.4.0-b09.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\hk2\\external\\aopalliance-repackaged\\2.4.0-b09\\aopalliance-repackaged-2.4.0-b09.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\hk2\\external\\javax.inject\\2.4.0-b09\\javax.inject-2.4.0-b09.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\hk2\\hk2-locator\\2.4.0-b09\\hk2-locator-2.4.0-b09.jar;C:\\Users\\Dani\\.m2\\repository\\org\\javassist\\javassist\\3.18.1-GA\\javassist-3.18.1-GA.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\metrics\\metrics-httpclient\\3.1.0\\metrics-httpclient-3.1.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\httpcomponents\\httpclient\\4.3.5\\httpclient-4.3.5.jar;C:\\Users\\Dani\\.m2\\repository\\org\\apache\\httpcomponents\\httpcore\\4.3.2\\httpcore-4.3.2.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\jersey\\connectors\\jersey-apache-connector\\2.16\\jersey-apache-connector-2.16.jar;C:\\Users\\Dani\\.m2\\repository\\io\\dropwizard\\dropwizard-forms\\0.8.0\\dropwizard-forms-0.8.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\jersey\\media\\jersey-media-multipart\\2.16\\jersey-media-multipart-2.16.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\jersey\\core\\jersey-common\\2.16\\jersey-common-2.16.jar;C:\\Users\\Dani\\.m2\\repository\\javax\\annotation\\javax.annotation-api\\1.2\\javax.annotation-api-1.2.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\jersey\\bundles\\repackaged\\jersey-guava\\2.16\\jersey-guava-2.16.jar;C:\\Users\\Dani\\.m2\\repository\\org\\glassfish\\hk2\\osgi-resource-locator\\1.0.1\\osgi-resource-locator-1.0.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\jvnet\\mimepull\\mimepull\\1.9.3\\mimepull-1.9.3.jar;C:\\Users\\Dani\\.m2\\repository\\com\\google\\guava\\guava\\19.0\\guava-19.0.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\nd4j-native\\0.4-rc3.9\\nd4j-native-0.4-rc3.9.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\nd4j-native\\0.4-rc3.9\\nd4j-native-0.4-rc3.9-windows-x86_64.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\nd4j-native-api\\0.4-rc3.9\\nd4j-native-api-0.4-rc3.9.jar;C:\\Users\\Dani\\.m2\\repository\\org\\bytedeco\\javacpp\\1.2\\javacpp-1.2.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\canova-nd4j-image\\0.0.0.15\\canova-nd4j-image-0.0.0.15.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\nd4j-buffer\\0.4-rc3.9\\nd4j-buffer-0.4-rc3.9.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\nd4j-common\\0.4-rc3.9\\nd4j-common-0.4-rc3.9.jar;C:\\Users\\Dani\\.m2\\repository\\org\\reflections\\reflections\\0.9.10\\reflections-0.9.10.jar;C:\\Users\\Dani\\.m2\\repository\\com\\google\\code\\findbugs\\annotations\\2.0.1\\annotations-2.0.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\canova-nd4j-common\\0.0.0.15\\canova-nd4j-common-0.0.0.15.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\canova-data-image\\0.0.0.15\\canova-data-image-0.0.0.15.jar;C:\\Users\\Dani\\.m2\\repository\\com\\github\\jai-imageio\\jai-imageio-core\\1.3.0\\jai-imageio-core-1.3.0.jar;C:\\Users\\Dani\\.m2\\repository\\com\\twelvemonkeys\\imageio\\imageio-jpeg\\3.1.1\\imageio-jpeg-3.1.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\twelvemonkeys\\imageio\\imageio-core\\3.1.1\\imageio-core-3.1.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\twelvemonkeys\\imageio\\imageio-metadata\\3.1.1\\imageio-metadata-3.1.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\twelvemonkeys\\common\\common-lang\\3.1.1\\common-lang-3.1.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\twelvemonkeys\\common\\common-io\\3.1.1\\common-io-3.1.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\twelvemonkeys\\common\\common-image\\3.1.1\\common-image-3.1.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\twelvemonkeys\\imageio\\imageio-tiff\\3.1.1\\imageio-tiff-3.1.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\twelvemonkeys\\imageio\\imageio-psd\\3.1.1\\imageio-psd-3.1.1.jar;C:\\Users\\Dani\\.m2\\repository\\com\\twelvemonkeys\\imageio\\imageio-bmp\\3.1.1\\imageio-bmp-3.1.1.jar;C:\\Users\\Dani\\.m2\\repository\\org\\bytedeco\\javacv\\1.2\\javacv-1.2.jar;C:\\Users\\Dani\\.m2\\repository\\org\\bytedeco\\javacpp-presets\\opencv\\3.1.0-1.2\\opencv-3.1.0-1.2.jar;C:\\Users\\Dani\\.m2\\repository\\org\\bytedeco\\javacpp-presets\\opencv\\3.1.0-1.2\\opencv-3.1.0-1.2-windows-x86.jar;C:\\Users\\Dani\\.m2\\repository\\org\\nd4j\\canova-nd4j-codec\\0.0.0.15\\canova-nd4j-codec-0.0.0.15.jar;C:\\Users\\Dani\\.m2\\repository\\org\\jcodec\\jcodec\\0.1.5\\jcodec-0.1.5.jar;C:\\Users\\Dani\\.m2\\repository\\jfree\\jfreechart\\1.0.13\\jfreechart-1.0.13.jar;C:\\Users\\Dani\\.m2\\repository\\jfree\\jcommon\\1.0.16\\jcommon-1.0.16.jar;C:\\Program Files (x86)\\JetBrains\\IntelliJ IDEA Community Edition 2016.1.2\\lib\\idea_rt.jar\" com.intellij.rt.execution.application.AppMain org.deeplearning4j.examples.nlp.paragraphvectors.ParagraphVectorsClassifierExample\r\no.d.m.s.SequenceVectors - Starting vocabulary building...\r\no.d.m.w.w.VocabConstructor - Sequences checked: [4438], Current vocabulary size: [27370]\r\no.d.m.s.SequenceVectors - Building learning algorithms:\r\no.d.m.s.SequenceVectors -           building ElementsLearningAlgorithm: [SkipGram]\r\no.d.m.s.SequenceVectors -           building SequenceLearningAlgorithm: [DBOW]\r\no.d.m.s.SequenceVectors - Starting learning process...\r\no.d.m.s.SequenceVectors - Epoch: [1]; Words vectorized so far: [976072];  Lines vectorized so far: [4438]; learningRate: [0.001]\r\nException in thread \"main\" java.lang.IllegalArgumentException: Length must be >= 1\r\n\tat org.nd4j.linalg.api.buffer.BaseDataBuffer.<init>(BaseDataBuffer.java:537)\r\n\tat org.nd4j.linalg.api.buffer.FloatBuffer.<init>(FloatBuffer.java:40)\r\n\tat org.nd4j.linalg.api.buffer.factory.DefaultDataBufferFactory.createFloat(DefaultDataBufferFactory.java:227)\r\n\tat org.nd4j.linalg.factory.Nd4j.createBuffer(Nd4j.java:1161)\r\n\tat org.nd4j.linalg.api.ndarray.BaseNDArray.<init>(BaseNDArray.java:225)\r\n\tat org.nd4j.linalg.cpu.nativecpu.NDArray.<init>(NDArray.java:107)\r\n\tat org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory.create(CpuNDArrayFactory.java:239)\r\n\tat org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:4030)\r\n\tat org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:3996)\r\n\tat org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:3270)\r\n\tat org.deeplearning4j.examples.nlp.paragraphvectors.tools.MeansBuilder.documentAsVector(MeansBuilder.java:44)\r\n\tat org.deeplearning4j.examples.nlp.paragraphvectors.ParagraphVectorsClassifierExample.checkUnlabeledData(ParagraphVectorsClassifierExample.java:118)\r\n\tat org.deeplearning4j.examples.nlp.paragraphvectors.ParagraphVectorsClassifierExample.main(ParagraphVectorsClassifierExample.java:50)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)\r\n\r\nProcess finished with exit code 1`\r\nThis is a picture of my resources:\r\n![4e748e67f42b0b12ee473f1e8f17fb96](https://cloud.githubusercontent.com/assets/10819041/15680913/a3a79c34-2757-11e6-8328-16e9ef89b154.png)\r\n\r\nan example of the 800 files that are each folder of the unlabeled folders is:\r\n\"6406_The Witcher 3 Wild Hunt\"\r\nor\r\n\"9799_DARK SOULS III\"\r\n\r\nI have used other names to mask the purpose of the data that I am analyzing, but i am given the same error if I use those.\r\n\r\nThanks for your time.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/comments/223175614","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/1623#issuecomment-223175614","issue_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/1623","id":223175614,"user":{"login":"valncrt","id":11380887,"avatar_url":"https://avatars.githubusercontent.com/u/11380887?v=3","gravatar_id":"","url":"https://api.github.com/users/valncrt","html_url":"https://github.com/valncrt","followers_url":"https://api.github.com/users/valncrt/followers","following_url":"https://api.github.com/users/valncrt/following{/other_user}","gists_url":"https://api.github.com/users/valncrt/gists{/gist_id}","starred_url":"https://api.github.com/users/valncrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valncrt/subscriptions","organizations_url":"https://api.github.com/users/valncrt/orgs","repos_url":"https://api.github.com/users/valncrt/repos","events_url":"https://api.github.com/users/valncrt/events{/privacy}","received_events_url":"https://api.github.com/users/valncrt/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T01:54:54Z","updated_at":"2016-06-02T01:54:54Z","body":"The above regular expressions to remove lines with no words didn't work correctly.  I removed the empty lines them source data instead.  This is the MeansBuild class I ended up using which worked.\r\n\r\n\r\nimport scala.collection.JavaConverters._\r\nimport org.deeplearning4j.models.paragraphvectors.ParagraphVectors\r\nimport java.util.concurrent.atomic.AtomicInteger\r\nimport org.deeplearning4j.models.embeddings.inmemory.InMemoryLookupTable\r\nimport org.deeplearning4j.models.word2vec.VocabWord\r\nimport org.deeplearning4j.text.documentiterator.LabelledDocument\r\nimport org.deeplearning4j.text.tokenization.tokenizerfactory.TokenizerFactory\r\nimport org.nd4j.linalg.factory.Nd4j\r\nimport org.nd4j.linalg.api.ndarray.INDArray\r\nimport scala.collection.mutable.StringBuilder\r\nclass MeansBuilder(lookupTable: InMemoryLookupTable[VocabWord], tokenizerFactory: TokenizerFactory,paragraphVectors:ParagraphVectors) {\r\n  private val vocabCache = lookupTable.getVocab\r\n  def documentAsVector(document: LabelledDocument): INDArray = {\r\n   // println(\"New line being processed....\")\r\n    val documentAsTokensComplete: java.util.List[String]  = tokenizerFactory.create(document.getContent()).getTokens()\r\n   val documentAsTokens = documentAsTokensComplete.asScala.map( x => if(paragraphVectors.getWordVector(x) == null)  \"test\" else x) \r\n    val cnt: AtomicInteger = new AtomicInteger(0)\r\n    documentAsTokens.foreach { word =>\r\n      println(\"Word is: \"+ word)\r\n     // println(\"Word has token?: \"+ vocabCache.hasToken(word))\r\n        if (vocabCache.containsWord(word)) cnt.incrementAndGet()\r\n    }\r\n   // val cnt1 = if(cnt.get() ==0) 1   else cnt.get() //This is a workaround I came up with for bug https://github.com/deeplearning4j/deeplearning4j/issues/1623\r\n    val allWords: INDArray = Nd4j.create(cnt.get(), lookupTable.layerSize())\r\n     cnt.set(0)\r\n    documentAsTokens.foreach { word =>\r\n      if (vocabCache.containsWord(word))\r\n        allWords.putRow(cnt.getAndIncrement(), lookupTable.vector(word))\r\n    }\r\n    allWords.mean(0)\r\n  }\r\n}\r\n"}}
{"actor":{"display_login":"valncrt"}}