Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
pin NLTK to avoid breaking change to meteor score (#304)
Browse files Browse the repository at this point in the history
* pin NLTK to avoid breaking change to meteor score

* pin tighter

* freeze again

* clear cache

* fix
  • Loading branch information
epwalsh authored Oct 22, 2021
1 parent c814aa1 commit 39557dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ on:

env:
# NOTE: Need to update `TORCH_VERSION` and `TORCH_VISION_VERSION` for new torch releases.
TORCH_VERSION: 1.9.0
TORCH_VISION_VERSION: 0.10.0
TORCH_VERSION: 1.9.1
TORCH_VISION_VERSION: 0.10.1
# Change this to invalidate the current cache.
CACHE_PREFIX: v0
CACHE_PREFIX: v1
# Disable tokenizers parallelism because this doesn't help, and can cause issues in distributed tests.
TOKENIZERS_PARALLELISM: 'false'
# Disable multithreading with OMP because this can lead to dead-locks in distributed tests.
Expand Down Expand Up @@ -169,8 +169,7 @@ jobs:
. .venv/bin/activate
pip install torch==${{ env.TORCH_VERSION }}+${{ matrix.task.torch_platform }} torchvision==${{ env.TORCH_VISION_VERSION }}+${{matrix.task.torch_platform}} -f https://download.pytorch.org/whl/torch_stable.html
pip uninstall -y allennlp
pip install --upgrade --upgrade-strategy eager -r requirements.txt
pip install --upgrade --upgrade-strategy eager -r dev-requirements.txt
pip install --upgrade -r requirements.txt -r dev-requirements.txt
- name: Show environment info
if: always()
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ conllu==4.4.1
# For RC models
word2number>=1.1
py-rouge==1.1
nltk
nltk<3.6.5

# For CNN/DailyMail dataset reader
ftfy

0 comments on commit 39557dd

Please sign in to comment.