Downloads · 30 days
13
7% of all-time downloads
sapienzanlp/sentinel-src-da
sentinel-src-da is a translation model from sapienzanlp. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as cc-by-nc-sa-4.0.
Downloads · 30 days
13
7% of all-time downloads
All-time downloads
187
Public
Repo size
2.2 GB
Likes
5
Public
Click a slice to open those files.
.ckpt2.2 GB · 100%
From the Hugging Face model README
This repository contains the SENTINEL<sub>SRC</sub> metric model trained on Direct Assessments (DA) annotations. For details on how to use our sentinel metric models, check our GitHub repository.
After having installed our repository package, you can use this model within Python in the following way:
from sentinel_metric import download_model, load_from_checkpoint
model_path = download_model("sapienzanlp/sentinel-src-da")
model = load_from_checkpoint(model_path)
data = [
{"src": "E.T.打电话回家"},
{"src": "托托,我感觉我们已经不在堪萨斯了"}
]
output = model.predict(data, batch_size=8, gpus=1)
Output:
# Segment scores
>>> output.scores
[0.524381160736084, 0.4951918423175812]
# System score
>>> output.system_score
0.5097865015268326
This work has been published at ACL 2024 (Main Conference). If you use any part, please consider citing our paper as follows:
@inproceedings{perrella-etal-2024-guardians,
title = "Guardians of the Machine Translation Meta-Evaluation: Sentinel Metrics Fall In!",
author = "Perrella, Stefano and Proietti, Lorenzo and Scir{\`e}, Alessandro and Barba, Edoardo and Navigli, Roberto",
editor = "Ku, Lun-Wei and Martins, Andre and Srikumar, Vivek",
booktitle = "Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
month = aug,
year = "2024",
address = "Bangkok, Thailand", publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.acl-long.856",
pages = "16216--16244",
}
This work is licensed under Creative Commons Attribution-ShareAlike-NonCommercial 4.0.