You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm trying to train AdaGram models, but do not have much experience in Julia - I've tried to follow the installation instructions, but keep getting this error when running train.sh or train.jl on my test files:
~/.julia/packages/AdaGram/bGnM5$ julia train.jl ../test/corpus.txt ../test/vocab.txt ../test/model.pkl
Building dictionary... ERROR: LoadError: AssertionError: Tuple{HierarchicalSoftmaxNode,Int64}[]
Stacktrace:
[1] build_huffman_tree(::Array{Int64,1}) at /home/username/.julia/packages/AdaGram/bGnM5/src/softmax.jl:62
[2] VectorModel(::Array{Int64,1}, ::Int64, ::Int64, ::Float64, ::Float64) at /home/username/.julia/packages/AdaGram/bGnM5/src/AdaGram.jl:105
[3] #read_from_file#21(::Regex, ::typeof(read_from_file), ::String, ::Int64, ::Int64, ::Float64, ::Float64, ::Int64, ::Int64, ::Set{AbstractString}) at /home/username/.julia/packages/AdaGram/bGnM5/src/util.jl:32
[4] (::AdaGram.var"#kw##read_from_file")(::NamedTuple{(:regex,),Tuple{Regex}}, ::typeof(read_from_file), ::String, ::Int64, ::Int64, ::Float64, ::Float64, ::Int64, ::Int64, ::Set{AbstractString}) at ./none:0
[5] top-level scope at /home/username/.julia/packages/AdaGram/bGnM5/train.jl:97
[6] include at ./boot.jl:328 [inlined]
[7] include_relative(::Module, ::String) at ./loading.jl:1105
[8] include(::Module, ::String) at ./Base.jl:31
[9] exec_options(::Base.JLOptions) at ./client.jl:287
[10] _start() at ./client.jl:460
in expression starting at /home/username/.julia/packages/AdaGram/bGnM5/train.jl:97
Am I doing something wrong? I've tried several different versions of Julia, but keep getting this error, sometimes a slightly different one involving a 'EOF error', depending on the version used.
Thank you!
The text was updated successfully, but these errors were encountered:
Hello! I'm trying to train AdaGram models, but do not have much experience in Julia - I've tried to follow the installation instructions, but keep getting this error when running train.sh or train.jl on my test files:
~/.julia/packages/AdaGram/bGnM5$ julia train.jl ../test/corpus.txt ../test/vocab.txt ../test/model.pkl
Building dictionary... ERROR: LoadError: AssertionError: Tuple{HierarchicalSoftmaxNode,Int64}[]
Stacktrace:
[1] build_huffman_tree(::Array{Int64,1}) at /home/username/.julia/packages/AdaGram/bGnM5/src/softmax.jl:62
[2] VectorModel(::Array{Int64,1}, ::Int64, ::Int64, ::Float64, ::Float64) at /home/username/.julia/packages/AdaGram/bGnM5/src/AdaGram.jl:105
[3] #read_from_file#21(::Regex, ::typeof(read_from_file), ::String, ::Int64, ::Int64, ::Float64, ::Float64, ::Int64, ::Int64, ::Set{AbstractString}) at /home/username/.julia/packages/AdaGram/bGnM5/src/util.jl:32
[4] (::AdaGram.var"#kw##read_from_file")(::NamedTuple{(:regex,),Tuple{Regex}}, ::typeof(read_from_file), ::String, ::Int64, ::Int64, ::Float64, ::Float64, ::Int64, ::Int64, ::Set{AbstractString}) at ./none:0
[5] top-level scope at /home/username/.julia/packages/AdaGram/bGnM5/train.jl:97
[6] include at ./boot.jl:328 [inlined]
[7] include_relative(::Module, ::String) at ./loading.jl:1105
[8] include(::Module, ::String) at ./Base.jl:31
[9] exec_options(::Base.JLOptions) at ./client.jl:287
[10] _start() at ./client.jl:460
in expression starting at /home/username/.julia/packages/AdaGram/bGnM5/train.jl:97
Am I doing something wrong? I've tried several different versions of Julia, but keep getting this error, sometimes a slightly different one involving a 'EOF error', depending on the version used.
Thank you!
The text was updated successfully, but these errors were encountered: