Token Classification
Transformers
ONNX
Safetensors
multilingual
deberta-v2
causal-extraction
causality
cause-effect
reasongraph
Instructions to use Berk/causal-span-mdeberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Berk/causal-span-mdeberta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Berk/causal-span-mdeberta")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Berk/causal-span-mdeberta") model = AutoModelForTokenClassification.from_pretrained("Berk/causal-span-mdeberta", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add causal span model (mDeBERTa-v3 BIO tagger)
Browse files
README.md
CHANGED
|
@@ -56,22 +56,27 @@ what reasongraph loads.
|
|
| 56 |
|
| 57 |
## Evaluation
|
| 58 |
|
| 59 |
-
|
|
|
|
|
|
|
| 60 |
|
| 61 |
```
|
| 62 |
-
|
| 63 |
-
match, brutal on CNC's long clause spans) and token-level type match (boundary-tolerant).
|
| 64 |
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
|
|
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
| 75 |
```
|
| 76 |
|
| 77 |
Multilingual capability comes from mDeBERTa-v3's zero-shot cross-lingual transfer;
|
|
|
|
| 56 |
|
| 57 |
## Evaluation
|
| 58 |
|
| 59 |
+
Benchmarked on the Causal News Corpus (CNC) Subtask 2 dev set. This is an honest
|
| 60 |
+
**first-pass** model: it is **below the shared-task baseline and SOTA**. Its value
|
| 61 |
+
is robust multilingual zero-shot extraction, not leaderboard rank.
|
| 62 |
|
| 63 |
```
|
| 64 |
+
Official CNC scorer (evaluation/subtask2: best-combination alignment + FairEval), V2 dev:
|
|
|
|
| 65 |
|
| 66 |
+
Overall F1 0.475 (precision 0.495, recall 0.456)
|
| 67 |
+
Cause F1 0.39 | Effect F1 0.47 | Signal F1 0.62
|
| 68 |
+
Multi-relation sentences: F1 0.276 (this model predicts ONE relation per sentence)
|
| 69 |
|
| 70 |
+
Shared-task context (official scorer):
|
| 71 |
+
Organizer baseline (2023, dev) ~0.627
|
| 72 |
+
1Cademy (2022 winner, test) 0.542
|
| 73 |
+
BoschAI (2023 winner, test) 0.728
|
| 74 |
|
| 75 |
+
So this model is ~15 F1 points below the CNC dev baseline. The dominant gap is
|
| 76 |
+
multi-relation sentences (F1 0.28): it emits a single relation per sentence.
|
| 77 |
+
|
| 78 |
+
Strict exact-span seqeval (own eval, clean dev): micro F1 0.48
|
| 79 |
+
Token-level type match (boundary-tolerant, own eval): F1 0.79
|
| 80 |
```
|
| 81 |
|
| 82 |
Multilingual capability comes from mDeBERTa-v3's zero-shot cross-lingual transfer;
|