Score_batch with ctranslate2 - object has no attribute

Hello,

I’m trying to use the score_batch function from Translator object, but I’m getting this error:

AttributeError: ‘ctranslate2.translator.Translator’ object has no attribute ‘score_batch’

I’m using the same object to call “translate_batch” and it’s working perfectly, so i’m pretty sure the issue is not on my end.

I’m using ctranslate2==2.2.0

Hi,

This method was added in version 2.3:

1 Like