Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7976ab1

Browse files
authored
Update spaCy model download to full name (#1338)
* Update spaCy model download to full name Short 'en' and 'de' names has been deprecated since spaCy 3.0, so use fullname instead as suggested by the warning: ``` [!] As of spaCy v3.0, shortcuts like 'en' are deprecated. Pleaseuse the full pipeline package name 'en_core_web_sm' instead. [!] As of spaCy v3.0, shortcuts like 'de' are deprecated. Pleaseuse the full pipeline package name 'de_core_news_sm' instead. ``` * Add retries to window build downloads * Also, pin spacy version
1 parent dde066c commit 7976ab1

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.circleci/scripts/build_for_windows.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ PROJECT_DIR="${SOURCE_DIR}/../.."
1010
pushd $SOURCE_DIR
1111

1212
#install wget and make
13-
curl -k https://ymu.dl.osdn.jp/mingw/68260/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.zip -o mingw32.zip
13+
curl --retry 3 -k https://ymu.dl.osdn.jp/mingw/68260/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.zip -o mingw32.zip
1414
unzip mingw32.zip -d mingw32
1515
mingw32/bin/mingw-get.exe install mingw32-make
1616
mingw32/bin/mingw-get.exe install msys-findutils
1717
mv mingw32/bin/mingw32-make.exe mingw32/bin/make.exe
18-
curl -k https://eternallybored.org/misc/wget/1.20.3/64/wget.exe -o mingw32/bin/wget.exe
18+
curl --retry 3 -k https://eternallybored.org/misc/wget/1.20.3/64/wget.exe -o mingw32/bin/wget.exe
1919
export PATH="${SOURCE_DIR}/mingw32/bin:${SOURCE_DIR}/mingw32/msys/1.0/bin:$PATH"
2020

2121
#install anaconda3
2222
export CONDA_HOME="${SOURCE_DIR}/conda"
2323
export tmp_conda="${SOURCE_DIR}/conda"
2424
export miniconda_exe="${SOURCE_DIR}/miniconda.exe"
2525
rm -rf conda miniconda.exe
26-
curl -k https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -o miniconda.exe
26+
curl --retry 3 -k https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -o miniconda.exe
2727
./install_conda.bat
2828
export PATH="${tmp_conda}:${tmp_conda}/Library/usr/bin:${tmp_conda}/Library/bin:${tmp_conda}/Scripts:${tmp_conda}/bin:$PATH"
2929

@@ -38,8 +38,8 @@ pip install pySoundFile
3838
# Force uninstall torch & related packages, we'll install them using conda later.
3939
pip uninstall -y torch torchvision torchtext
4040
conda install -yq -c pytorch "cudatoolkit=10.2" pytorch torchvision torchtext torchaudio
41-
python -m spacy download de
42-
python -m spacy download en
41+
python -m spacy download de_core_news_sm
42+
python -m spacy download en_core_web_sm
4343
pushd ${PROJECT_DIR}
4444
DIR=.jenkins
4545
export NUM_WORKERS=4

.jenkins/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ pip install -r $DIR/../requirements.txt
3636
pip install tb-nightly
3737

3838
# Install two language tokenizers for Translation with TorchText tutorial
39-
python -m spacy download en
40-
python -m spacy download de
39+
python -m spacy download en_core_web_sm
40+
python -m spacy download de_core_news_sm
4141

4242
# PyTorch Theme
4343
rm -rf src

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ PyHamcrest
1919
bs4
2020
awscliv2==2.1.1
2121
flask
22-
spacy
22+
spacy==3.4.1
2323
ray[tune]
2424
tensorboard
2525
jinja2==3.0.3

0 commit comments

Comments
 (0)