Update README.md
Browse files
README.md
CHANGED
|
@@ -8,11 +8,11 @@ Extensive experimental results show that SentiWSP achieves new state-of-the-art
|
|
| 8 |
## Fine-tunning
|
| 9 |
You can also load our model in huggingface ([https://huggingface.co/shuaifan/SentiWSP](https://huggingface.co/shuaifan/SentiWSP)):
|
| 10 |
```python
|
|
|
|
| 11 |
import torch
|
| 12 |
-
|
| 13 |
|
| 14 |
-
model =
|
| 15 |
-
tokenizer = ElectraTokenizer.from_pretrained("shuaifan/SentiWSP")
|
| 16 |
```
|
| 17 |
|
| 18 |
|
|
|
|
| 8 |
## Fine-tunning
|
| 9 |
You can also load our model in huggingface ([https://huggingface.co/shuaifan/SentiWSP](https://huggingface.co/shuaifan/SentiWSP)):
|
| 10 |
```python
|
| 11 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 12 |
import torch
|
| 13 |
+
tokenizer = AutoTokenizer.from_pretrained("shuaifan/SentiWSP")
|
| 14 |
|
| 15 |
+
model = AutoModelForSequenceClassification.from_pretrained("shuaifan/SentiWSP")
|
|
|
|
| 16 |
```
|
| 17 |
|
| 18 |
|