hse-aml / natural-language-processing

Resources for "Natural Language Processing" Coursera course.

Home Page:https://www.coursera.org/learn/language-processing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task 3 (BagOfWords)

abhishek9sharma opened this issue · comments

I guess in task description it should be 12th row (index 11) instead of 11th row (index 10) for which the number many non-zero elements has to be determined. Not sure if I am understanding something wrong about indexing csr matrices.

Currently my code works when I use
row = X_train_mybag[11].toarray()[0]

https://github.com/hse-aml/natural-language-processing/blob/master/week1/week1-MultilabelClassification.ipynb

Closing comment. My bad sorry I understood the question wrong.