Zhibin Lu
commited on
Commit
·
6fb1109
1
Parent(s):
464c02e
correct example code in readme
Browse files
README.md
CHANGED
@@ -31,8 +31,7 @@ import transformers as tfr
|
|
31 |
tokenizer = tfr.AutoTokenizer.from_pretrained("distilbert-base-uncased")
|
32 |
|
33 |
# Load VGCN-BERT model
|
34 |
-
|
35 |
-
model = VGCNBertModel.from_pretrained(
|
36 |
"zhibinlu/vgcn-bert-distilbert-base-uncased", trust_remote_code=True,
|
37 |
# # if you already have WordGraphs (torch sparse) and their id_maps,
|
38 |
# # you can directly instantiate VGCN-BERT model with your WGraphs (support multiple graphs)
|
|
|
31 |
tokenizer = tfr.AutoTokenizer.from_pretrained("distilbert-base-uncased")
|
32 |
|
33 |
# Load VGCN-BERT model
|
34 |
+
model = tfr.AutoModel.from_pretrained(
|
|
|
35 |
"zhibinlu/vgcn-bert-distilbert-base-uncased", trust_remote_code=True,
|
36 |
# # if you already have WordGraphs (torch sparse) and their id_maps,
|
37 |
# # you can directly instantiate VGCN-BERT model with your WGraphs (support multiple graphs)
|