Skip to main content

neural coref spaCy model

This spaCy model annotates and resolves coreference clusters using a neural network. Note: as of now the model is only available in English.

Installation

Before using the neural coref model, make sure spaCy English model is installed.

$ python -m spacy download en_core_web_sm

Now the neural coref spaCy model can be installed.

$ pip install en-neuralcoref

Usage

# Import spacy and load the en_neuralcoref model
import spacy
nlp = spacy.load('en_neuralcoref')

# You're done. You can now use NeuralCoref as you usually manipulate a SpaCy document annotations.
doc = nlp(u'My sister has a dog. She loves him.')

doc._.has_coref
doc._.coref_clusters
doc._.coref_resolved

License

MIT

Metadata

Release files for en-neuralcoref 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for en-neuralcoref 2.1.1
File Size Uploaded
en_neuralcoref-2.1.1.tar.gz 51.2 MB Details

Release files / en_neuralcoref-2.1.1.tar.gz

Download URL en_neuralcoref-2.1.1.tar.gz
Size 51.2 MB
Tags Source
SHA-256 checksum
How to use checksums
f4259d7ebbf4ff9b2af355b2d73581137e83268517a3b5577d2f2f283d33af61
BLAKE2b-256 checksum
How to use checksums
3497413be08c0d7038f577dbb11d6871b6563f7e7bda36370bbfc3e702d9ed0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

2.1.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page