This repository contains the code of the hierarchical Gamma-Poisson model used in Is MAP Decoding All You Need? The Inadequacy of the Mode in Neural Machine Translation (Appendix A.1) to compare target lengths of multiple groups of translations.
This code was tested using Python 3.7.6 and the libraries listed in requirements.txt
The results shown in the paper can be reproduced by running the reproduce.sh script.