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.1.tar.gz (41.1 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.1-py3-none-any.whl (41.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: isimplify-1.1.tar.gz
  • Upload date:
  • Size: 41.1 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.1.tar.gz
Algorithm Hash digest
SHA256 5b61409ba3782297b37d2f6a2de10b5afe3dadc61a9a59321ba601d212c5bb00
MD5 64a1cb343f3313dd19f4685b2d2f07ec
BLAKE2b-256 5ecd1e1f24c74c669a24aa1d5fa0997ceead3d4446b3c5be483ca2000373c3be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: isimplify-1.1-py3-none-any.whl
  • Upload date:
  • Size: 41.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bcc1f8e5dbde38c4b4b3365d77f09fb7c3515263bcff566e1e6c0b4c326a5284
MD5 3727eb076f69e7a047ae5c582c11744d
BLAKE2b-256 c591d97446e6f2fcb33bff92784f81f62e262276fa77b6bd5e04a25330f0ad9e

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