Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error while running explainable metrics #234

Open
rafikg opened this issue Nov 28, 2024 · 0 comments
Open

Error while running explainable metrics #234

rafikg opened this issue Nov 28, 2024 · 0 comments

Comments

@rafikg
Copy link

rafikg commented Nov 28, 2024

Hi @kepler

model.encoder.add_span_tokens("<v>", "</v>")

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"
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant