Your code is incomplete, and in your video, you did not discuss the process of converting words into a vector explicitly. Specifically, you provided code to print the length of the vocabulary (len(vocab.vocabulary_)), but you didn't show where the variable vocab was fitted on the training data before attempting to use vocab.transform(x). This sequence of fitting the vectorizer and then transforming new data was not clearly explained in the video.
@gtlibrary Жыл бұрын
I'm sorry about that. Would you like to speak to Raven Davis, our data scientist?