dccuchile / wefe

WEFE: The Word Embeddings Fairness Evaluation Framework. WEFE is a framework that standardizes the bias measurement and mitigation in Word Embeddings models. Please feel welcome to open an issue in case you have any questions or a pull request if you want to contribute to the project!
https://wefe.readthedocs.io/
MIT License
173 stars 14 forks source link

Problem with the library typing #12

Closed Mezosky closed 3 years ago

Mezosky commented 3 years ago

I tried to test the wefe library through colabolatory and it does not work due to compatibility issues with the library typing (product colab works with python 3.7). I got this problem:

ImportError: cannot import name 'Literal' from 'typing' (/usr/lib/python3.7/typing.py)

Perhaps a solution to this problem is to add the following lines in the code:

try:
    from typing import Literal
except ImportError:
    from typing_extensions import Literal
pbadillatorrealba commented 3 years ago

Hello @Mezosky ,

Sorry for the problems! I will try to include it as soon as possible.

Best regards, Pablo.

pbadillatorrealba commented 3 years ago

Hello,

I have just fixed the error you indicate. Sorry for the long delay.

To update WEFE with pip:

pip install -U wefe

To update with conda:

conda install -c pbadilla wefe 

Best regards, Pablo.