I have a list of terms and a dictionary and I want to use the list to get the values of the dictionary based on these keys. Let's say
d = {'400cm': 'John Doe', 'Go - Pro': 'Mary Smith'}
l = ['400 cm', 'Go-Pro']
I am wondering how I could account for cases where the key has a slightly different form than the element of the list. For example:
key = '400cm'
list_term = '400 cm'
or
key = 'Go - Pro'
list_term = 'Go-Pro'
Basically how could I ensure similarity on the token level?