Text Classification
Transformers
Safetensors
English
German
xlm-roberta
mental-health
knowledge-graph
text-embeddings-inference
Instructions to use Niklas1102/mentalkg-xlmr-edge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Niklas1102/mentalkg-xlmr-edge with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Niklas1102/mentalkg-xlmr-edge")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Niklas1102/mentalkg-xlmr-edge") model = AutoModelForSequenceClassification.from_pretrained("Niklas1102/mentalkg-xlmr-edge", device_map="auto") - Notebooks
- Google Colab
- Kaggle
upload meta.json
Browse files
meta.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task": "edge_prediction",
|
| 3 |
+
"base_model": "xlm-roberta-base",
|
| 4 |
+
"problem_type": "binary_classification",
|
| 5 |
+
"num_labels": 1,
|
| 6 |
+
"input_format": "<s> {entry text} </s></s> [N1] {label} ({type}, {polarity}, {time}) [/N1] </s> [N2] {label} ({type}, {polarity}, {time}) [/N2] </s>",
|
| 7 |
+
"threshold": 0.39000000000000007,
|
| 8 |
+
"test": {
|
| 9 |
+
"accuracy": 0.7652652266903023,
|
| 10 |
+
"precision": 0.8042968922682463,
|
| 11 |
+
"recall": 0.7011310429873407,
|
| 12 |
+
"f1": 0.7491790284226022,
|
| 13 |
+
"roc_auc": 0.8122612809236298,
|
| 14 |
+
"n_pos_pred": 45242,
|
| 15 |
+
"n_pos_true": 51899,
|
| 16 |
+
"n_total": 103798
|
| 17 |
+
},
|
| 18 |
+
"test_per_language": {
|
| 19 |
+
"de": {
|
| 20 |
+
"accuracy": 0.7658305800473109,
|
| 21 |
+
"precision": 0.8069089277703005,
|
| 22 |
+
"recall": 0.7009353078721746,
|
| 23 |
+
"f1": 0.7501981230448383,
|
| 24 |
+
"roc_auc": 0.8119984081616016,
|
| 25 |
+
"n_pos_pred": 22290,
|
| 26 |
+
"n_pos_true": 25660,
|
| 27 |
+
"n_total": 51151
|
| 28 |
+
},
|
| 29 |
+
"en": {
|
| 30 |
+
"accuracy": 0.7647159382300985,
|
| 31 |
+
"precision": 0.8017601951899617,
|
| 32 |
+
"recall": 0.7013224589351729,
|
| 33 |
+
"f1": 0.7481856437153138,
|
| 34 |
+
"roc_auc": 0.812477490892189,
|
| 35 |
+
"n_pos_pred": 22952,
|
| 36 |
+
"n_pos_true": 26239,
|
| 37 |
+
"n_total": 52647
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
"training": {
|
| 41 |
+
"loss": "bce_with_logits",
|
| 42 |
+
"negatives": "hard",
|
| 43 |
+
"lr": 2e-05,
|
| 44 |
+
"epochs": 5,
|
| 45 |
+
"seed": 42,
|
| 46 |
+
"max_len": 256,
|
| 47 |
+
"train_entry_frac": 1.0
|
| 48 |
+
}
|
| 49 |
+
}
|