原文件如下:是 get_word2vec_model.sh 文件。
source common.ini
if [ ! -d "$rootpath" ]; then
echo "rootpath $rootpath does not exit"
exit
fi
DIR="$( cd "$(dirname "$0")" ; pwd -P )"
cd $DIR
echo "Downloading..."
wget
http://www.mmc.ruc.edu.cn/research/hierse/flickr4m.word2vec.tar.gz
echo "Unzipping..."
tar -xf flickr4m.word2vec.tar.gz -C $rootpath && rm -f flickr4m.word2vec.tar.gz
echo "Done."
出错结果如下:
f@f-Lenovo:~/workspace/zero-shot/hierse-master$ ./get_word2vec_model.sh
Downloading...
--2016-07-06 10:03:28--
http://www.mmc.ruc.edu.cn/research/hierse/flickr4m.word2vec.tar.gz
Resolving
www.mmc.ruc.edu.cn (
www.mmc.ruc.edu.cn)... 202.112.113.27
Connecting to
www.mmc.ruc.edu.cn (
www.mmc.ruc.edu.cn)|202.112.113.27|:80... failed: Connection timed out.
Retrying.
--2016-07-06 10:05:36-- (try: 2)
http://www.mmc.ruc.edu.cn/research/hierse/flickr4m.word2vec.tar.gz
Connecting to
www.mmc.ruc.edu.cn (
www.mmc.ruc.edu.cn)|202.112.113.27|:80...