allosaurus icon indicating copy to clipboard operation
allosaurus copied to clipboard

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

Open ElafIslam123 opened this issue 3 years ago • 1 comments

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

ElafIslam123 avatar Jan 19 '22 16:01 ElafIslam123

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

xinjli avatar Jan 23 '22 23:01 xinjli