GEM-benchmark / GEM-metrics

Automatic metrics for GEM tasks
https://gem-benchmark.com
MIT License
60 stars 20 forks source link

Colab or Kaggle compatibility (Python 3.7 usage instead of 3.8) #61

Closed asnota closed 2 years ago

asnota commented 2 years ago

Hello, I've been trying to run the tests on Colab/Kaggle platforms, however the currect installation on those platforms in 3.7.12, whereas the cached_property of the functools decorator used in text.py file appeared starting from Python 3.8 (https://github.com/python/typeshed/issues/4198#issuecomment-640233038). I therefore keep receiving AttributeError: module 'functools' has no attribute 'cached_property' with a simple import statement, which makes this library not usable on these platforms.

sebastianGehrmann commented 2 years ago

This should be fixed.