AndyChiang commited on
Commit
63c0836
1 Parent(s): 2e9c141

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -27,10 +27,10 @@ For more details, you can see our **paper** or [**GitHub**](https://github.com/A
27
 
28
  1. Download model by hugging face transformers.
29
  ```python
30
- from transformers import BartTokenizer, BartForConditionalGeneration
31
 
32
- tokenizer = BartTokenizer.from_pretrained("AndyChiang/cdgp-csg-bert-dgen")
33
- csg_model = BartForConditionalGeneration.from_pretrained("AndyChiang/cdgp-csg-bert-dgen")
34
  ```
35
 
36
  2. Create a unmasker.
 
27
 
28
  1. Download model by hugging face transformers.
29
  ```python
30
+ from transformers import BertTokenizer, BertForMaskedLM, pipeline
31
 
32
+ tokenizer = BertTokenizer.from_pretrained("AndyChiang/cdgp-csg-bert-dgen")
33
+ csg_model = BertForMaskedLM.from_pretrained("AndyChiang/cdgp-csg-bert-dgen")
34
  ```
35
 
36
  2. Create a unmasker.