Skip to content

Commit

Permalink
v1.4.1 (#27)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
richardpaulhudson and richardpaulhudson authored Jun 6, 2023
1 parent d91edeb commit 3ee6f27
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 16 deletions.
39 changes: 27 additions & 12 deletions .github/workflows/test-coreferee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<a id="introduction"></a>
Expand All @@ -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).

Expand Down Expand Up @@ -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.

<a id="version-141"></a>

##### 6.11 Version 1.4.1

- Added support for Python v3.11.

<a id="open-issues"></a>

### 7. Open issues / requests for assistance
Expand Down
2 changes: 1 addition & 1 deletion SHORTREADME.md
Original file line number Diff line number Diff line change
@@ -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).

Expand Down
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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]
Expand Down

0 comments on commit 3ee6f27

Please sign in to comment.