Text Classification
Transformers
PyTorch
Safetensors
English
roberta
Eval Results (legacy)
text-embeddings-inference
Instructions to use AdamCodd/distilroberta-query-wellformedness with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdamCodd/distilroberta-query-wellformedness with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AdamCodd/distilroberta-query-wellformedness")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AdamCodd/distilroberta-query-wellformedness") model = AutoModelForSequenceClassification.from_pretrained("AdamCodd/distilroberta-query-wellformedness") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -38,6 +38,7 @@ A regression head has been appended to the DistilRoBERTa model to tailor it for
|
|
| 38 |
## Usage
|
| 39 |
|
| 40 |
Inference API has been disabled as this is a regression task, not a text classification task, and HuggingFace does not provide a pipeline for regression tasks.
|
|
|
|
| 41 |
|
| 42 |
```python
|
| 43 |
import torch
|
|
|
|
| 38 |
## Usage
|
| 39 |
|
| 40 |
Inference API has been disabled as this is a regression task, not a text classification task, and HuggingFace does not provide a pipeline for regression tasks.
|
| 41 |
+
Because of the dataset, it will perform better when handling queries in question form.
|
| 42 |
|
| 43 |
```python
|
| 44 |
import torch
|