Closed saichandrapandraju closed 3 years ago
The error is due to
AttributeError: 'Namespace' object has no attribute 'sacrebleu_char_level'
I am using the following version of sacrebleu
.
Name: sacrebleu
Version: 1.2.11
Summary: Hassle-free computation of shareable, comparable, and reproducible BLEU scores
Home-page: https://github.com/awslabs/sockeye
Hi @wasiahmad ,
I found below workaround -
mbart_base
is not present in fairseq==0.9.0
so I installed fairseq==0.10.0
.fairseq==0.10.0
, sacrebleu
version should be >=1.4.x
. So I installed sacrebleu==1.5.1
.--sacrebleu
with --scoring sacrebleu
in 112 line of scripts/code_to_code/translation/run.sh
.source/sentence_prediction.py
as it's erroring ModuleNotFoundError
.%cd evaluation/CodeBLEU/parser
!bash build.sh
%cd ../../..
With these changes everything ran successfully.
I have couple of queries though -
This is really helpful.
build.sh
.maybe_shorten_dataset
in line 28 in source/sentence_prediction.py
?Answers to questions
Thanks @wasiahmad ,
As I'm working only on translation part , I thought there's no need of source/sentence_prediction.py
. So got away with it (atleast for now) :-)
We are working on a release where we will release all the fine-tuned checkpoints. Also, there are bugs that are also fixed. We will also provide scripts to set up conda environment so that experiments can be run without any issue.
That would be great !!!
Hi @wasiahmad ,
I am trying 'translation' capabilities of PLBART and started finetuning as mentioned. But I'm getting below error in evaluation -
Here is a bit detailed traceback -
Could you plz suggest how to proceed further..