NLPchina / Word2VEC_java

word2vec java版本的一个实现
693 stars 486 forks source link

Number Format Exception from loadGoogleModel #40

Open siminou opened 6 years ago

siminou commented 6 years ago

I got a corpus.bin from https://pan.baidu.com/s/1dFKevtv . When i tried to run the test program , shows error as Exception in thread "main" java.lang.NumberFormatException: For input string: "中共中央" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.parseInt(Integer.java:615) at com.ansj.vec.Word2VEC.loadGoogleModel(Word2VEC.java:80)

sakura182 commented 3 years ago

我遇见了类似的问题,请问解决了吗