Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ElafIslam123 opened this issue Jan 19, 2022 · 1 comment
Open

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

ElafIslam123 opened this issue Jan 19, 2022 · 1 comment

Comments

@ElafIslam123
Copy link

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
Copy link
Owner

xinjli commented Jan 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants