Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
eb787a0
attemp to score all emotions
giannispan2103 Jul 9, 2020
1241b97
Merge branch 'master' into add_roberta
giannispan2103 Jul 12, 2020
de6ce8a
correct roberta file name
giannispan2103 Jul 12, 2020
bec1a9c
add bert class
giannispan2103 Jul 12, 2020
281ea94
Roberta plays
giannispan2103 Jul 14, 2020
04325e6
fix anger
giannispan2103 Jul 16, 2020
2bc8928
Merge remote-tracking branch 'remotes/origin/master' into add_roberta
ipavlopoulos Jul 17, 2020
634fbfe
Updating according to the change of the model (RoBERTa added)
ipavlopoulos Jul 17, 2020
d03d19d
Updating according to the change of the model (RoBERTa added)
ipavlopoulos Jul 17, 2020
460c1a8
Updated the CSVs
Jul 17, 2020
9a8d7cb
Changed the index file to look at the add_roberta branch for CSVs
ipavlopoulos Jul 17, 2020
59ddc23
Merge remote-tracking branch 'origin/add_roberta' into add_roberta
ipavlopoulos Jul 17, 2020
d5536cb
Updated the CSVs
Jul 18, 2020
6f229ae
Merge branch 'add_roberta' of github.com:ipavlopoulos/emotions into a…
Jul 18, 2020
2497bea
Updated the CSVs
Jul 19, 2020
1f83f57
Updated the CSVs
Jul 20, 2020
fe3cc97
Merge branches 'add_roberta' and 'master' of https://github.com/ipavl…
ipavlopoulos Jul 20, 2020
1a71f40
Updated the CSVs
Jul 20, 2020
6441cde
Updated the CSVs
Jul 21, 2020
4531a86
Updated the CSVs
Jul 22, 2020
050c92c
Updated the CSVs
Jul 23, 2020
ba59a66
Updated the CSVs
Jul 24, 2020
cb00ccb
Updated the CSVs
Jul 25, 2020
c3684e5
Updated the CSVs
Jul 26, 2020
cf2924a
Updated the CSVs
Jul 27, 2020
4f0e306
Updated the CSVs
Jul 28, 2020
8ae353c
Updated the CSVs
Jul 29, 2020
d07da3d
Updated the CSVs
Jul 30, 2020
0546943
Updated the CSVs
Jul 31, 2020
0473b4e
Updated the CSVs
Aug 1, 2020
1cc69ed
Updated the CSVs
Aug 2, 2020
f612239
Updated the CSVs
Aug 3, 2020
5f95172
Updated the CSVs
Aug 4, 2020
39ee689
Updated the CSVs
Aug 5, 2020
75153f1
Updated the CSVs
Aug 6, 2020
603f04b
Updated the CSVs
Aug 7, 2020
2c40660
Updated the CSVs
Aug 8, 2020
b4230e0
Updated the CSVs
Aug 9, 2020
b01b99f
Updated the CSVs
Aug 10, 2020
43dba28
Updated the CSVs
Aug 11, 2020
d8220d3
Updated the CSVs
Aug 12, 2020
b5eb7dd
Updated the CSVs
Aug 13, 2020
7e1a290
Updated the CSVs
Aug 14, 2020
d81b2c7
Updated the CSVs
Aug 15, 2020
16d9e1e
Updated the CSVs
Aug 16, 2020
ff70e9c
Merge branch 'add_roberta' of https://github.com/ipavlopoulos/emotion…
ipavlopoulos Aug 17, 2020
617ae2e
Added code to limit the diagrms to 0-1.
ipavlopoulos Aug 17, 2020
08c5d6f
Updated the CSVs
Aug 17, 2020
efa443b
Updated the CSVs
Aug 18, 2020
280c8fd
Updated the CSVs
Aug 19, 2020
d47904c
Updated the CSVs
Aug 20, 2020
61c97a9
Updated the CSVs
Aug 21, 2020
c5128cf
Updated the CSVs
Aug 22, 2020
53135ae
Updated the CSVs
Aug 23, 2020
ab15260
Updated the CSVs
Aug 24, 2020
3839601
Updated the CSVs
Aug 25, 2020
f9ba14e
Updated the CSVs
Aug 30, 2020
7eb2466
Merge branch 'add_roberta' of github.com:ipavlopoulos/emotions into a…
Aug 31, 2020
dc695b9
Updated the CSVs
Aug 31, 2020
5c55938
Updated the CSVs
Sep 1, 2020
f9c0be7
Updated the CSVs
Sep 2, 2020
6a5e687
Updated the CSVs
Sep 10, 2020
e34e1ad
Updated the CSVs
Sep 11, 2020
a123d8f
Updated the CSVs
Sep 14, 2020
407ac4e
Updated the CSVs
Sep 15, 2020
43d31e9
Updated the CSVs
Sep 16, 2020
83eba2d
Updated the CSVs
Sep 17, 2020
4b947e2
Updated the CSVs
Sep 18, 2020
0f4244b
Updated the CSVs
Sep 19, 2020
ab9da51
Updated the CSVs
Sep 20, 2020
8d41e7e
Updated the CSVs
Sep 21, 2020
ed1f232
Updated the CSVs
Sep 22, 2020
1810c7c
Updated the CSVs
Sep 23, 2020
fdf4791
Updated the CSVs
Sep 24, 2020
84c4b6c
Updated the CSVs
Sep 25, 2020
7137966
Updated the CSVs
Sep 29, 2020
61887a8
Updated the CSVs
Sep 30, 2020
5811b52
Updated the CSVs
Oct 1, 2020
e9a4dab
Updated the CSVs
Oct 2, 2020
bb916bb
Updated the CSVs
Oct 3, 2020
5efbfed
Updated the CSVs
Oct 4, 2020
bb80231
Updated the CSVs
Oct 5, 2020
063e4d1
Updated the CSVs
Oct 6, 2020
48e4c9b
Updated the CSVs
Oct 7, 2020
65325cb
Updated the CSVs
Oct 8, 2020
7b176f6
Updated the CSVs
Oct 23, 2020
3af76c2
Updated the CSVs
Oct 24, 2020
f2861f3
Updated the CSVs
Oct 25, 2020
4080402
Updated the CSVs
ipavlopoulos Nov 6, 2020
4ed8ea8
Updated the CSVs
ipavlopoulos Nov 6, 2020
2b43350
Updated the CSVs
ipavlopoulos Nov 6, 2020
9ff955c
Updated the CSVs
ipavlopoulos Nov 6, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bert/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .bert_model import BERTClass
from .bert_utils import score, process_tweet, load_torch_model, model_path, EMOTIONS
16 changes: 16 additions & 0 deletions bert/bert_model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import torch
from transformers import RobertaModel


class BERTClass(torch.nn.Module):
def __init__(self, num_of_cols, path='roberta-large', do=0.3):
super(BERTClass, self).__init__()
self.l1 = RobertaModel.from_pretrained(path)
self.l2 = torch.nn.Dropout(do)
self.l3 = torch.nn.Linear(1024, num_of_cols)

def forward(self, ids, mask, token_type_ids):
_, output_1 = self.l1(ids, attention_mask=mask, token_type_ids=token_type_ids)
output_2 = self.l2(output_1)
output = self.l3(output_2)
return output
43 changes: 43 additions & 0 deletions bert/bert_utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import torch


EMOTIONS = ('anger', 'anticipation',
'disgust', 'fear', 'joy',
'love', 'optimism', 'pessimism',
'sadness', 'surprise', 'trust',
'positive', 'negative')
emotion_dict = {w: i for i, w in enumerate(EMOTIONS)}
model_path = "pytorch_model/roberta.mdl"


def load_torch_model(path):
return torch.load(path)


def process_tweet(tweet_text, tokenizer, max_len):
tweet_text = " ".join(tweet_text.split())

inputs = tokenizer.encode_plus(
tweet_text,
None,
add_special_tokens=True,
max_length=max_len,
pad_to_max_length=True,
return_token_type_ids=True,
truncation=True)
ids = torch.tensor(inputs['input_ids'], dtype=torch.long)

mask = torch.tensor(inputs['attention_mask'], dtype=torch.long)
token_type_ids = torch.tensor(inputs["token_type_ids"], dtype=torch.long)
return {'ids': ids, 'mask': mask, 'token_type_ids': token_type_ids}


def score(model, processed_tweet, emotions=EMOTIONS):
scores = model(processed_tweet['ids'].unsqueeze(0),
processed_tweet['mask'].unsqueeze(0),
processed_tweet['token_type_ids'].unsqueeze(0))[0]
scores = torch.sigmoid(scores).cpu().detach().numpy()
return {em: sc for em, sc in zip(emotions, scores)}



8 changes: 2 additions & 6 deletions docs/DATA/Alabama.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
day,sentiment,size
2020-07-12,0.05302500000000002,4
2020-07-13,0.03456184210526316,76
2020-07-14,0.04700648148148148,108
2020-07-15,-0.0006421052631578932,57
2020-07-16,0.066242,50
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.3015020601451397,0.038985081715509295,0.14878999069333076,0.014827042119577527,0.11390312761068344,0.7505872845649719,0.05936731165274978,0.31447573471814394,0.28431560983881354,0.5255083693191409,0.24883337691426277,0.5445212544873357,0.09429504768922926,4
10 changes: 4 additions & 6 deletions docs/DATA/Arizona.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
day,sentiment,size
2020-07-12,-0.1250777777777778,9
2020-07-13,-0.09132947368421052,190
2020-07-14,-0.06046603773584906,265
2020-07-15,-0.03349191176470588,136
2020-07-16,-0.1582727272727273,121
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.23755767598748206,0.023104903213679792,0.14403161693364383,0.0327863041497767,0.12714696507900952,0.6953953826427459,0.08358534058555961,0.2518014424294233,0.07638918530195951,0.42920216083526613,0.19713289745151996,0.47476908430457115,0.12054740577936172,25
2020-11-04,0.7562837004661559,0.07123123854398727,0.7263697981834412,0.0308438241481781,0.3018142580986023,0.11684727668762207,0.012963643297553062,0.02107349596917629,0.1356756091117859,0.01912453770637512,0.7245832681655884,0.03115087188780308,0.02562497928738594,1
2020-11-05,0.012433372437953949,0.00312386266887188,0.006566472817212343,0.003944657277315855,0.009704690426588058,0.9803977608680724,0.08267910033464433,0.2563155293464661,0.10452904552221297,0.8552642464637756,0.15587541460990906,0.88493812084198,0.3538698852062225,1
9 changes: 3 additions & 6 deletions docs/DATA/Arkansas.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
day,sentiment,size
2020-07-12,0.10543999999999998,5
2020-07-13,-0.06194782608695652,46
2020-07-14,0.08924912280701756,57
2020-07-15,-0.041186538461538455,52
2020-07-16,-0.10162692307692309,26
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.23212537076324224,0.019104840350337327,0.19649475533515215,0.01080608763732016,0.07600330654531717,0.5888017304241657,0.03190354933030903,0.21136209834367037,0.04217066476121545,0.5217698067426682,0.23364664893597364,0.4976955056190491,0.03692121058702469,4
2020-11-04,0.06386490166187286,0.01563972793519497,0.030792737379670143,0.010021865367889404,0.08188095688819885,0.9552139639854432,0.3341321647167206,0.8910010457038879,0.04730863124132157,0.34613150358200073,0.13874706625938416,0.6023640036582947,0.01418360974639654,1
11 changes: 5 additions & 6 deletions docs/DATA/California.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
day,sentiment,size
2020-07-12,-0.15645111111111107,45
2020-07-13,-0.02706094276094276,1188
2020-07-14,-0.012675468043899294,1549
2020-07-15,0.052086598984771575,985
2020-07-16,-0.001346081081081085,740
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.32113456363705073,0.05082612788220021,0.22435065616260874,0.04621642149921337,0.20560797614214774,0.6709796903824264,0.07631975741718303,0.21775756830518897,0.08474239847961475,0.449492619889365,0.24511527972803873,0.45308960745619103,0.13540763564577157,110
2020-11-04,0.30563517639206517,0.03288842463451955,0.2680046359180576,0.09714317762862062,0.1685643567600184,0.6388972691363759,0.04396173699448506,0.17543157997230688,0.06565501934124364,0.41128147289984757,0.1825358991821607,0.4733356758952141,0.1023943962322341,9
2020-11-05,0.40556070518990356,0.04360106851284703,0.3747098023692767,0.12697675354623547,0.23052359310289225,0.45981765538454056,0.024339797208085656,0.09428844663004081,0.10510303033515811,0.3254749371359746,0.3379930642743905,0.31143613811582327,0.04938292084261775,6
2020-11-06,0.4733906735976537,0.058563362807035446,0.228560211447378,0.009964610682800412,0.28300620677570504,0.6705215871334076,0.0388451541463534,0.06455952736238639,0.09371282439678907,0.5216292863090833,0.27292581150929135,0.4434216767549515,0.07736938633024693,6
10 changes: 4 additions & 6 deletions docs/DATA/Colorado.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
day,sentiment,size
2020-07-12,0.5363,4
2020-07-13,-0.03581914893617022,94
2020-07-14,0.0813233870967742,124
2020-07-15,-0.05240933333333334,75
2020-07-16,-0.037176811594202906,69
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.3669791527790949,0.037398156215203926,0.2675011196406558,0.03726757386903046,0.2377263533999212,0.5593474742490798,0.06194823674741201,0.1790207489975728,0.06874638347653672,0.3027458528522402,0.28660413110628724,0.3268219727324322,0.11798187723616138,16
2020-11-04,0.4549795736869176,0.059562074641386666,0.36049628878633183,0.03504542882243792,0.30702362954616547,0.42107434074083966,0.0247716026691099,0.08588385488837957,0.15334681856135526,0.3657170968751113,0.35698168228069943,0.3556275845815738,0.022752274138232078,3
2020-11-05,0.020194333046674732,0.004727352876216172,0.022838065400719643,0.008183152414858341,0.01522822864353657,0.9875780940055848,0.2379361391067505,0.8477628827095032,0.009316797368228436,0.8541224598884583,0.03594334051012993,0.7409178614616394,0.015243194997310637,1
10 changes: 4 additions & 6 deletions docs/DATA/Connecticut.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
day,sentiment,size
2020-07-12,-0.04930000000000001,2
2020-07-13,0.03545000000000001,68
2020-07-14,-0.04928139534883723,86
2020-07-15,-0.05538571428571428,49
2020-07-16,-0.105725,36
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.4249416422098875,0.04288992565125227,0.22110985638573766,0.054275984468404204,0.24531769729219377,0.6392235979437828,0.08527335745748132,0.3633726090192795,0.06873727915808558,0.20901273703202605,0.30076829274185,0.2140060537494719,0.071769725298509,8
2020-11-04,0.020164553076028824,0.0041690189391374605,0.008491436019539833,0.0025588886346668005,0.008992798626422882,0.975445032119751,0.10016622394323348,0.6018856763839722,0.029166176915168762,0.8317875862121582,0.07176153361797333,0.7508914470672607,0.027514209970831868,1
2020-11-05,0.3076126277446747,0.017890188843011856,0.18135808408260345,0.014399176463484762,0.08024957776069641,0.9320885539054872,0.0287961196154356,0.237002432346344,0.04590897634625435,0.9208155870437622,0.07397577166557312,0.7859705090522766,0.024026697501540184,1
11 changes: 5 additions & 6 deletions docs/DATA/Florida.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
day,sentiment,size
2020-07-12,-0.0807903846153846,52
2020-07-13,-0.047556652360515025,699
2020-07-14,-0.012420770877944328,934
2020-07-15,-0.021688387096774186,465
2020-07-16,-0.050482203389830504,236
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.25652093219105154,0.028237350488780066,0.18372169153008144,0.02819305231241742,0.1476468457840383,0.7173904466908425,0.0877923269290477,0.28425522230099887,0.068319197758683,0.5142312348471023,0.23402939218794927,0.5237346212379634,0.06526403533644043,32
2020-11-04,0.5113325210081207,0.06876867243813144,0.3133550054497189,0.09498526766482326,0.3498080393506421,0.4186457594235738,0.03229407841960589,0.12148978209329976,0.07504237970958154,0.2419493802719646,0.36800287663936615,0.24554836336109373,0.05134557601478365,9
2020-11-05,0.3271783869713545,0.055848425836302326,0.23400724062230438,0.014475754258455709,0.2244352656416595,0.5863748025149107,0.06435455475002527,0.138499541208148,0.08949919661972672,0.4447937519289553,0.3760647177696228,0.4038089578971267,0.11228384915739298,8
2020-11-06,0.9943521022796632,0.232911616563797,0.9423460364341736,0.4621496796607971,0.9576054215431212,0.04261334612965584,0.012336350977420809,0.018657751381397247,0.027139844372868538,0.017469106242060658,0.07325223833322525,0.01490642689168453,0.010408044792711737,1
9 changes: 3 additions & 6 deletions docs/DATA/Georgia.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
day,sentiment,size
2020-07-12,0.1629,8
2020-07-13,-0.016727510917030567,229
2020-07-14,-0.0049057692307692274,312
2020-07-15,0.05097535545023697,211
2020-07-16,-0.04495,188
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.2133195023983717,0.028559500041107338,0.1663217172647516,0.012946579582057893,0.11400957256555558,0.697607214252154,0.07271318547427655,0.21028837139407794,0.06896446030586958,0.40920254252851007,0.2507905044903358,0.4455710994700591,0.18323441905279955,15
2020-11-05,0.556139662861824,0.09718435537070036,0.5070638991892338,0.07622809056192636,0.43838514760136604,0.5152828395366669,0.026034176698885858,0.10340303834527731,0.05589510500431061,0.49802897963672876,0.13161974027752876,0.5032134726643562,0.051485702395439155,2
9 changes: 4 additions & 5 deletions docs/DATA/Hawaii.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
day,sentiment,size
2020-07-13,-0.06683571428571429,28
2020-07-14,0.10648372093023255,43
2020-07-15,-0.01919677419354838,31
2020-07-16,-0.02331666666666667,12
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.1573030687868595,0.03470570268109441,0.06291771866381168,0.004463118898759906,0.10141616656134526,0.8210318634907404,0.06524601144095261,0.15795853237311044,0.05833070445805788,0.6651051988204321,0.271047202249368,0.6588717823227247,0.07717758727570374,6
2020-11-04,0.7704015374183655,0.1594344526529312,0.4310869574546814,0.011660306714475157,0.5693297982215881,0.14307689666748047,0.014399657025933266,0.011431162245571613,0.12418948113918304,0.01987207494676113,0.7691964507102966,0.048833418637514114,0.039936646819114685,1
2020-11-05,0.05751895904541016,0.03616471588611603,0.03157311677932738,0.0035738237202167507,0.031843770295381546,0.6872934103012085,0.10445238649845123,0.05700751394033433,0.2872485816478729,0.09620582312345503,0.5332883596420288,0.16125935316085815,0.6454863548278809,1
10 changes: 4 additions & 6 deletions docs/DATA/Ilinois.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
day,sentiment,size
2020-07-12,0.048309090909090906,11
2020-07-13,0.046224193548387096,186
2020-07-14,0.0192776,250
2020-07-15,-0.059910714285714296,140
2020-07-16,-0.05345247524752475,101
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.26456337949881953,0.03461449459427968,0.20513582825272655,0.037389891513157636,0.17818810433770219,0.7400215755527219,0.05815851166456317,0.17662667653833827,0.06544744937370221,0.5476877698674798,0.2006769668466101,0.5352853536605835,0.1767291680444032,24
2020-11-04,0.07347320020198822,0.013040672056376934,0.03006547875702381,0.003714586608111858,0.03648651763796806,0.9011728763580322,0.1585478037595749,0.33513158559799194,0.0354321226477623,0.22981394827365875,0.2204464972019196,0.2427978068590164,0.61409592628479,1
2020-11-05,0.22857878357172012,0.022035093113247837,0.13621810916811228,0.0178099098016641,0.07551754425678935,0.761780994279044,0.060480889997312,0.2285883618252618,0.05150866122650249,0.5426243575555938,0.26374691086156027,0.5285110345908574,0.06989301075892788,7
10 changes: 4 additions & 6 deletions docs/DATA/Indiana.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
day,sentiment,size
2020-07-12,0.20798571428571425,7
2020-07-13,0.0626168,125
2020-07-14,0.04653956834532374,139
2020-07-15,-0.029557291666666655,96
2020-07-16,0.003431999999999994,50
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.40088723759566036,0.029188224247523716,0.31971484129982336,0.04136579320766032,0.19722795167139598,0.7072551591055733,0.07441057158367974,0.19973611725228174,0.03291886851989797,0.4464227024997984,0.25497943588665556,0.42587042174168993,0.05141019754643951,7
2020-11-04,0.0183711051940918,0.00522207235917449,0.018458722159266472,0.007415824569761753,0.010699091479182243,0.9903537034988404,0.17490682005882266,0.7891470789909363,0.03383982554078102,0.9364686608314514,0.04137440025806427,0.846731424331665,0.022405290976166725,1
2020-11-05,0.6340523958206177,0.109596349298954,0.4134844169020653,0.036649624817073345,0.3911500871181488,0.3283752351999283,0.02472253516316414,0.04224316589534283,0.09081712365150452,0.12639500619843602,0.42429088056087494,0.21583358570933345,0.03287216555327177,2
10 changes: 4 additions & 6 deletions docs/DATA/Iowa.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
day,sentiment,size
2020-07-12,0.0,2
2020-07-13,0.08905999999999999,50
2020-07-14,0.028878125000000008,64
2020-07-15,0.08198787878787879,33
2020-07-16,-0.020173333333333356,15
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.1333929831162095,0.010108367307111621,0.12354034394957124,0.00610770401544869,0.03913842933252454,0.9034671783447266,0.10632835328578949,0.3261668495833874,0.02478954754769802,0.8451491296291351,0.09548558853566647,0.8203132450580597,0.14623422361910343,2
2020-11-05,0.1336846798658371,0.010270201601088049,0.016106449067592614,0.0047767567448318005,0.10712303966283797,0.9878392219543456,0.07553289830684662,0.3968021869659424,0.011907636187970638,0.9624367356300354,0.04255806654691696,0.9310423731803894,0.059265483170747764,1
2020-11-06,0.07083490490913391,0.010544621385633944,0.0905625745654106,0.0062260404229164115,0.05307034030556679,0.6654537916183472,0.03984729573130608,0.1985203921794892,0.11608807742595673,0.2879045605659485,0.23216721415519714,0.3286153078079224,0.19746600091457367,1
9 changes: 3 additions & 6 deletions docs/DATA/Louisiana.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
day,sentiment,size
2020-07-12,-0.04933333333333334,3
2020-07-13,0.022117757009345793,107
2020-07-14,0.03703666666666667,120
2020-07-15,0.06212187499999999,64
2020-07-16,-0.04449111111111111,45
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.32592846142748993,0.07838294546430309,0.21039214274949497,0.06912533364569147,0.23291946492261356,0.7051056275765101,0.06060621918489536,0.14606421192487082,0.06988834532805616,0.40581800954209435,0.22486290790968472,0.44814464387794334,0.21553140826937225,9
2020-11-04,0.07402664236724377,0.015195035375654697,0.026809629984200008,0.007222899817861616,0.05041234940290451,0.9041750431060791,0.10825670883059502,0.3854124993085861,0.072608707472682,0.6547429412603378,0.11959738004952669,0.6815503835678101,0.06370295025408268,2
10 changes: 4 additions & 6 deletions docs/DATA/Massachusetts.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
day,sentiment,size
2020-07-12,-0.19034999999999996,8
2020-07-13,-0.02958260869565217,138
2020-07-14,-0.03279435028248587,177
2020-07-15,-0.03377916666666666,96
2020-07-16,0.004066153846153855,65
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.2760397113031811,0.0412726575612194,0.1610362214139766,0.008224335861288838,0.19354534501002896,0.7213294804096222,0.08821553385092153,0.14575265617006355,0.04613760569029384,0.3581150138957633,0.3213547898663415,0.3728710135651959,0.33426356439789134,9
2020-11-04,0.33149705082178116,0.0717334443082412,0.046096532605588436,0.012021386064589024,0.2883750821153323,0.8981393178304037,0.07525414228439331,0.2542116194963455,0.02893222899486621,0.7707673013210297,0.13590834165612858,0.6713078767061234,0.03437004672984282,3
2020-11-05,0.33167946338653564,0.07075827848166227,0.141969982534647,0.006665413035079839,0.2721281051635742,0.4284886568784714,0.03063150867819786,0.07225010171532631,0.11083826795220375,0.08870634250342846,0.5164352804422379,0.1257872022688389,0.12224962003529072,2
10 changes: 4 additions & 6 deletions docs/DATA/Michigan.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
day,sentiment,size
2020-07-12,0.0667777777777778,9
2020-07-13,-0.03230817610062892,159
2020-07-14,0.0150261780104712,191
2020-07-15,-0.03867570093457942,107
2020-07-16,-0.07575243902439022,82
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.4306485391436861,0.04044264794972081,0.2923427733162848,0.025948270224034786,0.22295041991254458,0.6207165408592957,0.037508553108916834,0.14210994384036615,0.03827952958929997,0.45841637167793053,0.2934051058613337,0.425356886564539,0.11838568979874253,13
2020-11-04,0.10762075334787367,0.021486632525920868,0.04377336800098418,0.005826405249536037,0.03948273882269858,0.6882874369621277,0.0559348464012146,0.1524781584739685,0.3170079290866852,0.470561295747757,0.3802679479122162,0.5833770036697388,0.06470614671707152,1
2020-11-05,0.06687249429523945,0.024004002567380667,0.02126152254641056,0.00329593347851187,0.049873758107423775,0.6786491125822067,0.1144702173769474,0.25795604661107063,0.08090667566284537,0.33164845034480095,0.3867498189210892,0.3290075585246086,0.09980490431189537,2
10 changes: 4 additions & 6 deletions docs/DATA/Minnesota.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
day,sentiment,size
2020-07-12,0.26844999999999997,2
2020-07-13,-0.06158235294117648,85
2020-07-14,-0.007119491525423745,118
2020-07-15,0.10433866666666666,75
2020-07-16,0.058630434782608674,46
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.3764048283919692,0.03885433229152113,0.18184639303945005,0.014801646917476322,0.25861726934090257,0.7134370254352689,0.08622947835829109,0.21841106447391212,0.050006947945803404,0.4623800325207412,0.22492930106818676,0.46970861218869686,0.10734344203956424,8
2020-11-04,0.0413842722773552,0.006018162705004215,0.012336681596934795,0.0058684004470706,0.013203449547290802,0.9906895160675048,0.07817171514034271,0.2898565828800201,0.009088992141187193,0.9703167676925659,0.02682377956807613,0.963237464427948,0.3118612766265869,1
2020-11-05,0.4990372061729431,0.03115578182041645,0.33225229382514954,0.008486274629831314,0.2646719217300415,0.497512549161911,0.0214279294013977,0.05401114374399185,0.08147967606782912,0.349259614944458,0.2097792625427246,0.3690343201160431,0.03939482942223549,1
9 changes: 3 additions & 6 deletions docs/DATA/Missouri.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
day,sentiment,size
2020-07-12,0.04034444444444443,9
2020-07-13,-0.03743599999999998,100
2020-07-14,0.10429492753623189,138
2020-07-15,0.0839808823529412,68
2020-07-16,-0.1482304347826087,46
day,positive,trust,joy,love,optimism,negative,pessimism,sadness,surprise,anger,anticipation,disgust,fear,size
2020-11-03,0.29501753699566635,0.020211786297815188,0.28876675186412676,0.023534920997917656,0.0985902499939714,0.8240249710423606,0.07762801248048032,0.20218016899057797,0.11708272421466452,0.5037246181496552,0.2685865099940981,0.47153062745928764,0.29214691556990147,7
2020-11-05,0.029955287463963032,0.004580587497912347,0.017848209012299776,0.004790026694536209,0.012887638993561271,0.9655819237232208,0.03336836397647858,0.2099008709192276,0.02250378392636776,0.902782529592514,0.07028426602482796,0.8176040947437286,0.1407734379172325,2
Loading