I apologize for the mistake. Here's the corrected code:
# Create a comparison object
comp_cl = recordlinkage.Compare()
# Find exact matches on city, cuisine_types
comp_cl.exact('city', 'city', label='city')
comp_cl.exact('cuisine_type', 'cuisine_type', label = 'cuisine_type')
# Find similar matches of rest_name
comp_cl.string('name', 'name', label='name', threshold = 0.8)