Update README.md
Browse files
README.md
CHANGED
|
@@ -19,12 +19,12 @@ We collect 20 paraphrace datasets in the Chinese domain for finetune, with a to
|
|
| 19 |
|
| 20 |
## Usage
|
| 21 |
```python
|
| 22 |
-
from transformers import
|
| 23 |
from transformers import BertTokenizer
|
| 24 |
import torch
|
| 25 |
|
| 26 |
tokenizer=BertTokenizer.from_pretrained('IDEA-CCNL/Erlangshen-MegatronBert-1.3B-Similarity')
|
| 27 |
-
model=
|
| 28 |
|
| 29 |
texta='今天的饭不好吃'
|
| 30 |
textb='今天心情不好'
|
|
|
|
| 19 |
|
| 20 |
## Usage
|
| 21 |
```python
|
| 22 |
+
from transformers import AutoModelForSequenceClassification
|
| 23 |
from transformers import BertTokenizer
|
| 24 |
import torch
|
| 25 |
|
| 26 |
tokenizer=BertTokenizer.from_pretrained('IDEA-CCNL/Erlangshen-MegatronBert-1.3B-Similarity')
|
| 27 |
+
model=AutoModelForSequenceClassification.from_pretrained('IDEA-CCNL/Erlangshen-MegatronBert-1.3B-Similarity')
|
| 28 |
|
| 29 |
texta='今天的饭不好吃'
|
| 30 |
textb='今天心情不好'
|