报错信息:TypeError: Mismatch between array dtype ('<U45') and format specifier ('%.18e')
np.savetxt('wordword.txt',vocab)
np.savetxt('wordvectors.txt',embd)
参考文档:
解决办法:对格式进行指定就好了
np.savetxt(‘foo.csv’, fmt = ‘%s’)
![]() |
俊秀的海龟 · NodeJs Stream的整理总结 ...· 10 月前 · |
![]() |
彷徨的桔子 · 一句话shell系列之 Tab ...· 1 年前 · |
![]() |
大气的海龟 · C 运行时 (CRT) 和 C++ 标准库 ...· 1 年前 · |
![]() |
高大的骆驼 · Android ...· 1 年前 · |