Hi I am trying to build a text summarizer, using sequence 2 sequence model in tensorflow.js.
My dataSet(example) :
{
Text: i want to return this product because it was broken when i received it.
Expected Output: broken Product.
}
I can convert text to word vectors using a pre-trained word2vec model. I am using these word embeddings for an LSTM network to get a sentiment value.
I could get some sense of sequence 2 sequence model theoretically, but i could not wrap my head around this idea interms of coding, how an encoder/decoder network looks like as a real code.
Can any please post a straight and a simple example of encoder and decoder network in tensorflow.js.
Or if there are any examples already posted some where that you know can you share them please.