An AI-powered autocorrect tool designed to improve text accuracy by performing spelling and grammar corrections. This tool leverages the SymSpell algorithm for efficient spelling corrections and a pre-trained t5-small
model from Hugging Face for advanced grammar corrections. The user-friendly interface is built with Flask and Bootstrap.
- Spelling Correction: Utilizes the SymSpell library to identify and correct spelling errors in text.
- Grammar Correction: Employs the
t5-small
transformer model to fix grammatical mistakes. - File Upload Support: Allows users to upload text files for bulk corrections.
- Interactive Interface: A simple and elegant web interface built using Flask and Bootstrap.
- Copy to Clipboard: Users can easily copy corrected text with a single click.
- Python 3.8 or higher
pip
for Python package management
- Clone the repository:
git clone https://github.com/suhasbm09/AutoCorrect-tool.git cd autocorrect-tool
Install dependencies:
-
Install dependencies:
pip install -r requirements.txt Download frequency_dictionary_en.txt:
-
Download the file from SymSpell GitHub. Place it in the project root directory.
-
Run the Flask app:
python app.py
-
Open your browser and go to:
http://127.0.0.1:5000/
-
Text Input Enter text into the text box on the homepage. Click the "Correct" button to see spelling and grammar corrections.
-
File Upload
- Upload a .txt file for bulk corrections.
- View the corrected file text and grammar results on the webpage.
-
Tools and Technologies
- Backend: Flask, SymSpell, Hugging Face Transformers
- Frontend: HTML, CSS, Bootstrap
- Language Model: t5-small
- Spelling Correction: SymSpell
- Deployment: Localhost (development)
- The t5-small model may struggle with very complex grammar corrections.
- SymSpell requires a comprehensive dictionary file for effective spelling corrections.
Developed by SUHAS B M. Feel free to reach out at [email protected]