Skip to content

Commit

Permalink
download updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mirbostani committed Aug 7, 2023
1 parent 07dd4a0 commit 297eae0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
3 changes: 0 additions & 3 deletions qa/metric/algorithms/usencoder.py
Original file line number Diff line number Diff line change
@@ -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):

Expand Down

0 comments on commit 297eae0

Please sign in to comment.