Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ Hence, implementing named entity recognition before sentiment analysis helps to
|
|
37 |
|
38 |
Using RNN-based approach can also overcome lexicon issues, but it also takes more resources.
|
39 |
'''
|
40 |
-
dat_name = '
|
41 |
news = pd.read_csv(dat_name, on_bad_lines='skip')
|
42 |
news[['pos_sent', 'neg_sent']] = news[['pos_sent', 'neg_sent']].fillna('')
|
43 |
news['clean_content'] = news.clean_content.apply(lambda x: ast.literal_eval(x))
|
|
|
37 |
|
38 |
Using RNN-based approach can also overcome lexicon issues, but it also takes more resources.
|
39 |
'''
|
40 |
+
dat_name = './news_db/merged_news_data_' + datetime.today().strftime('%Y-%m-%d') + '.csv'
|
41 |
news = pd.read_csv(dat_name, on_bad_lines='skip')
|
42 |
news[['pos_sent', 'neg_sent']] = news[['pos_sent', 'neg_sent']].fillna('')
|
43 |
news['clean_content'] = news.clean_content.apply(lambda x: ast.literal_eval(x))
|