Xiangyang Liu
commited on
Commit
·
dc3e576
1
Parent(s):
3136c1d
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,7 +24,7 @@ Xiangyang Liu, Tianxiang Sun, Junliang He, Lingling Wu, Xinyu Zhang, Hao Jiang,
|
|
| 24 |
>>> tokenizer = ElasticBertTokenizer.from_pretrained('fnlp/elasticbert-chinese-base')
|
| 25 |
>>> model = ElasticBertForSequenceClassification.from_pretrained('fnlp/elasticbert-chinese-base', config=config)
|
| 26 |
|
| 27 |
-
>>> input_ids = tokenizer.encode('
|
| 28 |
>>> outputs = model(input_ids)
|
| 29 |
```
|
| 30 |
|
|
|
|
| 24 |
>>> tokenizer = ElasticBertTokenizer.from_pretrained('fnlp/elasticbert-chinese-base')
|
| 25 |
>>> model = ElasticBertForSequenceClassification.from_pretrained('fnlp/elasticbert-chinese-base', config=config)
|
| 26 |
|
| 27 |
+
>>> input_ids = tokenizer.encode('我爱中国!', return_tensors='pt')
|
| 28 |
>>> outputs = model(input_ids)
|
| 29 |
```
|
| 30 |
|