dhmit / gender_analysis_web

4 stars 0 forks source link

Gender Analysis Web

This project is an extension of the work originally begun in https://github.com/dhmit/gender_analysis.

A note on the neuralcoref package

This project uses the Python package neuralcoref, which requires a few extra steps to install. Note that the following instructions are meant for those set up with the DHMIT lab's tooling (for which see here).

To install, follow the following steps:

To test out the package, you can open up your Python console and run the following commands:

>>> import spacy
>>> import neuralcoref
>>> nlp = spacy.load('en_core_web_sm')
>>> neuralcoref.add_to_pipe(nlp)
>>> doc = nlp(u'My sister has a dog. She loves him.')
>>> doc._.coref_clusters
[My sister: [My sister, She], a dog: [a dog, him]]

Documentation for this package can be found here.