Zayed13 commited on
Commit
f8b93a0
·
1 Parent(s): 27c5f6a

Update Sentiment_analysis_with_bert.py

Browse files
Files changed (1) hide show
  1. Sentiment_analysis_with_bert.py +10 -0
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
+