Downloads · 30 days
19
14% of all-time downloads
Meyssa/gector-large-2024
gector-large-2024 is a token classification model from Meyssa. Use it when you need labels on individual words, such as names. It is set up for transformers.js. The card lists the license as apache-2.0.
ONNX quantized version of Grammarly's GECToR 2024 model for browser-based grammatical error correction with Transformers.js.
Downloads · 30 days
19
14% of all-time downloads
All-time downloads
134
Public
Repo size
725 MB
Likes
0
Public
Click a slice to open those files.
.onnx361 MB · 99%
From the Hugging Face model README
ONNX quantized version of Grammarly's GECToR 2024 model for browser-based grammatical error correction with Transformers.js.
GECToR uses a token classification approach - instead of generating corrected text, it predicts edit operations for each token:
$KEEP - Keep token unchanged$DELETE - Remove token$REPLACE_word - Replace with specific word$APPEND_word - Append word after token$TRANSFORM_* - Apply transformation (case, verb form, etc.)The model runs iteratively (typically 2-3 passes) until no more edits are predicted.
import { pipeline } from '@huggingface/transformers';
const classifier = await pipeline(
'token-classification',
'YOUR_USERNAME/gector-large-2024',
{ dtype: 'q8' }
);
const result = await classifier('He go to school yesterday.');
// Returns token predictions with edit tags
Best accuracy among GECToR variants. Recommended for quality-critical applications.
Apache 2.0 (following original model license)