sillsdev / machine.py

Machine is a natural language processing library for Python that is focused on providing tools for processing resource-poor languages.
MIT License
10 stars 2 forks source link

Upgrade machine.py production docker container to python 3.11 #82

Closed mshannon-sil closed 11 months ago

mshannon-sil commented 11 months ago

Upgrading the production docker container to python 3.11. I also changed some of the tests I wrote because when I at first updated all of the poetry packages, a few of them stopped passing. However, I've since reverted most of the packages back to their original versions and only upgraded packages that were necessary to upgrade, but I kept the changes to the tests regardless for maximum compatibility.


This change is Reviewable

johnml1135 commented 11 months ago

tests/translation/huggingface/test_hugging_face_nmt_model_trainer.py line 145 at r1 (raw file):

            training_args,
            corpus,
            src_lang="en_XX",

Why would the test without the _XX fail on newer versions of python? We should support language codes that don't include a script code.