Question: 3. (10 points) Implement the following function for computing the similarity between two strings based on their edit distance score: ed_similarity(x, y) x: the
3. (10 points) Implement the following function for computing the similarity between two strings based on their edit distance score: ed_similarity(x, y) x: the first string y: the second string Return: 1 - edit_distance(x, y)/ max(length(x), length (y)) Let s1 = "Microsoft Corporation, WA" and s2 = "Microsoft Corp, WA" Print the output of ed_similarity(s1, s2). Your Output:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
