Describe the bug
the return of Attacked_text.word_diff_ratio is 1 all the time
To Reproduce
Steps to reproduce the behavior:
- Run following command
textattack ...
- Run following code ...
- top_member.attacked_text.words_diff_ratio(initial_result.attacked_text)
- See error
reason
the type of AttackedText.words is list, when it is use as as input parameter of np.sum() it returns 1or 0 all the time, because it is always consider the first index of the input list
Describe the bug
the return of Attacked_text.word_diff_ratio is 1 all the time
To Reproduce
Steps to reproduce the behavior:
textattack ...reason
the type of AttackedText.words is list, when it is use as as input parameter of np.sum() it returns 1or 0 all the time, because it is always consider the first index of the input list