报错信息: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’)
![]() |
睡不着的跑步鞋 · 冬季的武汉 有点东西的哦_手机新浪网· 9 月前 · |
![]() |
活泼的匕首 · 2020年jeesite4视频教程(289集 ...· 11 月前 · |
![]() |
憨厚的感冒药 · 迦勒底屹立在漫威大地之上!_百度百科· 1 年前 · |
![]() |
买醉的沙滩裤 · Adding ...· 1 年前 · |
![]() |
怕老婆的鸡蛋 · ubuntu ...· 1 年前 · |