Text Classification
Transformers
Safetensors
English
Portuguese
roberta
classification
questioning
directed
generic
text-embeddings-inference
Instructions to use cnmoro/granite-question-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cnmoro/granite-question-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cnmoro/granite-question-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cnmoro/granite-question-classifier") model = AutoModelForSequenceClassification.from_pretrained("cnmoro/granite-question-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -25,7 +25,7 @@ If a question is not directed, we would change the actions we perform on a RAG p
|
|
| 25 |
|
| 26 |
The accuracy achieved during training was 94%.
|
| 27 |
|
| 28 |
-
This model is designed to be an upgrade
|
| 29 |
|
| 30 |
```python
|
| 31 |
import torch
|
|
|
|
| 25 |
|
| 26 |
The accuracy achieved during training was 94%.
|
| 27 |
|
| 28 |
+
This model is designed to be an upgrade of the previous model: https://huggingface.co/cnmoro/bert-tiny-question-classifier
|
| 29 |
|
| 30 |
```python
|
| 31 |
import torch
|