Hello, In NLP Course 3 -Week 1 -Assignment
Adding words(“nice”) to sample sentence as “Nice nice nice It’s such a nice day, think i’ll be taking Sid to Ramsgate fish and chips for lunch at Peter’s fish factory and then the beach maybe”
or directly giving a np.array([ 583 583 583 44 313 428 349 2 2 794 3124 120 2 794
6442 1625 336]) to model does not yield error even if the length is more than 15(padded_length).
I see that output of mean layer is batch_size x input_seq_length .
How can Dense layer can accept varying number of dimensions(input_seq_length )?
By the way, Although all tests are passed and val accuracy is %99.25, for the sample sentence below, model predicts as “NEGATIVE”. Outputs are as [[-0.27135152 -1.4369497 ]].
sentence = “It’s such a nice day, think i’ll be taking Sid to Ramsgate fish and chips for lunch at Peter’s fish factory and then the beach maybe”
Thank you in advance