This model was developed by the NLP2CT Lab at the University of Macau and Alibaba Group, and all credits should be attributed to these groups. Since it was developed using the COMET codebase, we adapted the code to run these models within COMET."
This is equivalent to [UniTE-MUP-large] from modelscope
1from comet import download_model, load_from_checkpoint
23model_path = download_model("Unbabel/unite-mup")4model = load_from_checkpoint(model_path)5data =[6{7"src":"这是个句子。",8"mt":"This is a sentence.",9"ref":"It is a sentence."10},11{12"src":"这是另一个句子。",13"mt":"This is another sentence.",14"ref":"It is another sentence."15}16]17model_output = model.predict(data, batch_size=8, gpus=1)1819# Expected SRC score:20# [0.3474583327770233, 0.4492775797843933]21print(model_output.metadata.src_scores)2223# Expected REF score:24# [0.9252626895904541, 0.899452269077301]25print(model_output.metadata.ref_scores)2627# Expected UNIFIED score:28# [0.8758717179298401, 0.8294666409492493]29print(model_output.metadata.unified_scores)
Intended uses
Our model is intented to be used for MT evaluation.
Given a a triplet with (source sentence, translation, reference translation) outputs three scores that reflect the translation quality according to different inputs:
source score: [mt, src]
reference score: [mt, ref]
unified score: [mt, src, ref]
Languages Covered:
This model builds on top of XLM-R which cover the following languages: