AndyChiang
commited on
Commit
•
63c0836
1
Parent(s):
2e9c141
Update README.md
Browse files
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
|
31 |
|
32 |
-
tokenizer =
|
33 |
-
csg_model =
|
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.
|