Skip to main content

Pipeline extension for spaCy which annotates and resolves coreference clusters using a neural network.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

en_neuralcoref-2.1.1.tar.gz (51.2 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page