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: 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(