Lstm, Logistic Regression, Python, Dataspell, Jetbrains.
neural networks for NLP, we need sequences to be in the same size, that’s why we use padding. Our max_length is 256, so we use pad_sequence to make all of our articles (aka title + text) the same length which is 256. In addition, there are padding type and truncating type, we set both of them