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

运行到./bazel-bin/kcws/train/generate_training vec.txt <语料目录> all.txt报错,求教ing #103

Open
xiahaobo opened this issue Dec 7, 2017 · 5 comments

Comments

@xiahaobo
Copy link

xiahaobo commented Dec 7, 2017

执行到这步报了个错,这是什么原因?
[tomcat@samuel kcws]$ ./bazel-bin/kcws/train/generate_training vec.txt ../2014/ all.txt
got dim:50
WARNING: Logging before InitGoogleLogging() is written to STDERR
I1207 09:07:25.184274 21414 word2vec_vob.cc:122] got tn:1,max id=0
I1207 09:07:25.184463 21414 word2vec_vob.cc:127] f[0] avg:0.008005,std:0
I1207 09:07:25.184561 21414 word2vec_vob.cc:127] f[1] avg:0.008839,std:0
I1207 09:07:25.184599 21414 word2vec_vob.cc:127] f[2] avg:-0.007661,std:0
I1207 09:07:25.184635 21414 word2vec_vob.cc:127] f[3] avg:-0.006556,std:0
I1207 09:07:25.184677 21414 word2vec_vob.cc:127] f[4] avg:0.002733,std:0
I1207 09:07:25.184717 21414 word2vec_vob.cc:127] f[5] avg:0.006042,std:0
I1207 09:07:25.184758 21414 word2vec_vob.cc:127] f[6] avg:0.001882,std:0
I1207 09:07:25.184793 21414 word2vec_vob.cc:127] f[7] avg:0.000423,std:0
I1207 09:07:25.184828 21414 word2vec_vob.cc:127] f[8] avg:-0.007207,std:0
I1207 09:07:25.184864 21414 word2vec_vob.cc:127] f[9] avg:0.004437,std:0
I1207 09:07:25.184898 21414 word2vec_vob.cc:127] f[10] avg:-0.008713,std:0
I1207 09:07:25.184933 21414 word2vec_vob.cc:127] f[11] avg:0.002499,std:0
I1207 09:07:25.184967 21414 word2vec_vob.cc:127] f[12] avg:-0.001503,std:0
I1207 09:07:25.185003 21414 word2vec_vob.cc:127] f[13] avg:-0.001914,std:0
I1207 09:07:25.185037 21414 word2vec_vob.cc:127] f[14] avg:-0.006631,std:0
I1207 09:07:25.185071 21414 word2vec_vob.cc:127] f[15] avg:-0.003764,std:0
I1207 09:07:25.185122 21414 word2vec_vob.cc:127] f[16] avg:0.005159,std:0
I1207 09:07:25.185158 21414 word2vec_vob.cc:127] f[17] avg:0.006051,std:0
I1207 09:07:25.185191 21414 word2vec_vob.cc:127] f[18] avg:0.005938,std:0
I1207 09:07:25.185226 21414 word2vec_vob.cc:127] f[19] avg:0.003195,std:0
I1207 09:07:25.185261 21414 word2vec_vob.cc:127] f[20] avg:0.00309,std:0
I1207 09:07:25.185297 21414 word2vec_vob.cc:127] f[21] avg:-0.007605,std:0
I1207 09:07:25.185331 21414 word2vec_vob.cc:127] f[22] avg:-0.008192,std:0
I1207 09:07:25.185365 21414 word2vec_vob.cc:127] f[23] avg:0.009939,std:0
I1207 09:07:25.185400 21414 word2vec_vob.cc:127] f[24] avg:0.007603,std:0
I1207 09:07:25.185434 21414 word2vec_vob.cc:127] f[25] avg:0.00618,std:0
I1207 09:07:25.185468 21414 word2vec_vob.cc:127] f[26] avg:-0.001208,std:0
I1207 09:07:25.185503 21414 word2vec_vob.cc:127] f[27] avg:0.008031,std:0
I1207 09:07:25.185539 21414 word2vec_vob.cc:127] f[28] avg:-0.00099,std:0
I1207 09:07:25.185573 21414 word2vec_vob.cc:127] f[29] avg:0.001469,std:0
I1207 09:07:25.185608 21414 word2vec_vob.cc:127] f[30] avg:-0.000298,std:0
I1207 09:07:25.185643 21414 word2vec_vob.cc:127] f[31] avg:-0.005966,std:0
I1207 09:07:25.185678 21414 word2vec_vob.cc:127] f[32] avg:0.002625,std:0
I1207 09:07:25.185712 21414 word2vec_vob.cc:127] f[33] avg:-0.002675,std:0
I1207 09:07:25.185746 21414 word2vec_vob.cc:127] f[34] avg:-0.007651,std:0
I1207 09:07:25.185781 21414 word2vec_vob.cc:127] f[35] avg:0.009508,std:0
I1207 09:07:25.185816 21414 word2vec_vob.cc:127] f[36] avg:0.008759,std:0
I1207 09:07:25.185850 21414 word2vec_vob.cc:127] f[37] avg:-0.00219,std:0
I1207 09:07:25.185885 21414 word2vec_vob.cc:127] f[38] avg:-0.000452,std:0
I1207 09:07:25.185920 21414 word2vec_vob.cc:127] f[39] avg:0.001018,std:0
I1207 09:07:25.185955 21414 word2vec_vob.cc:127] f[40] avg:-0.007275,std:0
I1207 09:07:25.185989 21414 word2vec_vob.cc:127] f[41] avg:-0.008014,std:0
I1207 09:07:25.186024 21414 word2vec_vob.cc:127] f[42] avg:0.009109,std:0
I1207 09:07:25.186058 21414 word2vec_vob.cc:127] f[43] avg:0.000126,std:0
I1207 09:07:25.186111 21414 word2vec_vob.cc:127] f[44] avg:-0.005165,std:0
I1207 09:07:25.186148 21414 word2vec_vob.cc:127] f[45] avg:-0.006084,std:0
I1207 09:07:25.186183 21414 word2vec_vob.cc:127] f[46] avg:-0.006153,std:0
I1207 09:07:25.186218 21414 word2vec_vob.cc:127] f[47] avg:0.003394,std:0
I1207 09:07:25.186251 21414 word2vec_vob.cc:127] f[48] avg:0.000403,std:0
I1207 09:07:25.186286 21414 word2vec_vob.cc:127] f[49] avg:0.002662,std:0
F1207 09:07:25.186319 21414 word2vec_vob.cc:130] Check failed: secondToken == "" second token should be ''
*** Check failure stack trace: ***

@xiahaobo xiahaobo changed the title 运行到./bazel-bin/kcws/train/generate_training vec.txt <语料目录> all.txt报错 运行到./bazel-bin/kcws/train/generate_training vec.txt <语料目录> all.txt报错,求教ing Dec 7, 2017
@Energy9502
Copy link

我也是运行到这块报错,./bazel-bin/kcws/train/generate_training vec.txt ../2014/ all.txt
Traceback (most recent call last):
File "/home/energy/Energy/kcws/bazel-bin/kcws/train/generate_training.runfiles/main/kcws/train/generate_training.py", line 9, in
import # w2v
ImportError: No module named 'w2v'

@liyewu
Copy link

liyewu commented May 28, 2018

我的也是,运行到运行到./bazel-bin/kcws/train/generate_training vec.txt <语料目录> all.txt报错,求教是什么原因呢?

@liyewu
Copy link

liyewu commented Jun 11, 2018

可是尝试把命令中的路径改为绝对路径试一下,我的这样没有报错

@xingzhoupy
Copy link

我也是出现 ImportError: No module named 'w2v' 看看了 根本没有这个库,请问各位大神怎么解决了,
谢谢了

@fine145
Copy link

fine145 commented Feb 18, 2019

我也是这个问题,大神们后来怎么解决的

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

5 participants