SememePSO-Attack
SememePSO-Attack copied to clipboard
Code and data of the ACL 2020 paper "Word-level Textual Adversarial Attacking as Combinatorial Optimization"
作者你好,当我运行SNLI文件夹下面的AD_dpso_sem.py文件时,会出现这个错误,完整报错如下 Traceback (most recent call last): File "D:/z/SememePSO-Attack-master/SNLI/AD_dpso_sem.py", line 80, in attack_result = adversary.attack(s1, s2, target,pos_tags) File "D:\z\SememePSO-Attack-master\SNLI\attack_dpso_sem.py", line 180, in attack orig_score=self.predict(x1,x_orig) File "D:\z\SememePSO-Attack-master\SNLI\attack_dpso_sem.py", line 30, in predict tem=self.model.predict(np.array([x1]),np.array([sentence]))[0]...
Hi, thank you for provide the code! May I ask you that how you guys do the delemmatization in the code of IMDB dataset?