Giter VIP home page Giter VIP logo

text-visualization-with-dash's Introduction

text-visualization-with-Dash

Text processing and visualization with Python. First steps with Dash.

Table of contents

General info

Created as training project to practice Dash and process text without external natural language processing tools.

Part of this script is reused from text-processing-with-regex

Text source: Lectures on The Language: An Introduction to the Study of Speech by Edward Sapir, 1921, www.gutenberg.org/Sapir | Lectures on the Science of Language by Max Müller, 1862, www.gutenberg.org/Muller

Actions

csv_generator.py: extracts ten most frequent words and ten longest sentences for each input text file, generates .csv files (words.csv, sentences.csv)

dash_visualization.py: gets .csv files and generates visualization with Dash

Illustrations

Interactive charts generated with script actions:

Scatterplot matrix of words and their frequency|length pairs scatter

Stacked bar chart of word and their frequency|length pairs stackbar

Bubble chart of sentences with respect to their length|ranking bubble

Technologies

  • Python 3.7
  • Dash 1.4.0

Setup

To run this project, install dash with pip:

pip install dash==1.4.0

Input data: Lectures on The Language: An Introduction to the Study of Speech by Edward Sapir, 1921 (Sapir1921_chapter1.txt), Lectures on the Science of Language by Max Müller, 1862 (Muller1861_lecture1.txt), stopwords list (stopwordlist.txt)

Status

Project is in progress. TODO:

  • .csv files manipulation with pandas for Dash visualization
  • restructuring sentences.csv
  • bubble chart scaling correction

Contact

Created by @mal - feel free to contact me!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.