Embed Notice
HTML Code
Corresponding Notice
- Embed this noticei put a random text generator (fedi) into a random number generator (https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest) and fed it 120k posts from the last week
0-1, red negative, green neutral, blue positive
sqlite3 scripts/sentiment/sentiment.db "select strftime('%Y/%m/%d/%H/%M/%S', date), score, label from post where date BETWEEN datetime('now', '-6 days') AND datetime('now', 'localtime')" | sed 's/Negative/0/g' | sed 's/Neutral/1/g' | sed 's/Positive/2/g' | gnuplot -p -e 'set terminal jpeg size 1920,1080;set output "plot.jpeg";set palette defined ( 0 "#FF000088", 1 "#00FF0088", 2 "#0000FF88" );set xdata time;set timefmt "%Y/%m/%d/%H/%M/%S";set datafile separator "|";plot "/dev/stdin" using 1:2:3 palette ps 1;'