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()

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-0.1.9.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

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

isimplify-0.1.9-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: isimplify-0.1.9.tar.gz
  • Upload date:
  • Size: 40.9 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-0.1.9.tar.gz
Algorithm Hash digest
SHA256 d5961ad83e7f38a7ff310d0b0d372af80ee74fc615927a7df7c0d755f9112e0f
MD5 2cbe8eb82ccad662b0df3b751b2b157e
BLAKE2b-256 23779b7d048f9602bb09f896c691614a1181ecbc0124301a1380dc61dcb03f8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: isimplify-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 41.4 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-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 14d7b163568e80c4f90116e7a72e3a5b24b83dd1097ea9491247cfae0fb503bd
MD5 ab705bfc30da3cd76799689472f1a3c2
BLAKE2b-256 d8e14c4ac48e492b4f20d81c24b37ec0d00145b2036a102ad179a0ecc2996120

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