ptwobrussell / Mining-the-Social-Web-2nd-Edition

The official online compendium for Mining the Social Web, 2nd Edition (O'Reilly, 2013)
http://bit.ly/135dHfs
Other
2.9k stars 1.49k forks source link

Generating a figure to visually display the cosine similarity between documents notebook error #337

Open interogativ opened 3 years ago

interogativ commented 3 years ago

In that cell that plots the cosine simililarity the lines:

Set the tick labels as the article titles

ax.set_xticklabels(titles]) ax.set_yticklabels(titles)

should be replaced by:

ax.set_xticklabels(titles[:n_articles]) ax.set_yticklabels(titles[:n_articles])

please fix your notebook with this change