SQLNet icon indicating copy to clipboard operation
SQLNet copied to clipboard

the input of decoder is an one-hot vector

Open bestbzw opened this issue 5 years ago • 4 comments

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.

bestbzw avatar Apr 22 '20 15:04 bestbzw

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 avatar Apr 25 '20 09:04 JACOBIN-SCTCS

@bestbzw you can look on paper related to pointer network

JACOBIN-SCTCS avatar Apr 25 '20 09:04 JACOBIN-SCTCS

@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.

bestbzw avatar Apr 25 '20 10:04 bestbzw

@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

JACOBIN-SCTCS avatar Apr 25 '20 10:04 JACOBIN-SCTCS