A thin wrapper on top of neuralcoref library from Huggingface for coreference resolution
HuggingFace's neuralcoref is an excellent library, but I had to jump through a lot of hoops to get the dependency conflicts resolved. I have consolidated the requirements and made a thin wrapper on top of it.
- Install miniconda from here: https://docs.conda.io/en/latest/miniconda.html#latest-miniconda-installer-links
- Create a new conda environment with python=3.7
conda create --name coref python=3.7
- Activate the newly created conda environment
conda activate coref
- Install the package EasyNeuralCoref
pip install git+https://github.com/vishal-burman/EasyNeuralCoref.git
from easyneuralcoref import EasyNeuralCoref
nc = EasyNeuralCoref()
nc('Angela lives in Boston. She is quite happy in that city.')
# 'Angela lives in Boston. Angela is quite happy in Boston.'