/GPT-Formatter

GPT-Formatter is a Python tool that uses OpenAI's GPT-3.5-turbo for text formatting. It tokenizes and formats text files, supports batch processing, and provides a progress bar for tracking. Ideal for improving readability of large text files like book chapters.

# GPT-Formatter

GPT-Formatter is a Python tool that uses OpenAI's GPT-3.5-turbo for text formatting. It tokenizes and formats text files, supports batch processing, and provides a progress bar for tracking. This tool is ideal for improving the readability of large text files like book chapters.

# Notion Link
For more information and reasoning on this project
https://pinnate-chokeberry-0a0.notion.site/GPT-Formatter-2772bf57a5494c9d8e4f18e8c4592ecd

## Features

- Formats text files using OpenAI's GPT-3.5-turbo model.
- Tokenizes text into sentences for better formatting.
- Supports batch processing of text files in a directory.
- Provides a progress bar for tracking the formatting process.

## Installation

1. Clone this repository to your local machine.
2. Install the required Python packages using pip:

```bash
pip install -r requirements.txt

Usage

To format a single file:

format_single_file('path_to_your_file')

To format all files in a directory:

format_all_files_in_folder('path_to_your_directory')

Contributing

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

License

MIT


Please replace `'path_to_your_file'` and `'path_to_your_directory'` with the actual paths to your file or directory. Also, you might need to create a `requirements.txt` file that lists all the Python packages your project depends on.