Mindket

t5-base-grammar-correction

Newversion 1 · updated

Overview

Rewrites English text with fewer grammar mistakes, using a T5 model trained on the JFLEG dataset. Made by vennify for writers, students and developers who want a grammar fixing step in Python.

t5-base-grammar-correction is a kit in the Writing category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

Runs in
  • Windows, macOS and Linux, with Python
  • Python scripts that use the Happy Transformer library
  • Python projects built on the transformers library, which the record lists
Start with
pip install -U huggingface_hub
hf download vennify/t5-base-grammar-correction
pip install happytransformer

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

t5-base-grammar-correction is a T5 model from vennify that takes a piece of English text and returns a revised copy with fewer grammatical errors. It was trained with the Happy Transformer library on a dataset called JFLEG. You call it from Python and get the corrected text back.

Who it suits

It suits writers, students and developers who want automatic grammar fixes and can run a short Python script.

IndustryWho uses itHow they use itExample
EducationStudents and teachersClean up grammar in essays and exercisesRun a sentence with doubled words through the model
PublishingEditors and bloggersFix small slips in drafts before a human reviewPass a draft in one sentence at a time
SoftwareDevelopersAdd a grammar fixing step to a text toolCall the model from a script and show the revised text

People who write in languages other than English can skip it, since the record lists English only.

Where to use it

The model runs from Python on a computer you control.

  • Windows, macOS and Linux, with Python
  • Python scripts that use the Happy Transformer library
  • Python projects built on the transformers library, which the record lists
Use caseWhoWhat they get back
Proofreading a sentenceWritersA revised sentence with the errors fixed
Batch clean-up of textDevelopersRevised text for each input a script passes in

How to set it up

You need Python with pip, and a computer that can download the model files.

  1. Install the Hugging Face hub library with pip.
  2. Download the model files with the hf command.
  3. Install the Happy Transformer library with pip.
pip install -U huggingface_hub
hf download vennify/t5-base-grammar-correction
pip install happytransformer

How to use it

In Python, load the T5 model through Happy Transformer, set the generation settings and put the prefix grammar: and a space before each input. Then call generate_text and print the text of the result.

from happytransformer import HappyTextToText, TTSettings
happy_tt = HappyTextToText("T5", "vennify/t5-base-grammar-correction")
args = TTSettings(num_beams=5, min_length=1)
result = happy_tt.generate_text("grammar: This sentences has has bads grammar.", args=args)
print(result.text)
ToolWhat it does
HappyTextToTextLoads the T5 model for text to text jobs
TTSettingsHolds the generation settings, here 5 beams and a minimum length of 1
generate_textReturns the revised text for the input you give it

Example

Give the model a sentence with doubled words and a wrong plural, such as the one in the card's snippet. The card's own comment shows the result as a clean sentence reading "This sentence has bad grammar."

For newcomers and experts

If you are new to this, install the library, paste the snippet and swap the sentence inside the quotes for your own. Keep the grammar: prefix at the start of the text.

If you know the field, this is T5 base fine-tuned for sentence revision on JFLEG, run as a text to text job with beam search. It returns a rewritten sentence and not a list of marked errors.

  1. Add the grammar: prefix to your text
  2. Load T5 with Happy Transformer
  3. The model generates with 5 beams
  4. The revised text comes back in result.text

Good to know

The model returns a revised version of your text, so read the output before you use it.

  • License: cc-by-nc-sa-4.0 as the record states, which marks it non-commercial
  • Languages: English only in the record
  • Other versions: the record counts 4 quantized copies and 2 fine-tuned ones made by other people
  • Cost to run: none named
  • Data it reaches: the text you pass in, plus the model files you download from Hugging Face
  • Not for: paid products, so check the license terms first

README and files

README

t5-base-grammar-correction

Rewrites English text with fewer grammar mistakes, using a T5 model trained on the JFLEG dataset. Made by vennify for writers, students and developers who want a grammar fixing step in Python.

Made by vennify on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: t5-base-grammar-correction is a T5 model from vennify that takes a piece of English text and returns a revised copy with fewer grammatical errors. It was trained with the Happy Transformer library on a dataset called JFLEG. You call it from Python and get the corrected text back.

Who it suits: It suits writers, students and developers who want automatic grammar fixes and can run a short Python script.

Industry | Who uses it | How they use it | Example
Education | Students and teachers | Clean up grammar in essays and exercises | Run a sentence with doubled words through the model
Publishing | Editors and bloggers | Fix small slips in drafts before a human review | Pass a draft in one sentence at a time
Software | Developers | Add a grammar fixing step to a text tool | Call the model from a script and show the revised text

People who write in languages other than English can skip it, since the record lists English only.

Where to use it: The model runs from Python on a computer you control.

  • Windows, macOS and Linux, with Python
  • Python scripts that use the Happy Transformer library
  • Python projects built on the transformers library, which the record lists
Use case | Who | What they get back
Proofreading a sentence | Writers | A revised sentence with the errors fixed
Batch clean-up of text | Developers | Revised text for each input a script passes in

How to set it up: You need Python with pip, and a computer that can download the model files.

  1. Install the Hugging Face hub library with pip.
  2. Download the model files with the hf command.
  3. Install the Happy Transformer library with pip.
pip install -U huggingface_hub
hf download vennify/t5-base-grammar-correction
pip install happytransformer

How to use it: In Python, load the T5 model through Happy Transformer, set the generation settings and put the prefix grammar: and a space before each input. Then call generate_text and print the text of the result.

from happytransformer import HappyTextToText, TTSettings
happy_tt = HappyTextToText("T5", "vennify/t5-base-grammar-correction")
args = TTSettings(num_beams=5, min_length=1)
result = happy_tt.generate_text("grammar: This sentences has has bads grammar.", args=args)
print(result.text)
Tool | What it does
HappyTextToText | Loads the T5 model for text to text jobs
TTSettings | Holds the generation settings, here 5 beams and a minimum length of 1
generate_text | Returns the revised text for the input you give it

Example: Give the model a sentence with doubled words and a wrong plural, such as the one in the card's snippet. The card's own comment shows the result as a clean sentence reading "This sentence has bad grammar."

For newcomers and experts: If you are new to this, install the library, paste the snippet and swap the sentence inside the quotes for your own. Keep the grammar: prefix at the start of the text.

If you know the field, this is T5 base fine-tuned for sentence revision on JFLEG, run as a text to text job with beam search. It returns a rewritten sentence and not a list of marked errors.

Add the grammar: prefix to your text
Load T5 with Happy Transformer
The model generates with 5 beams
The revised text comes back in result.text

Good to know: The model returns a revised version of your text, so read the output before you use it.

  • License: cc-by-nc-sa-4.0 as the record states, which marks it non-commercial
  • Languages: English only in the record
  • Other versions: the record counts 4 quantized copies and 2 fine-tuned ones made by other people
  • Cost to run: none named
  • Data it reaches: the text you pass in, plus the model files you download from Hugging Face
  • Not for: paid products, so check the license terms first

On Hugging Face, 13 November 2026

  • Library: transformers
  • Downloads in the last 30 days: 127,257
  • Likes: 187
  • License: cc-by-nc-sa-4.0
  • Languages: en
  • Quantized versions: 4
  • Fine-tunes: 2
  • Tags: transformers, pytorch, t5, text2text-generation, grammar

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download vennify/t5-base-grammar-correction

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
t5-base-grammar-correction This page127,257187—cc-by-nc-sa-4.0
opus-mt-en-zhShares pytorch · text2text-generation · transformers69,966411—apache-2.0
SMaLL-100Shares pytorch · text2text-generation · transformers10,902113333Mmit
humanizer by jialinyyzzShares transformers391,9362,26012Bapache-2.0
Hy-MT2-1.8BShares transformers22,8441,2852Bapache-2.0
Hemmingway-1Shares transformers3,63190226.9Bcc-by-nc-4.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

DeepSeek-R1-GGUF

unsloth · Kit

GGUF copies of the 671B DeepSeek-R1 reasoning model, with 1.58-bit and 2-bit dynamic quants, for running it in llama.cpp on a local machine with enough memory.

New

Axion-1.0-35B-GGUF

prithivMLmods · Kit

Provides GGUF files of Axion-1.0-35B, a 35B mixture-of-experts model with about 3B active parameters aimed at scientific reasoning, information seeking and too…

New

HEART

Phips · Kit

Upscales low-resolution images with a super-resolution network that trains on one consumer GPU and exports to ONNX. For people who train or run image upscalers.

New

Similar in Writing

See all in Writing

Translates between 33 languages on your own device with a 1.8B model squeezed to 1.25 bits, about 440 MB as GGUF files for llama.cpp. For developers adding off…

New

Summarizes, answers questions about and continues book-length text with a fine-tuned 27B model that uses Gated DeltaNet layers, in English and Japanese. For pe…

New

Writes stories and plays characters in multi-turn chat. An 8B Llama 3.1 fine-tune for creative writing and roleplay, aimed at hobbyists who run models on their…

New