Downloads · 30 days
16
27% of all-time downloads
leoyt61/spellcheck_model
spellcheck_model is a machine learning model from leoyt61. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
1. Install Python 3.8 or higher and Docker; 2. Clone the repo; 3. Create a virtual environment: python3 -m venv venv; 4. Activate the virtual environment: source venv/bin/activate; 5. Install dependencies: pip install…
Downloads · 30 days
16
27% of all-time downloads
All-time downloads
60
Public
Repo size
2.7 GB
Likes
1
Public
Click a slice to open those files.
.bin892 MB · 100%
From the Hugging Face model README
python3 -m venv venv;source venv/bin/activate;pip install -r requirements.txt;There's a data directory with two files:
eval.csv: evaluation dataset;train.csv: training dataset;
Both are in the same format:input,target
"grammar: som sentense","some sentence"
"grammar: anoder centence","another sentence"
...
You can edit them to use your own dataset.
Now if you want to fine-tune the existing model here, just run the following commands:
docker build -t spellcheck_train .
docker run -v $(pwd):/app spellcheck_train
Also make sure you have docker running on your machine.
If you want to test your model, just run the following command:
python test.py