DEV Community

Discussion on: Sentiment analysis on Trump's tweets using Python 🐍

Collapse
 
karimazizovic87 profile image
King

how to calculate the F1, precision, recall and accuracy using textblob ? Any help? Thanks

Collapse
 
rodolfoferro profile image
Rodolfo Ferro

Textblob has it's own method to compute accuracy:
textblob.readthedocs.io/en/dev/cla...

But you can also use scikit-learn's metrics:
scikit-learn.org/stable/modules/cl...

Collapse
 
karimazizovic87 profile image
King

thank you