yannvgn / laserembeddings

LASER multilingual sentence embeddings as a pip package
BSD 3-Clause "New" or "Revised" License
224 stars 29 forks source link

AttributeError: 'BPECodesAdapter' object has no attribute 'read' #38

Closed NikolaiG-A closed 2 years ago

NikolaiG-A commented 2 years ago

I've recently experienced this error AttributeError: 'BPECodesAdapter' object has no attribute 'read' which comes from the package _subwordnmt used during the tokenization. Apparently, this package had some modifications. It's better to fix the specific version during installation of laserembeddings to avoid the problem, i.e. pip install subword-nmt==0.3.7

AghilesAzzoug commented 2 years ago

Hi mate! :wave:

yannvgn commented 2 years ago

Thanks for reporting the issue, @NikolaiG-A, and sorry for that. The fix was released, you can now upgrade to 1.1.2.

Cheers,