This is a simple implementation of pruning method from https://arxiv.org/abs/1704.05119
First of all setup the environment by creating virtualenv and installing all the requirements.
# this is done via virtualenvwrapper
mkvirtuaenv pruning
pip install -r requirements.txt
# extra requirement for spacy
python -m spacy download en_core_web_smThen run python main.py --help to see options
In order to get q parameter, run training with --collectq flag, then create your_config.yaml file like this one, and run training again with --prune --config path/to/your/config.yaml flags.
You can see the results here