I continue to get an error on the seq_and_pad
function. the error is:
ValueError: invalid literal for int() with base 10: ' recorded programmes windows pcs mobile devices. reflect increasing trend freeing multimedia people can watch want want.'
Seems like the 1st argument to this function i.e. sequences
is incorrect. See this link to better understand the parameter datatypes.
@eddiejv @balaji.ambresh I am facing the same problem. Did you fix it ?
Please click my name and message your notebook as an attachment.
Please look at pad_sequences to understand what the 1st positional argument is and fix your code.
Many thanks @balaji.ambresh. I fixed the error. I was using the variable “sentences” instead of “sequences”.