etemkocaaslan commited on
Commit
1cc6b16
·
verified ·
1 Parent(s): cdd7d42

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +54 -1
README.md CHANGED
@@ -9,5 +9,58 @@ app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
9
  pinned: false
10
  license: apache-2.0
11
  ---
12
+ # Grammar Correction Tool
13
+
14
+ This project provides an interactive web interface for correcting English grammar using a pretrained T5 model. The interface is built using Gradio and hosted on Hugging Face Spaces.
15
+
16
+ ## Overview
17
+
18
+ The Grammar Correction Tool leverages the `vennify/t5-base-grammar-correction` model to automatically correct grammatical errors in English sentences. Users can input a sentence with grammatical errors, and the tool will provide a corrected version of the sentence.
19
+
20
+ ## Features
21
+
22
+ - **User-Friendly Interface**: Simple and intuitive web interface built with Gradio.
23
+ - **Customization Options**: Allows users to adjust parameters like maximum length, minimum length, number of beams, temperature, and top-p for text generation.
24
+ - **Pretrained Model**: Utilizes a pretrained T5 model specifically fine-tuned for grammar correction.
25
+
26
+ ## Usage
27
+
28
+ 1. **Input Text**: Enter the sentence with grammatical errors in the "Input Text" box.
29
+ 2. **Adjust Parameters**: Use the sliders to adjust parameters like max length, min length, max new tokens, number of beams, temperature, and top-p.
30
+ 3. **Correct Grammar**: Click the "Correct Grammar" button to generate the corrected sentence.
31
+ 4. **View Output**: The corrected sentence will be displayed in the "Corrected Text" box.
32
+
33
+ ## Installation
34
+
35
+ To run this project locally, you need to have Python installed. Follow the steps below to set up and run the project:
36
+
37
+ 1. **Clone the repository**:
38
+ ```bash
39
+ git clone https://huggingface.co/spaces/your-username/grammar-correction
40
+ cd grammar-correction
41
+ ```
42
+
43
+ 2. **Install the required packages**:
44
+ ```bash
45
+ pip install -r requirements.txt
46
+ ```
47
+
48
+ 3. **Run the application**:
49
+ ```bash
50
+ python app.py
51
+ ```
52
+
53
+ ## Files
54
+
55
+ - **app.py**: The main script that sets up and runs the Gradio interface.
56
+ - **requirements.txt**: A list of dependencies required to run the application.
57
+ - **README.md**: This file, providing an overview and setup instructions for the project.
58
+
59
+ ## License
60
+
61
+ This project is licensed under the Apache 2.0 License.
62
+
63
+ ## Acknowledgments
64
+
65
+ This project utilizes the `vennify/t5-base-grammar-correction` model from Hugging Face. Special thanks to the developers and contributors of the model and Gradio library.
66