You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -3
at com.hankcs.hanlp.mining.word2vec.TextFileCorpus.reduceVocab(TextFileCorpus.java:69)
at com.hankcs.hanlp.mining.word2vec.TextFileCorpus.learnVocab(TextFileCorpus.java:142)
at com.hankcs.hanlp.mining.word2vec.Word2VecTraining.trainModel(Word2VecTraining.java:326)
at com.hankcs.hanlp.mining.word2vec.Train.execute(Train.java:33)
at com.hankcs.hanlp.mining.word2vec.Train.main(Train.java:38)
The text was updated successfully, but these errors were encountered:
注意事项
请确认下列注意事项:
版本号
当前最新版本号是:1.5.2
我使用的版本是:1.5.2
我的问题
训练最新的zh wiki抛出数组越界异常
复现问题
[hadoop@LOCAL-202-89 new]$ java -cp hanlp-portable-1.5.2.jar com.hankcs.hanlp.mining.word2vec.Train -input zhwiki-latest-pages-articles.xml.simplified -output zhwiki.txt
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -3
at com.hankcs.hanlp.mining.word2vec.TextFileCorpus.reduceVocab(TextFileCorpus.java:69)
at com.hankcs.hanlp.mining.word2vec.TextFileCorpus.learnVocab(TextFileCorpus.java:142)
at com.hankcs.hanlp.mining.word2vec.Word2VecTraining.trainModel(Word2VecTraining.java:326)
at com.hankcs.hanlp.mining.word2vec.Train.execute(Train.java:33)
at com.hankcs.hanlp.mining.word2vec.Train.main(Train.java:38)
The text was updated successfully, but these errors were encountered: