Spaces:
Build error
Build error
Commit
·
270f09b
1
Parent(s):
30a62e1
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,10 @@ from nltk.corpus import stopwords
|
|
8 |
import spacy
|
9 |
from spacy import displacy
|
10 |
from word2number import w2n
|
|
|
11 |
nltk.download('punkt')
|
12 |
nltk.download('stopwords')
|
13 |
-
nlp =
|
14 |
sentiment_model = pipeline("text-classification", model="AhmedTaha012/managersFeedback-V1.0.7")
|
15 |
increase_decrease_model = pipeline("text-classification", model="AhmedTaha012/nextQuarter-status-V1.1.9")
|
16 |
tokenizer = AutoTokenizer.from_pretrained("AhmedTaha012/finance-ner-v0.0.9-finetuned-ner")
|
|
|
8 |
import spacy
|
9 |
from spacy import displacy
|
10 |
from word2number import w2n
|
11 |
+
import en_core_web_md
|
12 |
nltk.download('punkt')
|
13 |
nltk.download('stopwords')
|
14 |
+
nlp = en_core_web_md.load()
|
15 |
sentiment_model = pipeline("text-classification", model="AhmedTaha012/managersFeedback-V1.0.7")
|
16 |
increase_decrease_model = pipeline("text-classification", model="AhmedTaha012/nextQuarter-status-V1.1.9")
|
17 |
tokenizer = AutoTokenizer.from_pretrained("AhmedTaha012/finance-ner-v0.0.9-finetuned-ner")
|