All Projects → takapy0210 → Nlplot

takapy0210 / Nlplot

Licence: mit
Visualization Module for Natural Language Processing

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Nlplot

Visualization Of Global Terrorism Database
📊 Visualization of GTD with py Plotly lib, including amazing graphs and animation 📼
Stars: ✭ 16 (-86.44%)
Mutual labels:  plotly
Awesome Dash
A curated list of awesome Dash (plotly) resources
Stars: ✭ 1,085 (+819.49%)
Mutual labels:  plotly
Dotplotly
Generate an interactive dot plot from mummer or minimap alignments
Stars: ✭ 92 (-22.03%)
Mutual labels:  plotly
Mlcourse.ai
Open Machine Learning Course
Stars: ✭ 7,963 (+6648.31%)
Mutual labels:  plotly
Front End
Coronavirus COVID19 US Cases Dashboard
Stars: ✭ 42 (-64.41%)
Mutual labels:  plotly
Algorithm Playground
An (old) and unstructured (messy tbh) collection of programming exercises.
Stars: ✭ 75 (-36.44%)
Mutual labels:  plotly
React Plotly.js
A plotly.js React component from Plotly 📈
Stars: ✭ 701 (+494.07%)
Mutual labels:  plotly
Dash Stock Tickers Demo App
Dash Demo App - Stock Tickers
Stars: ✭ 108 (-8.47%)
Mutual labels:  plotly
Dashblocks
Enable Analytics in your Apps
Stars: ✭ 48 (-59.32%)
Mutual labels:  plotly
Plotly.py
The interactive graphing library for Python (includes Plotly Express) ✨
Stars: ✭ 10,701 (+8968.64%)
Mutual labels:  plotly
Ig Follow Count
📈 A simple Instagram analytics tool that continuously logs and graphs your follower count.
Stars: ✭ 35 (-70.34%)
Mutual labels:  plotly
Scala Plotly Client
Visualise your data from Scala using Plotly
Stars: ✭ 39 (-66.95%)
Mutual labels:  plotly
Pandoc Plot
Render and include figures in Pandoc documents using your plotting toolkit of choice
Stars: ✭ 75 (-36.44%)
Mutual labels:  plotly
Angularcomponentplotly
Angular Component for Plotly, ASP.NET Core, Elasticsearch
Stars: ✭ 14 (-88.14%)
Mutual labels:  plotly
Covid19 Dashboard
🦠 Django + Plotly Coronavirus dashboard. Powerful data driven Python web-app, with an awesome UI. Contributions welcomed! Featured on 🕶Awesome-list
Stars: ✭ 100 (-15.25%)
Mutual labels:  plotly
Bowtie
Create a dashboard with python!
Stars: ✭ 724 (+513.56%)
Mutual labels:  plotly
Fitly
Self hosted web analytics for endurance athletes
Stars: ✭ 65 (-44.92%)
Mutual labels:  plotly
Vue Plotly
A vue wrapper for plotly.js chart library
Stars: ✭ 109 (-7.63%)
Mutual labels:  plotly
Hiitpi
A workout trainer Dash/Flask app that helps track your HIIT workouts by analyzing real-time video streaming from your sweet Pi using machine learning and Edge TPU..
Stars: ✭ 106 (-10.17%)
Mutual labels:  plotly
Pragmaticai
[Book-2019] Pragmatic AI: An Introduction to Cloud-based Machine Learning
Stars: ✭ 79 (-33.05%)
Mutual labels:  plotly

nlplot

Visualization Module for Natural Language Processing

Description

Facilitates the visualization of natural language processing and provides quicker analysis

You can draw the following graph

  1. N-gram bar chart
  2. N-gram tree Map
  3. Histogram of the word count
  4. wordcloud
  5. co-occurrence networks
  6. sunburst chart
  7. pyLDAvis

(Tested in English and Japanese)

Requirement

Install

pip install nlplot

I've posted on this blog about the specific use. (Japanese)

And, The sample code is also available in the kernel of kaggle. (English)

Usage

sample df

df.head()
text
0 Think rich look poor
1 When you come to a roadblock, take a detour
2 When it is dark enough, you can see the stars
3 Never let your memories be greater than your dreams
4 Victory is sweetest when you’ve known defeat
import nlplot

# target_col as a list type or a string separated by a space.
npt = nlplot.NLPlot(df, target_col='text')

# Stopword calculations can be performed.
stopwords = npt.get_stopword(top_n=30, min_freq=0)

# 1. N-gram bar chart
npt.bar_ngram(title='uni-gram', ngram=1, top_n=50, stopwords=stopwords)
npt.bar_ngram(title='bi-gram', ngram=2, top_n=50, stopwords=stopwords)

# 2. N-gram tree Map
npt.treemap(title='Tree of Most Common Words', ngram=1, top_n=30, stopwords=stopwords)

# 3. Histogram of the word count
npt.word_distribution(title='words distribution')

# 4. wordcloud
npt.wordcloud(stopwords=stopwords, colormap='tab20_r')

# 5. co-occurrence networks
npt.build_graph(stopwords=stopwords, min_edge_frequency=10)
# The number of nodes and edges to which this output is plotted.
# If this number is too large, plotting will take a long time, so adjust the [min_edge_frequency] well.
>> node_size:70, edge_size:166
npt.co_network(title='Co-occurrence network')

# 6. sunburst chart
npt.sunburst(title='sunburst chart', colorscale=True)

# 7. pyLDAvis
# If you want to run it in a notebook environment, you need to use the import and magic commands
import pyLDAvis
pyLDAvis.enable_notebook()
npt.ldavis(num_topics=5, passes=5, save=False)

Document

TBD

Test

cd tests
pytest

Other

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].