TextAnalysis.jl icon indicating copy to clipboard operation
TextAnalysis.jl copied to clipboard

use getfield instead of eval in tagging_schemes.jl

Open rushabh-v opened this issue 4 years ago • 3 comments

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 avatar Jan 03 '21 13:01 rushabh-v

@aviks Could you help me, please?

rushabh-v avatar Jan 08 '21 13:01 rushabh-v

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.

aviks avatar Jan 08 '21 19:01 aviks

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

rushabh-v avatar Jan 08 '21 19:01 rushabh-v

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

rssdev10 avatar Oct 26 '23 22:10 rssdev10