Imported from https://github.com/jacobandreas/neuralese