Comments (4)
I would also like to ask if this is attention can be used for LSTM timing prediction. The main problem that bothers me is this n_class = len (word_dict). Can this be considered as a different feature of input? In the end, your project is very good. It has benefited a lot. It's very good. Thank you very much.
from nlp-tutorial.
'S i want a beer', 'i want a beer E',Is this the last attention mechanism not aligned?
from nlp-tutorial.
Seq2Seq(Attention)\Seq2Seq(Attention)-Tensor.py
The shape of the input should be [max_time, batch_size,...]. The input = tf. transpose (dec_inputs, [1, 0, 2]) has already been transformed. In tf. expand_dims (inputs [i], 1), the expansion is indeed one dimension. It seems that there should be zero dimension expansion here. Although the final shape is correct, whether it is intentional or not is here. What about a little trick?
I have the same question. Do you solve it ?
Oh, I have solve it.You are right.However, batch_size=1,so it has no effect。
from nlp-tutorial.
i think the code is only for batch)size=1,isn't is ?
from nlp-tutorial.
Related Issues (20)
- seq2seq_torch maybe have a small mistake HOT 2
- about seq2seq(attention)-Torch multiple sample training question
- a question about transformer HOT 1
- BERT-Torch.py may have a small mistake
- Version 2.0 will be updated
- link of NNLM and word2vec is disabled
- CODE
- Question?
- Why is src_len+1 in Transformer demo? HOT 1
- About make_batch of NNLM
- Bi-LSTM attention calc may be wrong HOT 2
- In code 4-1.Seq2Seq might have wrong section
- LongTensor error dim in BiLSTM Attention with new data
- 3-3.Bi-LSTM may have wrong padding
- 5.1 Transformer may have wrong position embed
- BiLstm(tf) maybe have mistake
- Faster attention calculation in 4-2.Seq2Seq? HOT 1
- The Adam in 5-1.Transformer should be replaced by SGD
- The Learning Rate in 5-2.BERT must be reduced.
- Seq2Seq(Attention) may have a mistake
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nlp-tutorial.