COMET
COMET copied to clipboard
Error while running explainable metrics
Hi @kepler https://github.com/Unbabel/COMET/blob/770c2900c93ad6ed30bd43227531325e76d9b019/explainable-metrics/explain_unite.py#L277
I got an error in this line while running comet explainable:
python explainable-metrics/explain_comet.py -m COMET/wmt22-comet-da/checkpoints/model.ckpt -t ende-2021-concat.csv --batch_size 8
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'") AttributeError: 'XLMREncoder' object has no attribute 'add_span_tokens'
requirements.txt
sentencepiece== 0.1.96
transformers ==4.17
pytorch-lightning ==2.0.0
jsonargparse = "3.13.1"
torch==2.4.0"