Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the input of decoder is an one-hot vector #62

Open
bestbzw opened this issue Apr 22, 2020 · 4 comments
Open

the input of decoder is an one-hot vector #62

bestbzw opened this issue Apr 22, 2020 · 4 comments

Comments

@bestbzw
Copy link

bestbzw commented Apr 22, 2020

hi
Why the input of the decoder is an one-hot vector? We usually use dense vectors(through embedding lookup function) as the input in seq2seq models.

@JACOBIN-SCTCS
Copy link

I think this is used in generating the string for where clause . It uses a pointer network in which at each time step a particular token of question is pointed out

The one hot vector would have same length as that of question with 1 corresponding to the position of current token .. the process is repeated until end tokens index gets 1

This what I have understood. Correct me if I am wrong

@JACOBIN-SCTCS
Copy link

@bestbzw you can look on paper related to pointer network

@bestbzw
Copy link
Author

bestbzw commented Apr 25, 2020

@JACOBIN-SCTCS
I've read the paper"pointer network", but it doesn't mention whether it uses one-hot vectors.

I found that the Pointer-Generator-Network (Get To The Point: Summarization with Pointer-Generator Networks) uses dense vectors as the inputs of decoder, so I guess pointer network also uses dense vectors.

@JACOBIN-SCTCS
Copy link

JACOBIN-SCTCS commented Apr 25, 2020

@JACOBIN-SCTCS
I've read the paper"pointer network", but it doesn't mention whether it uses one-hot vectors.

I found that the Pointer-Generator-Network (Get To The Point: Summarization with Pointer-Generator Networks) uses dense vectors as the inputs of decoder, so I guess pointer network also uses dense vectors.

Ok thank you for your info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants