I am trying to calculate the normalized editex similarity between two strings using python. ASo far I have used this code to get the raw editex distance which has worked fine:
new_df["EdxScore"] = new_df.apply(lambda x: editex.(x[0],x[1]), axis=1)
I have read the documentation here: https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html
However when I try:
new_df["EdxScore"] = new_df.apply(lambda x: textdistance.editex.get_sim_score(x[0],x[1]), axis=1)
I get the error:
AttributeError: ("'Editex' object has no attribute 'get_sim_score'", 'occurred at index 0')
I'm not entirely sure what's going wrong here so any help would be much appreciated!