Skip to content

Error download sample #41

Open
Open
@emoryr

Description

@emoryr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions