Skip to content

Commit

Permalink
Pre download nltk data
Browse files Browse the repository at this point in the history
  • Loading branch information
Artrajz committed Mar 13, 2024
1 parent 6c619cc commit 094c4a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-windows-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
pip install --extra-index-url https://pypi.artrajz.cn/simple -r requirements.txt
shell: cmd

- name: Pre download nltk data
run: |
curl -o nltk_data.zip https://github.com/Artrajz/archived/raw/main/nltk/nltk_data.zip
expand -F:* "nltk_data.zip" "C:\Programs\Miniconda3\envs\py310"
del nltk_data.zip
shell: cmd

- name: Copy python environment
run: |
XCOPY C:\programs\miniconda3\envs\py310 py310\ /E /Y /F
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build-windows-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
pip install --no-cache-dir torch==2.2.1+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
pip install --extra-index-url https://pypi.artrajz.cn/simple -r requirements.txt
shell: cmd

- name: Pre download nltk data
run: |
curl -o nltk_data.zip https://github.com/Artrajz/archived/raw/main/nltk/nltk_data.zip
expand -F:* "nltk_data.zip" "C:\Programs\Miniconda3\envs\py310"
del nltk_data.zip
shell: cmd

- name: Copy python environment
run: |
Expand Down

0 comments on commit 094c4a0

Please sign in to comment.