Model description

Relex is a fine-tuned CamemBERT model trained to classify the relation expressed by a connective in context. Given a connective tagged by the tokens [MARKER] and [/MARKER], Relex predicts the relation of this connective.

  • Training data: French newspapers and Wikiconflit comments, automatically annotated in connectives

  • Special tokens: Connectives are wrapped between [MARKER] and [/MARKER] tokens in the training data. These tags signal to the model which word it should focus its attention on for the relation mapping.

  • Context Window: The special tokens must appear within the first 256 tokens of the input. Because these signals are the anchor for the classification, ensuring they are not truncated is crucial for accurate predictions.

  • Predictions: Relex predicts among 19 discourse relations (SDRT) .

  • Example:

  • Input: [MARKER] Peu avant de [/MARKER] mourir, Mio a promis à son mari qu'elle reviendrait à la saison des pluies.

  • Prediction: Narration

Usage

You can use this model directly with a Hugging Face pipeline:

from transformers import pipeline

pipe = pipeline("text-classification", model="FatouSow/Relex")

text ="[MARKER] Peu avant de [/MARKER] mourir, Mio a promis à son mari qu'elle reviendrait à la saison des pluies."

result = pipe(text)
print(result)
Downloads last month
4
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for FatouSow/Relex

Finetuned
(179)
this model

Evaluation results

  • Label Names
    self-reported
    alternation,background,commentary,concession,condition,consequence,continuation,contrast,detachment,evidence,explanation,explanation*,flashback,goal,narration,parallel,result,result*,summary
  • macro-F1
    self-reported
    0.590
  • Accuracy
    self-reported
    0.630
  • Precision
    self-reported
    0.620
  • Recall
    self-reported
    0.620