Giter Club home page Giter Club logo

dkokdemir / word_count Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 67.34 MB

Word-Cloud & Word Frequencies Application

Home Page: https://github.com/dkokdemir/Word_Count

License: GNU General Public License v3.0

Python 96.85% CSS 0.02% HTML 0.01% PowerShell 0.03% Shell 0.01% C 0.67% JavaScript 0.07% Jupyter Notebook 0.03% Lua 0.01% Cython 2.07% C++ 0.14% Fortran 0.04% Forth 0.01% Smarty 0.01% XSLT 0.01% Roff 0.03%
psychology qualitative-analysis word-cloud word-frequency-count

word_count's Introduction

Word_Count

This repository contains a Word Cloud Generator web application, which allows users to upload text files and generate word clouds based on the text content. The application is built using Flask, a lightweight Python web framework, and leverages the WordCloud and NLTK libraries for text processing and visualization.

Features

Upload text files in various formats, including .txt, .rtf, .doc, .docx, and .pdf. Customize word clouds by providing word mappings, omitting specific words, and choosing whether to include numbers. Download word cloud images in .png format. Download word frequency data as a .csv file. A clean, minimalistic, and elegant user interface.

Installation

Prerequisites Python 3.6 or newer pip (Python package installer)

Steps

pip install -r requirements.txt for required libraries summarized in requirements.txt

  1. Clone this repository: git clone https://github.com/yourusername/word-cloud-generator.git cd word-cloud-generator

  2. Create a virtual environment (optional, but recommended): python3 -m venv venv source venv/bin/activate
    ...For Windows, use venv\Scripts\activate

  3. Install the required Python packages: pip install -r requirements.txt

  4. Run the application: python app.py

  5. Open your browser and go to http://localhost:5000 to access the Word Cloud Generator.

Usage

  1. On the main page, click the "Choose File" button and select a text file from your computer.
  2. (Optional) Enter word mappings in the "Word Mappings" field. Use the format original=replacement and separate multiple mappings with commas. Example: old=new, cat=dog.
  3. (Optional) Enter words to omit in the "Omit Words" field. Separate multiple words with commas. Example: word1, word2, word3.
  4. (Optional) Check the "Do you want to count numbers in the text?" box if you want to include numbers in the word cloud.
  5. Click the "Submit" button to generate the word cloud.
  6. The generated word cloud image will appear on the page, along with a download link for the word frequency data in CSV format.

Contributing

We welcome contributions to improve the Word Cloud Generator! Please feel free to submit issues for bug reports, feature requests, or general feedback. If you'd like to contribute code, please fork the repository, make your changes, and submit a pull request.

Licence

This project is licensed under the GNU General Public License (GPL) v3.0 License. See the LICENSE file for more information.

word_count's People

Contributors

dkokdemir avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.