CoolFace
Modelpublic

CreativeLang/metaphor_detection_roberta_seq

sourceHugging Facecc-by-2.0updated 3y agoView on Hugging Face
4likes2.9kdownloads
Model Card

MetaphorDetectionRoberta_Seq

Description

Model Summary

Creative Language Toolkit (CLTK) Metadata

  • CL Type: Metaphor
  • Task Type: detection
  • Size: roberta-base (500MB)
  • Created time: 2022

This model is a easy to use metaphor detection baseline realised with roberta-base fine-tuned on CreativeLang/vua20_metaphor dataset.

To use this model, please use the inference.py in the FrameBERT repo.

Just run:

python inference.py CreativeLang/metaphor_detection_roberta_seq

Check out inference.py to learn how to apply the model on your own data.

For the details of this model and the dataset used, we refer you to the release paper.

Metrics

MetricValue
eval_loss0.2656
evalaccuracyscore0.9142
eval_precision0.9142
eval_recall0.9142
eval_f10.9142
evalf1macro0.7315
eval_runtime8.9802
evalsamplesper_second411.7960
evalstepsper_second51.5580
epoch3.0000

Citation Information

If you find this dataset helpful, please cite:

@article{Li2023FrameBERTCM,
  title={FrameBERT: Conceptual Metaphor Detection with Frame Embedding Learning},
  author={Yucheng Li and Shunyu Wang and Chenghua Lin and Frank Guerin and Lo{\"i}c Barrault},
  journal={ArXiv},
  year={2023},
  volume={abs/2302.04834}
}

Contributions

If you have any queries, please open an issue or direct your queries to mail.