Text Classification
Transformers
PyTorch
English
distilbert
classification
text-embeddings-inference
Instructions to use lingwave-admin/state-op-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lingwave-admin/state-op-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="lingwave-admin/state-op-detector")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("lingwave-admin/state-op-detector") model = AutoModelForSequenceClassification.from_pretrained("lingwave-admin/state-op-detector") - Notebooks
- Google Colab
- Kaggle
Commit ·
53ec512
1
Parent(s): 99b7eee
Update config.json
Browse files- config.json +3 -4
config.json
CHANGED
|
@@ -4,10 +4,9 @@
|
|
| 4 |
"architectures": [
|
| 5 |
"DistilBertForSequenceClassification"
|
| 6 |
],
|
| 7 |
-
"id2label": [
|
| 8 |
-
"Normal User",
|
| 9 |
-
"State Operator"
|
| 10 |
-
],
|
| 11 |
"attention_dropout": 0.1,
|
| 12 |
"dim": 768,
|
| 13 |
"dropout": 0.1,
|
|
|
|
| 4 |
"architectures": [
|
| 5 |
"DistilBertForSequenceClassification"
|
| 6 |
],
|
| 7 |
+
"id2label": [{
|
| 8 |
+
0:"Normal User",
|
| 9 |
+
1:"State Operator"}],
|
|
|
|
| 10 |
"attention_dropout": 0.1,
|
| 11 |
"dim": 768,
|
| 12 |
"dropout": 0.1,
|