Skip to main content

Visualization of text embeddings/vectorization with clustering

Project description

Visualize embed of documents

Install requirements and spacy model

You could use conda

conda create --name embedisualization python=3.6

source activate embedisualization

pip install -r requirements.txt

python -m spacy download en_vectors_web_lg

This spacy model (en_vectors_web_lg)[https://spacy.io/models/en#en_vectors_web_lg] is quite heavy (631MB)

Install embedisualization lib

pip install embedisualization

Example

To run exemplary visualisation go to examples directory and run

python sample_text_vis.py

It will take minute or two to generate embeddings and create 2D vis. The new webpage with D3 visualisation will be presented.

Sample of Trump's Tweets Embedisualized

Project details


Release history Release notifications

This version
History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
embedisualization-0.4-py3-none-any.whl (4.8 kB) Copy SHA256 hash SHA256 Wheel py3 May 9, 2018
embedisualization-0.4.tar.gz (4.3 kB) Copy SHA256 hash SHA256 Source None May 9, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page