An implementation of "Two are Better than One: An Ensemble of Retrieval- and Generation-Based Dialog Systems"