textfool
textfool copied to clipboard
in data_utils, the token.rank is 0
In the data_utils.py, all the token.rank in function extract_features is 0. Hence, X_train and X_test are the same which are the vector as [1, 1, 1, 1....., 0, 0]. What is the problem?