grammar-corrector-project/
│
├── data/ # Directory for raw and processed data
│ ├── raw/ # Store raw data here
│ │ ├── lang-8-en-1.0/ # Lang-8 dataset
│ │ ├── jfleg/ # JFLEG dataset
│ │ └── cola_public/ # CoLA dataset
│ │
│ └── processed/ # Processed and tokenized data ready for training
│ ├── train/
│ ├── val/
│ └── test/
│
├── models/ # Trained models and model checkpoints
│ ├── t5-base/ # T5-base model checkpoints
│ └── ...
│
├── notebooks/ # Jupyter notebooks for experimentation and demos
│ ├── DataExploration.ipynb
│ └── ModelDemo.ipynb
│
├── requirements.txt # Project dependencies and libraries
├── setup.py # Setup script for installing the project as a module
└── README.md # Project overview, setup, and usage instructions
To run the frontend, follow these steps:
-
Navigate to the frontend directory:
cd frontend/
-
Install the required libraries:
npm i
-
Start the development server:
npm run dev
This will start the frontend server and you can access it in your browser at the specified URL.
To run the backend, follow these steps:
-
Navigate to the backend directory:
cd backend/
-
Install the required libraries:
pip install -r requirements.txt
-
Start the backend server:
python server.py
This will start the backend server and you can access it in your browser at the specified URL.
nohup ./train_sequential.sh > output.log &
tail -f output.log
ps -ef | grep train.py
kill -9 <PID>