Steps:
- Create virtual environment -> conda create -n grammar_correction python=3.7
- Activate virtual environment -> conda activate grammar_correction
- Downgrade pip -> python -m pip install pip==20.1.1
- Install python-levenshtein -> conda install -c conda-forge python-levenshtein
- Install Gramformer -> pip install -U git+https://github.com/PrithivirajDamodaran/Gramformer.git
- Install NLTK -> pip install nltk
- Install torch -> conda install pytorch torchvision torchaudio cpuonly -c pytorch
- Install SymSpell -> pip install -U symspellpy
- Download en model -> python -m spacy download en (requires Admin privileges)
- Install Flask -> pip install Flask
- Intsall status library -> pip install python-status (for HTTP status codes)
- Run application -> python grammer_correction_app.py
Download punkt from NLTK before starting the application
import nltk
nltk.download('punkt')