OpenAttack
OpenAttack copied to clipboard
An Open-Source Package for Textual Adversarial Attack.
Hi OpenAttack Team, I am running the NLI example code in colab but get a URL error: The example code is in https://github.com/thunlp/OpenAttack/blob/master/examples/nli_attack.py To be specific, it is this line...

Hi, When I try to use OpenAttack, the following error occurs: File "generate_scpn.py", line 55, in scpn = OpenAttack.attackers.SCPNAttacker() File "/home/mah/.conda/envs/MBBT/lib/python3.7/site-packages/OpenAttack-test-py3.7.egg/OpenAttack/attackers/scpn/init.py", line 103, in init self.tokenizer = get_default_tokenizer(self.__lang_tag) File "/home/mah/.conda/envs/MBBT/lib/python3.7/site-packages/OpenAttack-test-py3.7.egg/OpenAttack/text_process/tokenizer/init.py",...
- 对于英文语言 PWWSAttacker 初始化报错。如果设置lang=“chinese”则没有问题 ``` >>> attacker = OpenAttack.attackers.PWWSAttacker() Traceback (most recent call last): File "/root/miniconda3/envs/dylu/lib/python3.8/urllib/request.py", line 1354, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/root/miniconda3/envs/dylu/lib/python3.8/http/client.py", line 1256, in request...
作者您好,这个攻击包可以应用到命名实体识别任务中吗,还是只可以用于文本分类任务中。
Bumps [numpy](https://github.com/numpy/numpy) from 1.21.0 to 1.22.0. Release notes Sourced from numpy's releases. v1.22.0 NumPy 1.22.0 Release Notes NumPy 1.22.0 is a big release featuring the work of 153 contributors spread...
I do not find SEA algorithm in "OpenAttack/attackers".
After updating, `attack_evals.DefaultAttackEval` no longer exist. The test below is broken. https://github.com/thunlp/OpenAttack/blob/bfedfa74f37c69db6d7092d9cc61822ee324919d/slow_tests/test_multi_process.py#L32 Because we don't have `DefaultAttackEval` anymore, it seems like we don't have a function to generate adversarial examples....
Hey there, it seems that the PWWS implementation here does not include the named entity (NE) substitution from the original paper [1]. It would be nice to add this, or...
I want to try to use the existing xlnet_sst as the attacked model. Unfortunately, it keep reporting errors. Can you check and try this example?thanks! 