JuliaText / TextAnalysis.jl

Julia package for text analysis
Other
374 stars 96 forks source link

NaiveBayesClassifier scope error. #192

Closed mdvsh closed 4 years ago

mdvsh commented 4 years ago
julia> using TextAnalysis: NaiveBayesClassifier, fit!, predict
ERROR: UndefVarError: NaiveBayesClassifier not defined

and

julia> model = NaiveBayesClassifier()
ERROR: UndefVarError: NaiveBayesClassifier not defined
Stacktrace:
 [1] top-level scope at REPL[10]:1

The former snippet is a copy pasta from the Docs. I also tried enclosing it in a let-end loop but it still doesn't work.

I have [a2db99b7] TextAnalysis v0.6.0 in my working environment.

This isn't the case with model = SentimentAnalyser().

Any help would be appreciated.

ValeriiBaidin commented 4 years ago

I have the same problem.

janghaludu commented 4 years ago

It should work if you install the master branch. pkg> add TextAnalysis#master should do the trick.