Transformers
PyTorch
English
t5
text2text-generation
grammar
spell
correction
text-generation-inference
Instructions to use leoyt61/spellcheck_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leoyt61/spellcheck_model with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("leoyt61/spellcheck_model") model = AutoModelForSeq2SeqLM.from_pretrained("leoyt61/spellcheck_model") - Notebooks
- Google Colab
- Kaggle
| from happytransformer import HappyTextToText, TTTrainArgs | |
| happy_tt = HappyTextToText("T5", load_path=".") | |
| args = TTTrainArgs(batch_size=8) | |
| happy_tt.train("data/train.csv", args=args) | |
| before_loss = happy_tt.eval("data/eval.csv") | |
| print("After loss: ", before_loss.loss) | |
| happy_tt.save('.') | |