Skip to content

Instantly share code, notes, and snippets.

@Seppo420
Created February 4, 2016 13:58
Show Gist options
  • Save Seppo420/7f44ace2cf5994d76dc4 to your computer and use it in GitHub Desktop.
Save Seppo420/7f44ace2cf5994d76dc4 to your computer and use it in GitHub Desktop.
loading vectors... /home/jp/projects/deeplearning/dl4j-0.4-examples/GoogleNews-vectors-negative300.bin
Feb 04, 2016 1:52:44 PM com.github.fommil.jni.JniLoader liberalLoad
INFO: successfully loaded /tmp/jniloader8443655283922694617netlib-native_system-linux-x86_64.so
vectors loaded...
Exception in thread "main" java.lang.IllegalArgumentException: Index [1] must not be >= shape[d].
at org.nd4j.linalg.api.shape.Shape.getOffset(Shape.java:484)
at org.nd4j.linalg.api.shape.Shape.getDouble(Shape.java:199)
at org.nd4j.linalg.api.ndarray.BaseNDArray.getDouble(BaseNDArray.java:1407)
at org.nd4j.linalg.api.ndarray.BaseNDArray.getInt(BaseNDArray.java:1385)
at org.deeplearning4j.models.embeddings.wordvectors.WordVectorsImpl.wordsNearest(WordVectorsImpl.java:218)
at testicle.HelloWord2Vec.printIsTo(HelloWord2Vec.java:74)
at testicle.HelloWord2Vec.run(HelloWord2Vec.java:52)
at testicle.HelloWord2Vec.main(HelloWord2Vec.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment