How do I contruct keras machine learning network?

I want to answer estimate of question by using LSTM How do I contruct keras machine learning network?

vocaburary size: 418662

The condition is below:

input_data=> N: 60000 sequence length : 35 output_data=> N: 60000 sequence length: 20

input_data's N is question number output_data's N is answer number sequence length is question's word count or answer's word count

array element is word_index

input_data's dimension is (60000, 35). Element is 'wordidx'

[[     0,      0,      0, ..., 394797, 292333, 307404],
[     0,      0,      0, ...,      0,      0,  16522],
[     0,      0,      0, ...,      0,      0,  16522]
[     0,      0,      0, ...,      0,      0,  22343]]

output_data's dimension is (60000, 20). Element is 'wordidx'

Happy Wheels 3D.

[[     0,      0,      0, ...,      0,      0,  94395],
[     0,      0,      0, ...,      0,      0,  20269],
[     0,      0,      0, ..., 187742,  94395,  38115],

[     0,      0,      0, ...,      0,      0,  28130],
[     0,      0,      0, ...,      0,      0, 369679],
[     0,      0,      0, ...,  46483,  45410,  42515]]

 

Started by Jacinta Griffiths at June 30, 2019 - 9:52 PM