egh / ledger-autosync

Synchronize your ledger-cli files with your bank.
GNU General Public License v3.0
273 stars 42 forks source link

Use fuzzywuzzy to improve payee matches. #6

Closed scottmtp closed 8 years ago

scottmtp commented 8 years ago

This PR uses fuzzywuzzy (https://github.com/seatgeek/fuzzywuzzy) to significantly improve payee matching.

Unfortunately this also slows things down quite a bit, so it may not be desirable for everyone. Installing python-Levenshtein helps but doesn't totally solve the speed issue.

egh commented 8 years ago

Seems reasonable. If you add fuzzywuzzy==0.12.0 to requirements.txt the tests should probably pass.

Do you think there is a way to make this work with the hledger and non-python ledger interfaces as well?

egh commented 8 years ago

I'm going to merge this for now. We'll see how it slows things down. Thanks!

scottmtp commented 8 years ago

Good question about improving the matching for hledger and non-python ledger. I'm fairly new to the ledger ecosystem...but I'll look into it a bit.