Skip to main content

TextExplorer

VisualTextAnalyzer help users to understand the text data. It includes word frequency analysis and named entities recognition, which help users to explore the fundamental characteristics of the text data. We use bar charts to create the visualizations integrated with the Jupyter Notebook environment. Word frequency analysis is a frequent task in text analytics. Word frequency measures the most frequently occurring words in a given text. Common stopwords like ‘to’, ‘in’, ‘for’, were removed for the word frequency analysis. Named entity recognition is an information extraction method. The entities that are present in the text are classified into predefined entity types like ‘Person’, ‘Organization’, ‘City’, etc. By using this method, users can get great insights into the types of entities present in the given textual dataset.

Visual Text Analyzer

Text Exploration

In Jupyter Notebook:

import VisualTextAnalyzer
import pandas as pd
data = pd.read_csv('yelp_labelled_sample.csv')
VisualTextAnalyzer.plot_text_summary(data, category_column='category', text_column='comments')

Demo

In Jupyter Notebook::

import VisualTextAnalyzer
yelp_data = VisualTextAnalyzer.get_yelp_labelled_data()
VisualTextAnalyzer.plot_text_summary(yelp_data, category_column='category', text_column='comments')

Export Texts

You might want to export a subset of selected texts for further analyses. To do so, use the following code (after exporting it through the UI):

obj_text = VisualTextAnalyzer.get_exported_texts()

The returned object has the following attributes:

  • texts: List of texts.
  • category: All texts belong to that category.
  • word: All texts contain that word.

Get Processed data (Words and Entities)

You might want to get the processed data, which includes word and entity frequencies, that is ready for analysis before generating the visualization. To do so, use the code:

processed_data = VisualTextAnalyzer.get_words_entities(data, category_column='category', text_column='comments')
VisualTextAnalyzer.plot_text_summary(words_entities=processed_data)

The function 'get_words_entities' returns an object that contains has the following attributes:

  • words: Word frequencies.
  • entities: Entity frequencies.
  • raw_texts: All texts separated in two categories: positive and negative.

Release files for visual-text-explorer 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for visual-text-explorer 0.1.9
File Size Uploaded
visual-text-explorer-0.1.9.tar.gz 1.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for visual-text-explorer 0.1.9
File Interpreter ABI Platform
visual_text_explorer-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 2.6 MB

Release files / visual-text-explorer-0.1.9.tar.gz

Download URL visual-text-explorer-0.1.9.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
c074ed2e653a38e58714ccbc56b996cd60c59348f711d740922fb68844c76b44
BLAKE2b-256 checksum
How to use checksums
324485df2f9e691c54cf5d3f1e727063a075f6cf6dbc3b65614aa3e0c743346b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.7.4

Release files / visual_text_explorer-0.1.9-py3-none-any.whl

Download URL visual_text_explorer-0.1.9-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1c22caeaa579eeb936d361dc01d2de206551405c9c0d3793890402fe8390f3f1
BLAKE2b-256 checksum
How to use checksums
ad9fc37248f2ea6a8679fc859338bbecae07fa742f163f68ab340e602d5f5e10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.6

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page