How-to-build-own-text-summarizer-using-deep-learning icon indicating copy to clipboard operation
How-to-build-own-text-summarizer-using-deep-learning copied to clipboard

AttributeError: 'numpy.ndarray' object has no attribute 'lower'

Open Amit89499 opened this issue 3 years ago • 0 comments

#prepare a tokenizer for reviews on training data y_tokenizer = Tokenizer(num_words=tot_cnt-cnt) y_tokenizer.fit_on_texts(list(y_tr))

#convert text sequences into integer sequences y_tr_seq = y_tokenizer.texts_to_sequences(y_tr) y_val_seq = y_tokenizer.texts_to_sequences(y_val)

#padding zero upto maximum length y_tr = pad_sequences(y_tr_seq, maxlen=max_summary_len, padding='post') y_val = pad_sequences(y_val_seq, maxlen=max_summary_len, padding='post')

#size of vocabulary y_voc = y_tokenizer.num_words +1

I am getting this error at line 3

Amit89499 avatar Aug 18 '21 18:08 Amit89499