Instructions to use Corianas/EnglishRanker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Corianas/EnglishRanker with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Corianas/EnglishRanker")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Corianas/EnglishRanker") model = AutoModelForSequenceClassification.from_pretrained("Corianas/EnglishRanker") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +4 -4
config.json
CHANGED
|
@@ -10,10 +10,10 @@
|
|
| 10 |
"hidden_dim": 3072,
|
| 11 |
"id2label": {
|
| 12 |
"0": "Not English",
|
| 13 |
-
"1": "
|
| 14 |
-
"2": "
|
| 15 |
-
"3": "
|
| 16 |
-
"4": "
|
| 17 |
},
|
| 18 |
"initializer_range": 0.02,
|
| 19 |
"label2id": {
|
|
|
|
| 10 |
"hidden_dim": 3072,
|
| 11 |
"id2label": {
|
| 12 |
"0": "Not English",
|
| 13 |
+
"1": "Terrible quality English",
|
| 14 |
+
"2": "Low quality English",
|
| 15 |
+
"3": "Medium quality English",
|
| 16 |
+
"4": "High quality English"
|
| 17 |
},
|
| 18 |
"initializer_range": 0.02,
|
| 19 |
"label2id": {
|