Coder Social home page Coder Social logo

blickwinkel1107 / making-the-most-of-context-nmt Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 4.0 1.9 MB

NJUNMT for docNMT

License: MIT License

Shell 0.39% Python 82.64% Perl 11.16% Smalltalk 0.47% Emacs Lisp 4.22% JavaScript 0.21% NewLisp 0.39% Ruby 0.41% Slash 0.07% SystemVerilog 0.05%

making-the-most-of-context-nmt's People

Contributors

blickwinkel1107 avatar vergilus avatar whr94621 avatar wucucu avatar zhengzx-nlp avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

making-the-most-of-context-nmt's Issues

The training

I have been experiencing this issue during the process of reproducing your model.
NaN or Inf found in input tensor.
How can I solve it

sacreBLEU: The input and reference stream(s) were of different lengths.

29

I encountered this problem during the training. I think it may be that their format is wrong. I checked the script, and you defined it like this.
I want to know what your data of valid and reference formats are. (20 of doc?sents?)
Because I can't print out the input, I won't solve this problem. I hope to get your answer. Thank you

valid_data: - "/home/user_data55/yuex/IWSLT15.zh-en/docs_data/dev.zh.doc.bpe.20" - "/home/user_data55/yuex/IWSLT15.zh-en/docs_data/dev.en.doc.bpe.20" bleu_valid_reference: "/home/user_data55/yuex/IWSLT15.zh-en/sents_data/dev.en.norm.tok"

"where_cpu" not implemented for 'Bool'

I had this problem in training.
"where_cpu" not implemented for 'Bool'

I don't know which part of the code should be changed. Can you help me? Thank you
Snipaste_2020-09-28_10-56-46

I have some small questions to ask you

Hello
I'm going to reproduce your code.

1.4 Building Vocabulary
What is the role of this step, and what is the vocabulary to do after BPE?

1.5 Documental Data Format for Model Processing
Training data contains several chapters. Is each chapter a document?
In addition, in your example, there is only the symbol < BOS > of each sentence. Do you need something like < DOS >? I don't quite understand what each document means
That is to say, is the specific training data just < EOS> added to each sentence
There is one more question
you partition the original document as up to 20 sentences as a group.
What do you mean, your training data only has 20 sentences? I don't understand this training process

What else should I pay attention to? It may be because I am not familiar with it, so I didn't understand what you meant.

I am looking forward to your answer. I may need to discuss with you later. In the process of reproducing your model, thank you

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.