Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
data
docs
extras
static_html
.gitignore
README.md
allenDatasetReader.py
allenModel.py
readerFunctions.py

README.md

GenderQuant

If models/novels exists already, please remove it first:

rm -rf models/novels

To train the model, run the following command:

allennlp train config/config_simple_roc.json -s models/novels --include-package allenModel --include-package allenDatasetReader

To run the website demo, run the following command, and see the result in local http://localhost:8000/:

python -m allennlp.service.server_simple --archive-path models/novels/model.tar.gz --predictor GenderQuant --include-package allenModel --include-package allenDatasetReader --static-dir static_html

If could not run the line self.nlp = spacy.load('en') in allenDatasetReader.py, please download spacy model first.

You can’t perform that action at this time.