STRUCTURED OUTPUT LAYER NEURAL NETWORK LANGUAGE MODEL in pytorch

Hi. I would like to implement a SOULD MODEL according to this article: SOUL MODEL. But i am new in language translation with Pytorch. Please i need help.