facebookresearch / SimulEval

SimulEval: A General Evaluation Toolkit for Simultaneous Translation
Creative Commons Attribution Share Alike 4.0 International
102 stars 36 forks source link

Fix evaluation issue when latency unit is spm for iterative dataloader #98

Closed xutaima closed 11 months ago

xutaima commented 11 months ago

self.instances[index].latency_unit = self.args.eval_latency_unit feels a bit hacky. Suggested a cleaner way in the comments.

Thanks! It makes sense