jhu-clsp/jfleg
Viewer • Updated • 1.5k • 1.48k • 77
How to use Specialgfhdhdh/gec-t5-tiny with Transformers.js:
// npm i @huggingface/transformers
import { pipeline } from '@huggingface/transformers';
// Allocate pipeline
const pipe = await pipeline('text-generation', 'Specialgfhdhdh/gec-t5-tiny');This model is a highly compact T5-tiny (approx. 60M parameters) fine-tuned specifically for Grammar Error Correction (GEC) in conversational contexts. It is optimized for low-latency CPU inference and web-based deployment via Transformers.js.
gec-t5-tiny: Standard PyTorch/Safetensors weights.gec-t5-tiny-onnx: Web-optimized ONNX weights only.This model is intended for real-time typing assistance in chat applications, specialized to handle the nuances of modern digital communication without over-correcting natural slang into overly formal language.
The model was trained on a mixture of:
Due to its tiny size, the model may struggle with extremely long or structurally complex formal legal/academic documents. It is primarily tuned for short-to-medium length conversational snippets.