Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: Tuple{HierarchicalSoftmaxNode,Int64}[] #38

Open
rhowardstone opened this issue Feb 2, 2020 · 0 comments
Open

AssertionError: Tuple{HierarchicalSoftmaxNode,Int64}[] #38

rhowardstone opened this issue Feb 2, 2020 · 0 comments

Comments

@rhowardstone
Copy link

rhowardstone commented Feb 2, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant