mirror of
https://github.com/facebookresearch/fairseq.git
synced 2024-09-21 14:17:25 +03:00
Extract after skipping download for LM example script
Summary: Pull Request resolved: https://github.com/pytorch/fairseq/pull/538 Differential Revision: D14258736 Pulled By: myleott fbshipit-source-id: ca16355e4c4700fc8eecf2c9374ec170bca826a4
This commit is contained in:
parent
98daf039b6
commit
19b6e8bf1e
14
examples/language_model/prepare-wikitext-103.sh
Normal file → Executable file
14
examples/language_model/prepare-wikitext-103.sh
Normal file → Executable file
@ -21,13 +21,13 @@ for ((i=0;i<${#URLS[@]};++i)); do
|
|||||||
echo "$url not successfully downloaded."
|
echo "$url not successfully downloaded."
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
if [ ${file: -4} == ".tgz" ]; then
|
fi
|
||||||
tar zxvf $file
|
if [ ${file: -4} == ".tgz" ]; then
|
||||||
elif [ ${file: -4} == ".tar" ]; then
|
tar zxvf $file
|
||||||
tar xvf $file
|
elif [ ${file: -4} == ".tar" ]; then
|
||||||
elif [ ${file: -4} == ".zip" ]; then
|
tar xvf $file
|
||||||
unzip $file
|
elif [ ${file: -4} == ".zip" ]; then
|
||||||
fi
|
unzip $file
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
Reference in New Issue
Block a user