apeterswu / rl4nmt Goto Github PK
View Code? Open in Web Editor NEWReinforcement Learning for Neural Machine Translation
Reinforcement Learning for Neural Machine Translation
I was looking through the code a bit and found that delta_reward had a typo here:
RL4NMT/tensor2tensor/utils/bleu_hook.py
Line 273 in ab8d9fd
RL4NMT/tensor2tensor/utils/bleu_hook.py
Line 293 in ab8d9fd
Don't think this affects the experiments, but the unused_kwargs is pretty dangerous so worth checking.
I went through tensor2tensor and looked for data generation but couldn't find the problem which will prep the data for training for your code, zh-en is not supported. Can you please help?
The script says that putting _rev will make the data for zh-en task but it does not work.Only en-zh work, So ?
In the paper you maintained about verifying the baseline reward approach and the baseline reward estimator was pretrained. But i couldn't see the pretraining code !. Can you help me with the pretraining code ??
请问这个代码的环境依赖是什么呢?
我的环境是python3.6 tensorflow1.6 tensor2tensor1.5 代码无法运行
As mentioned in your paper the cumulative future reward is used to update the policy at timestep t. My understand is that this is done at the following line inside the compute_sentence_bleu function.
RL4NMT/tensor2tensor/utils/bleu_hook.py
Line 226 in 2c8741c
It seems that delta_results[::-1]
reverses the batch dimension instead of the time dimension. Shouldn't this be?:
delta_results = delta_results[:, ::-1].cumsum(axis=1)[:, ::-1]
First of all, thanks for putting this repo up, we enjoy your paper and would like to reproduce it in our lab. Have a few questions:
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.