nlp-uoregon / trankit

Trankit is a Light-Weight Transformer-based Python Toolkit for Multilingual Natural Language Processing
Apache License 2.0
731 stars 102 forks source link

While importing trankit getting mutable default error #76

Closed ArvinGoyal closed 11 months ago

ArvinGoyal commented 1 year ago

Hi I have installed trankit fist time and while importing it I am gettign below error message: "ValueError: mutable default <class 'trankit.adapter_transformers.adapter_config.InvertibleAdapterConfig'> for field invertible_adapter is not allowed: use default_factory"

My Python version is 3.11.3

Regards, Arvin Goyal

minhhdvn commented 11 months ago

Hi @ArvinGoyal, It seems that the issue has something to do with Python 3.11.3. Please lower your Python version to 3.6/3.7/3.8/3.9/3.10 to fix the issue if it is possible. Thanks