JuliaText / TextAnalysis.jl

Julia package for text analysis
Other
373 stars 95 forks source link

use getfield instead of eval in tagging_schemes.jl #247

Closed rushabh-v closed 8 months ago

rushabh-v commented 3 years ago

resolves: https://github.com/JuliaText/TextAnalysis.jl/issues/242

On testing, it raises UndefVarError: BIO1 not defined. I tried figuring out the reason but couldn't. Should I use something else instead of Main?

I am new to Julia, please guide me.

rushabh-v commented 3 years ago

@aviks Could you help me, please?

aviks commented 3 years ago

You have to use the module in which these symbols are defined. Not Main. Main is the top level module (eg. in the REPL). These symbols are not defined in Main.

rushabh-v commented 3 years ago

they are defined in the same module (i.e., tagging_schemes.jl).

rssdev10 commented 8 months ago

implemented in https://github.com/JuliaText/TextAnalysis.jl/pull/276/commits/57781294ab34136ee67eba0abb5e6c9b1a0fb733