From 3ee6f2781e54988d6c3593c6b8f37cc3bae8f982 Mon Sep 17 00:00:00 2001 From: Richard Hudson Date: Tue, 6 Jun 2023 10:39:51 +0200 Subject: [PATCH] v1.4.1 (#27) * Support Python v3.11 * Update to latest spaCy patches * Use ubuntu-latest * Try typing_extensions workaround * Revert to ubuntu 20.04 * Change typing_extensions workaround * Add quotes * Add pydantic workaround * Correction * Add -y * Alternative solution to pydantic problem * Restrict Python 3.11 tests * Correct syntax * Correct French if statement --------- Co-authored-by: Richard Paul Hudson --- .github/workflows/test-coreferee.yml | 39 +++++++++++++++++++--------- README.md | 9 ++++++- SHORTREADME.md | 2 +- setup.cfg | 5 ++-- 4 files changed, 39 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test-coreferee.yml b/.github/workflows/test-coreferee.yml index 58f7c05..94b285f 100644 --- a/.github/workflows/test-coreferee.yml +++ b/.github/workflows/test-coreferee.yml @@ -9,28 +9,40 @@ jobs: matrix: os: [macos-latest, windows-latest, ubuntu-20.04] python_version: ['3.6', '3.7', '3.8', '3.9', '3.10'] - spacy_version: ['3.3.0'] + spacy_version: ['3.3.3'] click_version: ['8.0.1'] include: - os: 'ubuntu-20.04' - python-version: '3.10' - spacy_version: '3.5.0' + python_version: '3.11' + spacy_version: '3.5.3' + click_version: '8.0.1' + - os: 'macos-latest' + python_version: '3.11' + spacy_version: '3.5.3' + click_version: '8.0.1' + - os: 'windows-latest' + python_version: '3.11' + spacy_version: '3.5.3' click_version: '8.0.1' - os: 'ubuntu-20.04' - python-version: '3.10' - spacy_version: '3.4.2' + python_version: '3.10' + spacy_version: '3.5.3' click_version: '8.0.1' - os: 'ubuntu-20.04' - python-version: '3.10' - spacy_version: '3.2.0' + python_version: '3.10' + spacy_version: '3.4.4' click_version: '8.0.1' - os: 'ubuntu-20.04' - python-version: '3.10' - spacy_version: '3.1.0' + python_version: '3.10' + spacy_version: '3.2.6' + click_version: '8.0.1' + - os: 'ubuntu-20.04' + python_version: '3.10' + spacy_version: '3.1.7' click_version: '7.1.2' - os: 'ubuntu-20.04' - python-version: '3.10' - spacy_version: '3.0.0' + python_version: '3.10' + spacy_version: '3.0.9' click_version: '7.1.2' runs-on: ${{ matrix.os }} steps: @@ -51,6 +63,9 @@ jobs: pip uninstall click -y pip install "click==${{ matrix.click_version }}" + # see https://stackoverflow.com/questions/76313568/typeerror-issubclass-arg-1-must-be-a-class-when-importing-langchain-in-flask + pip install "typing_extensions<=4.5.0" + - name: Install spaCy models run: | python -m spacy download en_core_web_sm @@ -83,6 +98,6 @@ jobs: python -m pytest tests/pl - name: Test Coreferee (French) - if: matrix.spacy_version == '3.1.0' || matrix.spacy_version == '3.2.0' + if: matrix.spacy_version == '3.1.7' || matrix.spacy_version == '3.2.6' run: | python -m pytest tests/fr diff --git a/README.md b/README.md index 2185b9a..64334b2 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ Author: [Richard Paul Hudson](https://github.com/richardpaulhudson) - [6.8 Version 1.3.0](#version-130) - [6.9 Version 1.3.1](#version-131) - [6.10 Version 1.4.0](#version-140) + - [6.11 Version 1.4.1](#version-141) - [7. Open issues/requests for assistance](#open-issues) @@ -45,7 +46,7 @@ Author: [Richard Paul Hudson](https://github.com/richardpaulhudson) Coreferences are situations where two or more words within a text refer to the same entity, e.g. _**John** went home because **he** was tired_. Resolving coreferences is an important general task within the natural language processing field. -Coreferee is a Python 3 library (tested with versions 3.6—3.10) that is used together with [spaCy](https://spacy.io/) (tested with versions 3.0.0—3.5.0) to resolve coreferences within English, French, German and Polish texts. It is designed so that it is easy to add support for new languages. It uses a mixture of neural networks and programmed rules. +Coreferee is a Python 3 library (tested with versions 3.6—3.11) that is used together with [spaCy](https://spacy.io/) (tested with versions 3.0.0—3.5.0) to resolve coreferences within English, French, German and Polish texts. It is designed so that it is easy to add support for new languages. It uses a mixture of neural networks and programmed rules. The library was originally developed at [msg systems](https://www.msg.group/en) and was also maintained for a while at [Explosion AI](https://explosion.ai). @@ -644,6 +645,12 @@ The initial open-source version. - Added an entry point for Coreferee so it does not need to be imported explicitly alongside spaCy. - Added support for spaCy v3.5 for English, German and Polish. + + +##### 6.11 Version 1.4.1 + +- Added support for Python v3.11. + ### 7. Open issues / requests for assistance diff --git a/SHORTREADME.md b/SHORTREADME.md index 638ec07..3b561b9 100644 --- a/SHORTREADME.md +++ b/SHORTREADME.md @@ -1,6 +1,6 @@ Coreferences are situations where two or more words within a text refer to the same entity, e.g. _**John** went home because **he** was tired_. Resolving coreferences is an important general task within the natural language processing field. -Coreferee is a Python 3 library (tested with versions 3.6—3.10) that is used together with [spaCy](https://spacy.io/) (tested with versions 3.0.0—3.5.0) to resolve coreferences within English, French, German and Polish texts. It is designed so that it is easy to add support for new languages. It uses a mixture of neural networks and programmed rules. +Coreferee is a Python 3 library (tested with versions 3.6—3.11) that is used together with [spaCy](https://spacy.io/) (tested with versions 3.0.0—3.5.0) to resolve coreferences within English, French, German and Polish texts. It is designed so that it is easy to add support for new languages. It uses a mixture of neural networks and programmed rules. The library was originally developed at [msg systems](https://www.msg.group/en) and was also maintained for a while at [Explosion AI](https://explosion.ai). diff --git a/setup.cfg b/setup.cfg index 952ecf9..78757b0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = coreferee -version = 1.4.0 +version = 1.4.1 description = Coreference resolution for English, French, German and Polish, optimised for limited training data and easily extensible for further languages long_description = file: SHORTREADME.md long_description_content_type = text/markdown @@ -27,13 +27,14 @@ classifiers = Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 Topic :: Scientific/Engineering :: Artificial Intelligence Topic :: Text Processing :: Linguistic [options] include_package_data = True packages = find: -python_requires = >=3.6,<3.11 +python_requires = >=3.6,<3.12 install_requires = spacy>=3.0.0,<3.6.0 [options.entry_points]