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 details)

Uploaded Source

File details

Details for the file en_neuralcoref-2.1.1.tar.gz.

File metadata

  • Download URL: en_neuralcoref-2.1.1.tar.gz
  • Upload date:
  • Size: 51.2 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for en_neuralcoref-2.1.1.tar.gz
Algorithm Hash digest
SHA256 f4259d7ebbf4ff9b2af355b2d73581137e83268517a3b5577d2f2f283d33af61
MD5 e6246eabb1090d3341797eae1693d40d
BLAKE2b-256 3497413be08c0d7038f577dbb11d6871b6563f7e7bda36370bbfc3e702d9ed0f

See more details on using hashes here.

Supported by

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