Hi Codecademy Community, I hope you’re all doing well!
I just finished the NLP Project “Mystery Friend” and I ran into a question. I play around with the code and changed one of the text’s Codecademy provided to another one from a different author (Dorian Gray) to see if It would work with someone else. As always I ran Into an error (ValueError, see attachment)
I assume it has to do with the labeling part in the script and I don’t understand them. What are they doing and why are we multiplying the list by the numbers 154, 141, 166?
Part I don’t get:
# Setting up labels for your three friends
friends_labels = [1] * 154 + [2] * 141 + [3] * 166
If someone could help me that would be SUPER lovely <3
Link project: https://www.codecademy.com/courses/natural-language-processing/projects/bag-of-words-mystery-friend
Take Care
вяα∂вєяяу