Git Product home page Git Product logo

mxnet_seq2seq's People

Contributors

ap-hynninen avatar mkolod avatar szha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mxnet_seq2seq's Issues

Vocabularies created before tokenization

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.

mxnet_seq2seq/utils.py

Lines 99 to 102 in c57d892

src_dict, inv_src_dict = top_words_train_valid(src_train_path, src_valid_path)
print("Tokenizing src_train_path")
src_train_sent = tokenize_text(src_train_path, vocab=src_dict)

I think the order should be -> tokenization -> vocabulary -> convert into indeces

State feed with attention

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.