6 ms·
For inference speed I recommend a Naive Bayes model. I've tried this on Twitter messages and got near ~90% accuracy with 3-class (positive, negative, neutral).
by jonathanbgn 7y ago
For inference speed I recommend a Naive Bayes model. I've tried this on Twitter messages and got near ~90% accuracy with 3-class (positive, negative, neutral).
The easiest library to do that would probably be scikit-learn with their ComplementNB class: https://scikit-learn.org/stable/modules/generated/sklearn.naive_bayes.ComplementNB.html https://scikit-learn.org/stable/modules/generated/sklearn.na...
For the data you can use the SemEval 2017 Task4-A dataset (around ~10K labeled tweets): https://github.com/cbaziotis/datastories-semeval2017-task4/tree/master/dataset/Subtask_A https://github.com/cbaziotis/datastories-semeval2017-task4/t...