Skip to content

JeanVerissimo/wordcloud-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PDF WordCloud Generator

🇧🇷 Leia em Português

Overview

This project implements a PDF WordCloud Generator that extracts text from a PDF file, processes it by removing stopwords, numbers, and punctuation, and generates a word cloud based on word frequency analysis.

Key Features:

  • Stopword Removal: Cleans the extracted text by removing stopwords based on the selected language.
  • Word Frequency Analysis: Calculates word occurrences and highlights the most frequently used words.
  • Word Cloud Generation: Displays a visually appealing word cloud using the wordcloud and matplotlib libraries.
  • Multi-language Support: Supports stopword removal in multiple languages.

Installation

To run this project, ensure you have Python 3.x installed. Additionally, you will need to install the required dependencies.

  1. Clone the repository:
git clone https://github.com/JeanVerissimo/wordcloud-generator.git
cd wordcloud-generator
  1. Install dependencies:
pip install pymupdf nltk wordcloud matplotlib
  1. Download NLTK stopwords:
import nltk
nltk.download('stopwords')

Usage

Run the main.py script to start the application. This script provides a GUI interface to select a PDF file, analyze its content, and generate a word cloud.

python main.py

Steps to Use:

  1. Select Language: Choose a language from the dropdown menu.
  2. Load PDF: Click the "Load PDF" button to select a file.
  3. View Word Statistics: The extracted text is analyzed, and key statistics such as total words, unique words, and word frequency are displayed.
  4. Generate Word Cloud: Click the "Generate WordCloud" button to visualize the most frequent words.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages