Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Fixed script for downloading Zero-shot Entity Linking (zeshel) dataset from Google Drive #112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions examples/zeshel/get_zeshel_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ fi

fileid="1ZcKZ1is0VEkY9kNfPxIG19qEIqHE5LIO"
filename="zeshel.tar.bz2"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
rm cookie
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"`
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o ${filename}

tar -xf $filename -C $zeshel_data_folder
rm ${filename}