Instructions to use shuaifan/SentiWSP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shuaifan/SentiWSP with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="shuaifan/SentiWSP")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("shuaifan/SentiWSP") model = AutoModelForSequenceClassification.from_pretrained("shuaifan/SentiWSP") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,8 +10,8 @@ You can also load our model in huggingface ([https://huggingface.co/shuaifan/Sen
|
|
| 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 |
|
|
|
|
| 10 |
```python
|
| 11 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 12 |
import torch
|
|
|
|
| 13 |
|
| 14 |
+
tokenizer = AutoTokenizer.from_pretrained("shuaifan/SentiWSP")
|
| 15 |
model = AutoModelForSequenceClassification.from_pretrained("shuaifan/SentiWSP")
|
| 16 |
```
|
| 17 |
|