Error NameError: name 'end' is not defined when running Databricks FebrlExample from Zingg GitHub repo
Hello @channel i am trying to follow the example of databricks from github - https://github.com/zinggAI/zingg/blob/main/examples/databricks/FebrlExample.ipynb however its not working for me.. after training the data with match no match. getting below error error-
NameError Traceback (most recent call last)
File <command-7549327290054910>, line 20
18 start += len('data-title="')
19 end = pair.children[0].value.find('"', start+2)
---> 20 pair_id = pair.children[0].value[start:end]
24 # assign label to candidate pair entry in dataframe
25 candidate_pairs_pd.loc[candidate_pairs_pd['z_cluster']==pair_id, 'z_isMatch'] = LABELS.get(user_assigned_label)
NameError: name 'end' is not definedcode snippet - here value of start is always -1
start = pair.children[0].value.find('data-title="')
if start > 0:
start += len('data-title="')
end = pair.children[0].value.find('"', start+2)
pair_id = pair.children[0].value[start:end]