Feature Extraction
Transformers
PyTorch
Safetensors
English
bert
sentiment-analysis
text-classification
generic
sentiment-classification
text-embeddings-inference
Instructions to use numind/NuSentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use numind/NuSentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="numind/NuSentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("numind/NuSentiment") model = AutoModel.from_pretrained("numind/NuSentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
855ca2b
1
Parent(s): 94a98cc
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,8 +24,8 @@ import torch
|
|
| 24 |
from transformers import AutoTokenizer, AutoModel
|
| 25 |
|
| 26 |
|
| 27 |
-
model = AutoModel.from_pretrained("Numind/e5-base-
|
| 28 |
-
tokenizer = AutoTokenizer.from_pretrained("Numind/e5-base-
|
| 29 |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
|
| 30 |
model.to(device)
|
| 31 |
|
|
|
|
| 24 |
from transformers import AutoTokenizer, AutoModel
|
| 25 |
|
| 26 |
|
| 27 |
+
model = AutoModel.from_pretrained("Numind/e5-base-sentiment_analysis")
|
| 28 |
+
tokenizer = AutoTokenizer.from_pretrained("Numind/e5-base-sentiment_analysis")
|
| 29 |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
|
| 30 |
model.to(device)
|
| 31 |
|