Update Sentiment_analysis_with_bert.py
Browse files
Sentiment_analysis_with_bert.py
CHANGED
@@ -525,3 +525,13 @@ from transformers import BertModel
|
|
525 |
bert_model = BertModel.from_pretrained('bert-base-uncased')
|
526 |
|
527 |
bert_model.save_pretrained('C:/Users/Marie-Ange/Downloads')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
525 |
bert_model = BertModel.from_pretrained('bert-base-uncased')
|
526 |
|
527 |
bert_model.save_pretrained('C:/Users/Marie-Ange/Downloads')
|
528 |
+
|
529 |
+
from transformers import pipeline
|
530 |
+
|
531 |
+
|
532 |
+
filename = "Sentiment_analysis_with_bert.py"
|
533 |
+
pipe = pipeline("sentiment-analysis", model="Group209/Sentiment_Analysis")
|
534 |
+
pipe("Sentiment_analysis_with_bert.py")
|
535 |
+
|
536 |
+
|
537 |
+
|