mkolod / mxnet_seq2seq Goto Github PK
View Code? Open in Web Editor NEWSimple MXNet sequence-to-sequence model (neural machine translation)
Simple MXNet sequence-to-sequence model (neural machine translation)
In get_s2s_data the training files are scanned to find the vocabulary, and only after that they are tokenized, using the vocabulary for converting the tokens into indeces.
Lines 99 to 102 in c57d892
I think the order should be -> tokenization -> vocabulary -> convert into indeces
I think it is strange that we need to remove the state feeding when using the attention.
The other NMT systems initialize the decoder with something coming from the encoder.
For example:
Nematus initialize the decoder with the mean of the encoder outputs
https://github.com/rsennrich/nematus/blob/73037e94884fd2d1c1d18d81686cd1f6ea32d073/nematus/nmt.py#L421-L440
While OpenNMT is passing to the decoder the states returned from the unrolling of the encoder
https://github.com/mattiadg/OpenNMT-py/blob/6bf832170421ca9c3b609ab3cfea22ae5b7fdb4e/onmt/Models.py#L140-L146
At the moment I don't understand the OpenNMT code because I don't know pytorch, but I'll try to understand what they are doing and implement it here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.