Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number Format Exception from loadGoogleModel #40

Open
siminou opened this issue Apr 24, 2018 · 1 comment
Open

Number Format Exception from loadGoogleModel #40

siminou opened this issue Apr 24, 2018 · 1 comment

Comments

@siminou
Copy link

siminou commented Apr 24, 2018

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants