Skip to main content

simplifies word counting

Project description

Word Frequency and Sentiment Analysis Package

isimplify is a Python library for dealing with word frequency.

Installation

Use the package manager pip to install isimplify.

pip install isimplify

additional requirments

pip install gradio matplotlib PyPDF2

overview

This Python package allows you to analyze word frequencies from text or PDF files, visualize the results using bar plots, and perform sentiment analysis on the text. It includes functionalities to remove stop words, customize the list of stop words, and generate plots for the most frequent words.

The package also provides an interactive Gradio interface to upload PDFs, perform analysis, and view the results.

using UI to interact and visualize the word freq

import isimplify

isimplify.showWindow()

Interactable window for word frequency analysis

Screenshot 2024-12-06 at 11 36 07 PM

Usage

get word freq by reading pdf

import isimplify

word_freq = isimplify.getWord_freq_file_removingStopWords("example.pdf")
print(word_freq)

get word freq by reading pdf (without removing stop words)

import isimplify

text = "This is an example text to analyze."
word_freq = isimplify.getWord_freq_text_removing_StopWords(text)
print(word_freq)

save the plot

import isimplify

text = "This is an example text to analyze."
plot_path = isimplify.plot_top_n_words_text(text, top_n=5)
print(f"Plot saved at: {plot_path}")

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

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

Source Distribution

isimplify-1.2.3.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isimplify-1.2.3-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file isimplify-1.2.3.tar.gz.

File metadata

  • Download URL: isimplify-1.2.3.tar.gz
  • Upload date:
  • Size: 41.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.5 Darwin/23.5.0

File hashes

Hashes for isimplify-1.2.3.tar.gz
Algorithm Hash digest
SHA256 97f4622a925a41627e2905700e8c18c200f7fa395705df415881bf9ed08f1093
MD5 3f6ebcadbc808758f81ac23bd61ea95e
BLAKE2b-256 d2e123c0e85fab10d9e819404972de3a41822227658575a4091373501e8c74d6

See more details on using hashes here.

File details

Details for the file isimplify-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: isimplify-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.5 Darwin/23.5.0

File hashes

Hashes for isimplify-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 263408ad66fc573c10170b856fe5269a8bca4984748fd5d2117397f828f0d7ef
MD5 747ac313b4c580233caf1a7cde51508c
BLAKE2b-256 b956750bc9c78e73f213e2f3303dbb33aa82e241ab19ec70df98cfdf1279b66c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page