word2vec 未定义 (Julia)
word2vec is not defined (Julia)
我收到一个错误,阻止我在语料库上使用 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:\Users714\.julia\packages\Word2Vec\knfyL\src\interface.jl:73
[2] top-level scope at none:1
还有其他人遇到这个问题吗?
函数签名正确,适用于装有 Julia 1.5.2 的 macOS。我猜您可能是 Windows 用户,但 Windows 似乎不受支持。详情请看这里:https://github.com/JuliaText/Word2Vec.jl#installation
word2vec 函数仅在 linux 和 OS X 上可用。
我收到一个错误,阻止我在语料库上使用 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:\Users714\.julia\packages\Word2Vec\knfyL\src\interface.jl:73
[2] top-level scope at none:1
还有其他人遇到这个问题吗?
函数签名正确,适用于装有 Julia 1.5.2 的 macOS。我猜您可能是 Windows 用户,但 Windows 似乎不受支持。详情请看这里:https://github.com/JuliaText/Word2Vec.jl#installation
word2vec 函数仅在 linux 和 OS X 上可用。