generated from JuliaAI/MLJExampleInterface.jl
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
If I run the example code (any of them) I get a failure.
using MLJ, MLJText, TextAnalysis
docs = ["Hi my name is Sam.", "How are you today?"]
tfidf_transformer = TfidfTransformer()
mach = machine(tfidf_transformer, tokenize.(docs))
MLJ.fit!(mach)
tfidf_mat = transform(mach, tokenize.(docs))
will fail:
ERROR: MethodError: no method matching tokenize(::String)
Closest candidates are:
tokenize(::Type{S}, ::T) where {S<:Languages.Language, T<:AbstractString}
@ TextAnalysis ~/.julia/packages/TextAnalysis/bdhyq/src/deprecations.jl:4
tokenize(::S, ::T) where {S<:Languages.Language, T<:AbstractString}
@ TextAnalysis ~/.julia/packages/TextAnalysis/bdhyq/src/tokenizer.jl:19
Stacktrace:
[1] _broadcast_getindex_evalf
@ ./broadcast.jl:709 [inlined]
[2] _broadcast_getindex
@ ./broadcast.jl:682 [inlined]
[3] getindex
@ ./broadcast.jl:636 [inlined]
[4] copy
@ ./broadcast.jl:942 [inlined]
[5] materialize(bc::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{1}, Nothing, typeof(tokenize), Tuple{Vector{String}}})
@ Base.Broadcast ./broadcast.jl:903
[6] top-level scope
@ REPL[11]:1
Metadata
Metadata
Assignees
Labels
No labels