flairNLP / flair

A very simple framework for state-of-the-art Natural Language Processing (NLP)
https://flairnlp.github.io/flair/
Other
13.7k stars 2.08k forks source link

quick fix for py3.12 #3461

Closed tavallaie closed 2 weeks ago

tavallaie commented 1 month ago

adding genism@da2f388 for supporting python 3.12

Solving #3438

https://blog.techbend.io/overcoming-the-hazm-compatibility-challenge-with-python-312

helpmefindaname commented 2 weeks ago

Hi @tavallaie thank you for taking kind of this issue, but I disagree that this should be merged into libraries. The root issue lies in gensim not having released the fixes that are on their current develop branch. The fix to this is, that gensim needs to release a new version that is stable, which they are also planning to do soon. Until then, nothing prevents you from using flair by running pip install flair git+https://github.com/piskvorky/gensim.git@da2f388 or any of the other solutions suggested here. Pinning a version within a library would be bad, as it would force everyone to use that specific version, no matter if they are using python3.12 or were going for older python3.8