Spaces:
Runtime error
Runtime error
abdulmatinomotoso
commited on
Commit
•
a413745
1
Parent(s):
2200b5c
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('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)
|
|
|
7 |
import pandas as pd
|
8 |
|
9 |
#Intializing the spacy model for NER and the finbert model for sentiment analysis
|
10 |
+
nlp = spacy.load('spacy/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)
|