我收到一个错误,阻止我在语料库上使用Julia中的word2vec函数。
Install.pkg("Word2Vec")
代码:
using Word2Vec
word2vec("text8","vec.txt",verbose=true)错误消息:
ERROR: UndefVarError: word2vec not defined
Stacktrace:
[1] word2vec(::String, ::String; size::Int64, window::Int64, sample::Float64, hs::Int64, negative::Int64, threads::Int64, iter::Int64, min_count::Int64, alpha::Float64, debug::Int644, binary::Int64, cbow::Int64, save_vocab::Nothing, read_vocab::Nothing, verbose::Bool) at C:\Users\15714\.julia\packages\Word2Vec\knfyL\src\interface.jl:73
[2] top-level scope at none:1还有其他人有这个问题吗?
发布于 2020-11-28 07:56:43
函数签名是正确的,并且在Julia1.5.2的macOS上工作正常。我猜你可能是一个Windows用户,看起来Windows不受支持。详情请看这里:https://github.com/JuliaText/Word2Vec.jl#installation
发布于 2020-12-07 19:43:43
word2vec函数仅在linux和OS上可用。
https://stackoverflow.com/questions/65041885
复制相似问题