Imported from https://github.com/mimikaan/Attention-Model