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

Error download sample #41

Open
emoryr opened this issue Aug 26, 2020 · 1 comment
Open

Error download sample #41

emoryr opened this issue Aug 26, 2020 · 1 comment

Comments

@emoryr
Copy link

emoryr commented Aug 26, 2020

Hi, I am trying to download Twitter Sentiment dataset

I run the code as documentation

dataset_test_pos = load(Twitter("test_pos")) 

But got this message

MethodError: Cannot convert an object of type Bool to an object of type String
Closest candidates are:
convert(::Type{String}, !Matched::Union{CategoricalString{R}, CategoricalValue{T,R} where T} where R) at /home/user/.julia/packages/CategoricalArrays/dmrjI/src/value.jl:94
convert(::Type{String}, !Matched::WeakRefStrings.WeakRefString) at /home/user/.julia/packages/WeakRefStrings/lqf5B/src/WeakRefStrings.jl:79
convert(::Type{String}, !Matched::FilePathsBase.AbstractPath) at /home/user/.julia/packages/FilePathsBase/Oyg1p/src/path.jl:83
...

Stacktrace:
[1] push!(::Array{String,1}, ::Bool) at ./array.jl:855
[2] Parsers.Options(::Missing, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::Nothing, ::Nothing, ::Nothing, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at /home/user/.julia/packages/Parsers/DAskp/src/Parsers.jl:99
[3] Parsers.Options(::Missing, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::Nothing, ::Nothing, ::Nothing, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at /home/user/.julia/packages/Parsers/DAskp/src/Parsers.jl:62
[4] file(::String, ::Int64, ::Bool, ::Int64, ::Nothing, ::Int64, ::Int64, ::Bool, ::Nothing, ::Bool, ::Bool, ::Array{String,1}, ::String, ::Nothing, ::Bool, ::Char, ::Nothing, ::Nothing, ::Char, ::Nothing, ::UInt8, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Dict{Int8,Int8}, ::Bool, ::Float64, ::Bool, ::Bool, ::Nothing, ::Bool, ::Bool, ::Nothing) at /home/user/.julia/packages/CSV/DOr2V/src/CSV.jl:382
[5] #File#15(::Int64, ::Bool, ::Int64, ::Nothing, ::Int64, ::Int64, ::Bool, ::Nothing, ::Bool, ::Bool, ::Array{String,1}, ::String, ::Nothing, ::Bool, ::Char, ::Nothing, ::Nothing, ::Char, ::Nothing, ::UInt8, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Dict{Int8,Int8}, ::Bool, ::Float64, ::Bool, ::Bool, ::Nothing, ::Bool, ::Bool, ::Nothing, ::Type, ::String) at /home/user/.julia/packages/CSV/DOr2V/src/CSV.jl:258
[6] (::getfield(Core, Symbol("#kw#Type")))(::NamedTuple{(:header,),Tuple{Int64}}, ::Type{CSV.File}, ::String) at ./none:0
[7] #read#64(::Bool, ::Base.Iterators.Pairs{Symbol,Int64,Tuple{Symbol},NamedTuple{(:header,),Tuple{Int64}}}, ::Function, ::String) at /home/user/.julia/packages/CSV/DOr2V/src/CSV.jl:1086
[8] (::getfield(CSV, Symbol("#kw##read")))(::NamedTuple{(:header,),Tuple{Int64}}, ::typeof(CSV.read), ::String) at ./none:0
[9] Twitter(::String) at /home/user/.julia/packages/CorpusLoaders/w40jN/src/Twitter.jl:12
[10] top-level scope at In[8]:1

@oxinabox
Copy link
Member

@ComputerMaestro ?

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

2 participants