xinjli / allosaurus

Allosaurus is a pretrained universal phone recognizer for more than 2000 languages
GNU General Public License v3.0
532 stars 85 forks source link

using 'eval' insted of 'distance' in trainer.py #52

Open ElafIslam123 opened 2 years ago

ElafIslam123 commented 2 years ago

Hi Thank you for allosaurus :) I'm trying to train a model and I've got this error message AttributeError: module 'editdistance' has no attribute 'distance' so I replaced 'distance' with 'eval' in trainer.py and it works well I'm using python v3.7

xinjli commented 2 years ago

Hi, thanks for asking Can you try upgrading your editdistance module? maybe its a version mismatch

Actually It looks there is a distance function in editdistance here. https://github.com/roy-ht/editdistance/blob/master/editdistance/__init__.py