TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Text Network Analysis: Generate Beautiful Network Visualisations

Discover how to visualize text networks in the circular, radial, and matrix forms: circos, hive, and matrix plots. At the same time, learn the dos and don’ts of plotting text networks.

Petr Korab
TDS Archive
Published in
8 min readAug 4, 2022

--

Figure 1. Text network plot via Pyvis. Image by author

Introduction

This article develops a series on text network analysis in Python. It builds on Text Network Analysis: Theory and Practice, laying down the fundamentals of text networks, and Text Network Analysis: A Concise Review of Network Construction Methods, focusing on data preparation and network construction strategies.

The last article split the strategies for constructing a text network into (i) net is drawn from the raw text, and (ii) the net is built on the pre-processed data with the edges and nodes clearly defined. In this article, we will expand the second option and use the pre-processed classic IMDb 50K Movie Reviews (see the data license) to illustrate the following network graphics:

  • circos plot: to visualize a network in a circular layout
  • hive plot: to structure the network graph along several axes
  • matrix plot: to plot a net in its matrix form.

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Petr Korab
Petr Korab

Written by Petr Korab

Python engineer /NLP / data Viz. Text Mining Stories founder textminingstories.com

No responses yet