From 297eae0c4ee3f0659d7e9f27ef5aa2567e293726 Mon Sep 17 00:00:00 2001 From: Morteza Mirbostani Date: Mon, 7 Aug 2023 07:05:35 +0330 Subject: [PATCH] download updated --- download.sh | 2 +- qa/metric/algorithms/usencoder.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/download.sh b/download.sh index 76b47ea..2694b6c 100755 --- a/download.sh +++ b/download.sh @@ -2,7 +2,7 @@ # SQuAD v1.1 echo "Downloading SQuAD v1.1 dataset..." -SQUAD_DIR=./scripts/squad_adv_attack2 +SQUAD_DIR=./scripts/squad_adv_attack mkdir -p "$SQUAD_DIR" wget -c "https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json" -O "$SQUAD_DIR/train-v1.1.json" wget -c "https://rajpurkar.github.io/SQuAD-explorer/dataset/dev-v1.1.json" -O "$SQUAD_DIR/dev-v1.1.json" \ No newline at end of file diff --git a/qa/metric/algorithms/usencoder.py b/qa/metric/algorithms/usencoder.py index 1839a9c..92f9f9f 100644 --- a/qa/metric/algorithms/usencoder.py +++ b/qa/metric/algorithms/usencoder.py @@ -1,11 +1,8 @@ from .base import AttackMetric import numpy as np from ...tags import * -# from ...data_manager import DataManager from OpenAttack.data_manager import DataManager -# TODO use a pytorch model instead - class UniversalSentenceEncoder(AttackMetric):