facebookresearch / SentEval

A python tool for evaluating the quality of sentence embeddings.
Other
2.09k stars 309 forks source link

Update utils.py to work for python versions > 3.10 #92

Open gerardPlanella opened 1 year ago

gerardPlanella commented 1 year ago

This pull request resolves issue #89 by checking the used python version and modifying the way the expected optimizer parameters are obtained. For python versions below 3.10 the code is unchanged.

GabHoo commented 1 year ago

Cheers, thankyou! double if on line 90 tho