ans commited on
Commit
f61ade9
1 Parent(s): cdd12dd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -5
README.md CHANGED
@@ -15,12 +15,21 @@ A fine-tuned model for fact-classification task on English tweets about COVID-19
15
  ## Intended uses & limitations
16
 
17
  #### How to use
18
-
19
  ```python
20
- from transformers import AutoTokenizer, AutoModelForSequenceClassification
21
- tokenizer = AutoTokenizer.from_pretrained("ans/vaccinating-covid-tweets")
22
- model = AutoModelForSequenceClassification.from_pretrained("ans/vaccinating-covid-tweets")
 
 
 
 
 
 
 
 
23
  ```
 
24
 
25
  #### Limitations and bias
26
 
@@ -61,5 +70,4 @@ Provide examples of latent issues and potential remediations.
61
  - Team members: Ahn, Hyunju; An, Jiyong; An, Seungchan; Jeong, Seokho; Kim, Jungmin; Kim, Sangbeom
62
  - Advisor: Prof. Wen-Syan Li
63
 
64
- # ![GSDS](https://gsds.snu.ac.kr/sites/gsds.snu.ac.kr/files/GSDS_logo.png)
65
  <img src="https://gsds.snu.ac.kr/sites/gsds.snu.ac.kr/files/GSDS_logo.png" width="300" height="100">
 
15
  ## Intended uses & limitations
16
 
17
  #### How to use
18
+ Load pipeline
19
  ```python
20
+ from transformers import pipeline
21
+ pipe = pipeline("sentiment-analysis", model = "ans/vaccinating-covid-tweets")
22
+ seq = 'The Pfizer-BioNTech COVID-19 vaccine is authorized for use under an Emergency Use Authorization (EUA) for active immunization to prevent COVID-19 caused by SARS-CoV-2 in individuals 16 years of age and older'
23
+
24
+ pipe(seq)
25
+ ```
26
+
27
+ Expected output
28
+ ```
29
+ seq = "There is no FDA-approved vaccine to prevent COVID-19."
30
+ pipe(seq)
31
  ```
32
+ [{'label': 'true', 'score': 0.9996959567070007}]
33
 
34
  #### Limitations and bias
35
 
 
70
  - Team members: Ahn, Hyunju; An, Jiyong; An, Seungchan; Jeong, Seokho; Kim, Jungmin; Kim, Sangbeom
71
  - Advisor: Prof. Wen-Syan Li
72
 
 
73
  <img src="https://gsds.snu.ac.kr/sites/gsds.snu.ac.kr/files/GSDS_logo.png" width="300" height="100">