Spaces:
Runtime error
Runtime error
abdulmatinomotoso
commited on
Commit
•
0e2cfd4
1
Parent(s):
72f6cbc
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import spacy
|
|
7 |
import pandas as pd
|
8 |
|
9 |
#Intializing the spacy model for NER and the finbert model for sentiment analysis
|
10 |
-
nlp = spacy.load('
|
11 |
finbert = BertForSequenceClassification.from_pretrained('yiyanghkust/finbert-tone',num_labels=3)
|
12 |
tokenizer = BertTokenizer.from_pretrained('yiyanghkust/finbert-tone')
|
13 |
sentiment = pipeline("sentiment-analysis", model=finbert, tokenizer=tokenizer)
|
|
|
7 |
import pandas as pd
|
8 |
|
9 |
#Intializing the spacy model for NER and the finbert model for sentiment analysis
|
10 |
+
nlp = spacy.load('en_core_web_sm')
|
11 |
finbert = BertForSequenceClassification.from_pretrained('yiyanghkust/finbert-tone',num_labels=3)
|
12 |
tokenizer = BertTokenizer.from_pretrained('yiyanghkust/finbert-tone')
|
13 |
sentiment = pipeline("sentiment-analysis", model=finbert, tokenizer=tokenizer)
|