From d6d513d3a5c96ed01727a65a088da1924a0c54e6 Mon Sep 17 00:00:00 2001 From: Eric Kafe Date: Fri, 10 Dec 2021 14:22:07 +0100 Subject: [PATCH 1/3] Renamed omw to omw-1.4 (#2907) * Renamed omw to omw-1.4 Co-authored-by: Tom Aarsen <> --- nltk/corpus/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nltk/corpus/__init__.py b/nltk/corpus/__init__.py index 14b1ea23ef..cb40b4e2c0 100644 --- a/nltk/corpus/__init__.py +++ b/nltk/corpus/__init__.py @@ -359,17 +359,17 @@ wordnet = LazyCorpusLoader( "wordnet", WordNetCorpusReader, - LazyCorpusLoader("omw", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"), + LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"), ) wordnet31 = LazyCorpusLoader( "wordnet31", WordNetCorpusReader, - LazyCorpusLoader("omw", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"), + LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"), ) wordnet2021 = LazyCorpusLoader( "wordnet2021", WordNetCorpusReader, - LazyCorpusLoader("omw", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"), + LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"), ) wordnet_ic = LazyCorpusLoader("wordnet_ic", WordNetICCorpusReader, r".*\.dat") words = LazyCorpusLoader( From c075dab35d30155ea3adbae17fbb064a39b85358 Mon Sep 17 00:00:00 2001 From: Tom Aarsen <37621491+tomaarsen@users.noreply.github.com> Date: Fri, 10 Dec 2021 15:21:07 +0100 Subject: [PATCH 2/3] Allow commits with `/nocache` to not use the cache (#2909) * Allow commits to not use the CI Cache if /nocache is used in the commit message --- .github/workflows/ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5fafe82176..60e025af92 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,6 +37,7 @@ jobs: uses: actions/checkout@v2 - name: Cache nltk data + if: ${{ !contains(github.event.head_commit.message, '/nocache') }} uses: actions/cache@v2 id: restore-cache with: @@ -59,6 +60,7 @@ jobs: uses: actions/checkout@v2 - name: Cache third party tools + if: ${{ !contains(github.event.head_commit.message, '/nocache') }} uses: actions/cache@v2 id: restore-cache with: @@ -96,6 +98,7 @@ jobs: if: runner.os == 'Linux' - name: Cache dependencies + if: ${{ !contains(github.event.head_commit.message, '/nocache') }} uses: actions/cache@v2 id: restore-cache with: From abbe86b8af660b4fdf477505b89d92dd5aa46519 Mon Sep 17 00:00:00 2001 From: Tom Aarsen Date: Fri, 10 Dec 2021 15:48:43 +0100 Subject: [PATCH 3/3] Undo #2909 due to unexpected test failure --- .github/workflows/ci.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 60e025af92..5fafe82176 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,7 +37,6 @@ jobs: uses: actions/checkout@v2 - name: Cache nltk data - if: ${{ !contains(github.event.head_commit.message, '/nocache') }} uses: actions/cache@v2 id: restore-cache with: @@ -60,7 +59,6 @@ jobs: uses: actions/checkout@v2 - name: Cache third party tools - if: ${{ !contains(github.event.head_commit.message, '/nocache') }} uses: actions/cache@v2 id: restore-cache with: @@ -98,7 +96,6 @@ jobs: if: runner.os == 'Linux' - name: Cache dependencies - if: ${{ !contains(github.event.head_commit.message, '/nocache') }} uses: actions/cache@v2 id: restore-cache with: