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

load_embeddings errror #103

Closed
MariaHei opened this issue Mar 1, 2024 · 0 comments
Closed

load_embeddings errror #103

MariaHei opened this issue Mar 1, 2024 · 0 comments

Comments

@MariaHei
Copy link
Collaborator

MariaHei commented Mar 1, 2024

load_S_matrix_from_fasttext throws the following error:

ERROR: MethodError: no method matching load_embeddings(::Type{FastText_Text{:nl}}, ::IOStream, ::Int64, ::Vector{String})

Closest candidates are:
  load_embeddings(::Type{T}, ::IO; max_vocab_size, keep_words) where T<:Embeddings.EmbeddingSystem
   @ Embeddings ~/.julia/packages/Embeddings/5romo/src/Embeddings.jl:92
  load_embeddings(::Type{T}) where T<:Embeddings.EmbeddingSystem
   @ Embeddings ~/.julia/packages/Embeddings/5romo/src/Embeddings.jl:83
  load_embeddings(::Type{T}, ::Int64; max_vocab_size, keep_words) where T<:Embeddings.EmbeddingSystem
   @ Embeddings ~/.julia/packages/Embeddings/5romo/src/Embeddings.jl:83
  ...

Stacktrace:
 [1] (::Embeddings.var"#8#9"{FastText_Text{:nl}, Int64, Vector{String}})(fh::IOStream)
   @ Embeddings ~/.julia/packages/Embeddings/5romo/src/Embeddings.jl:106
 [2] open(::Embeddings.var"#8#9"{FastText_Text{:nl}, Int64, Vector{String}}, ::String, ::Vararg{String}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Base ./io.jl:395
 [3] open(::Function, ::String, ::String)
   @ Base ./io.jl:392
 [4] load_embeddings(::Type{FastText_Text{:nl}}, embedding_file::String; max_vocab_size::Int64, keep_words::Vector{String})
   @ Embeddings ~/.julia/packages/Embeddings/5romo/src/Embeddings.jl:105
 [5] load_embeddings(::Type{FastText_Text{:nl}}, default_file_number::Int64; max_vocab_size::Int64, keep_words::Vector{String})
   @ Embeddings ~/.julia/packages/Embeddings/5romo/src/Embeddings.jl:89
 [6] top-level scope
   @ REPL[8]:1

According to this issue in the Embeddings package, this should be fixable by pinning the Embeddings version to 0.4.4.

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