asreview / asreview

Active learning for systematic reviews

Home Page:https://asreview.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Combination of Sentence BERT and Naive Bayes raises error

taleevenhuis opened this issue · comments

Describe the bug
When I combine in ASReview the Feature extractor Sentence BERT and the Classifier Naive Bayes, it reports the following error: "ValueError: Negative values in data passed to MultinomiaINB (input X)"

To Reproduce
Steps to reproduce the problem:

Screenshots
See also the screen shots of the command line in the attached file.
SBERT_Naive Bayes.docx

Version information

  • OS: Windows
  • ASReview version 1.2

Additional context
Add any other context about the problem here.

Hi @taleevenhuis, Naive Bayes is only compatible with TFIDF features. For using SBERT features, you have to use other classifiers. It is not a bug, but it is how Naive Bayes works.

Ah, thanks for your quick and useful reply, Rohit!

Indeed, the error message is not informative, but the combination should not be possible at all (just like some other combinations are ruled out)