Convert SAS Compged function to Python

For project requirements, I am converting all the SAS codes to python, I got stuck where for 2 string matching, SAS inbuilt COMPGED function is used. I need the same score so need to convert it into Python code rather than using other libraries like fuzzywuzzy.

Please help if possible, just need some starter code to understand how to build it.

COMPGED

1 Answer

Getting exact match is going to be extremely complex. You will need to produce your own implementation of the generalised edit distance.

A good starting point might be here:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like