Papers › GECToR -- Grammatical Error Correction: Tag, Not Rewrite

GECToR -- Grammatical Error Correction: Tag, Not Rewrite

26 May 2020WS 2020 7arXiv:2005.12592archive 2025-07-28

Kostiantyn Omelianchuk, Vitaliy Atrasevych, Artem Chernodub, Oleksandr Skurzhanskyi

In this paper, we present a simple and efficient GEC sequence tagger using a Transformer encoder. Our system is pre-trained on synthetic data and then fine-tuned in two stages: first on errorful corpora, and second on a combination of errorful and error-free parallel corpora. We design custom token-level transformations to map input tokens to target corrections. Our best single-model/ensemble GEC tagger achieves an F_(0.5) of 65.3/66.5 on CoNLL-2014 (test) and F_(0.5) of 72.4/73.6 on BEA-2019 (test). Its inference speed is up to 10 times as fast as a Transformer-based seq2seq GEC system. The code and trained models are publicly available.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2005.12592")

Code

Syntology Ran 2 of 12 code samples harvested from 2 repositories linked to this paper; 10 have no recorded run. Of those that ran: 1 ran · violated contract; 1 ran · our draft was wrong.

By repository: official repository: 10 samples from 1 repository, 0 ran; community (archive-listed): 2 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

grammarly/gector officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
psawa/gecko-app mentioned on GitHubpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 2 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
1ran · our draft was wrong
10unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

annotate_fce_doc grammarly/gector/utils/prepare_clc_fce_data.py official repository unverified Apache-2.0 (permissive) · 94f13ee8c30ce76f · report
apply_merge_transformation grammarly/gector/utils/preprocess_data.py official repository unverified Apache-2.0 (permissive) · e2be5e9c2082d301 · report
convert_fce grammarly/gector/utils/prepare_clc_fce_data.py official repository unverified Apache-2.0 (permissive) · 9a10dedeb0b5dac7 · report
convert_using_case grammarly/gector/utils/helpers.py official repository unverified Apache-2.0 (permissive) · 87468610676c6dd6 · report
filter_line grammarly/gector/utils/filter_brackets.py official repository unverified Apache-2.0 (permissive) · fc4f0a3954e20959 · report
get_bpe_groups grammarly/gector/gector/tokenization.py official repository unverified Apache-2.0 (permissive) · 6f0e771498f45ff4 · report
get_offsets_and_reduce_input_ids grammarly/gector/gector/tokenization.py official repository unverified Apache-2.0 (permissive) · e465d1ef5c3c98db · report
get_target_sent_by_edits grammarly/gector/utils/helpers.py official repository unverified Apache-2.0 (permissive) · 395b7b304d288571 · report
reduce_input_ids grammarly/gector/gector/tokenization.py official repository unverified Apache-2.0 (permissive) · 3b89561b72017ad9 · report
replace_merge_transforms grammarly/gector/utils/helpers.py official repository unverified Apache-2.0 (permissive) · fa83b5a1840e54e0 · report
need_add_prefix_space gotutiyan/gector/src/gector/cli/predict.py community (archive-listed) ran · violated contract MIT (permissive) · eacea3a25d6b9838 · report
visualizer gotutiyan/gector/src/gector/cli/predict.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 0f854050e3b7af65 · report

Tasks

Grammatical Error CorrectionTAG

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Grammatical Error Correction BEA-2019 (test) Sequence tagging + token-level transformations + two-stage fine-tuning (+RoBERTa, XLNet) F0.5 73.7 #9 of 19 Archive leaderboard report
Grammatical Error Correction BEA-2019 (test) Sequence tagging + token-level transformations + two-stage fine-tuning (+XLNet) F0.5 72.4 #13 of 19 Archive leaderboard report
Grammatical Error Correction CoNLL-2014 Shared Task Sequence tagging + token-level transformations + two-stage fine-tuning (+BERT, RoBERTa, XLNet) F0.5 66.5 #10 of 23 Archive leaderboard report
Grammatical Error Correction CoNLL-2014 Shared Task Sequence tagging + token-level transformations + two-stage fine-tuning (+BERT, RoBERTa, XLNet) Precision 78.2 #10 of 23 Archive leaderboard report
Grammatical Error Correction CoNLL-2014 Shared Task Sequence tagging + token-level transformations + two-stage fine-tuning (+BERT, RoBERTa, XLNet) Recall 41.5 #10 of 23 Archive leaderboard report
Grammatical Error Correction CoNLL-2014 Shared Task Sequence tagging + token-level transformations + two-stage fine-tuning (+XLNet) F0.5 65.3 #12 of 23 Archive leaderboard report
Grammatical Error Correction CoNLL-2014 Shared Task Sequence tagging + token-level transformations + two-stage fine-tuning (+XLNet) Precision 77.5 #12 of 23 Archive leaderboard report
Grammatical Error Correction CoNLL-2014 Shared Task Sequence tagging + token-level transformations + two-stage fine-tuning (+XLNet) Recall 40.1 #12 of 23 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerReLUResidual ConnectionSPEEDSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections