nlp-uoregon / trankit

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

fix incompatibility with modern immutability check of @dataclass #74

Closed alxshine closed 10 months ago

alxshine commented 1 year ago

This fixes #73.

I continued the policy of exposing self.dict and added hash functions for both the invertible adapter config and the regular adapter config.

minhhdvn commented 10 months ago

Hi @alxshine , Thanks for the pull request. We have merged it to the base branch.