SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.01635 · EMNLP · 2022

Revisiting Grammatical Error Correction Evaluation and Beyond

Xuebo Liu, Min Zhang, Heyan Huang, Peiyuan Gong

arXiv · PDF · Open in the Atlas

Code that ran

21 of 31 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 15 failures of our instrument; 10 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2211.01635.json · badge: /api/ran/2211.01635.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
pygongnlp/PT-M2 community
Papers with Code archive
21 ran · 10 no recorded run
FunctionStatusWhere it lives
best_edit_seq_bf Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("6685898ec6c99ed8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

comp_f1 Ran
ran, honoured the contract we drafted
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("8812d1ff4a2d86e2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

comp_p Ran
ran, honoured the contract we drafted
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("a04366d2f95bd02b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

comp_r Ran
ran, honoured the contract we drafted
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("9602afb1b61091f7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

edit_graph Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("6e7fcf15760cef34")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

equals_ignore_whitespace_casing Ran
ran, violated the contract we drafted
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("98662233319d385a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_distance Ran
ran, honoured the contract we drafted
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("10b705f17bd01668")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_ref Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("41ef3246fa487f1d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

levenshtein_matrix Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("b6ac128b4b5ce1c0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_annotation Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("b8a21170214bed29")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

matchEdit Ran
ran, violated the contract we drafted
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("132e8a705869c3fa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

matchSeq Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("83246c9a671abeec")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

merge_edits Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("74c31a434f3b4be0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

merge_graph Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("875d2b0093f14f77")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

paragraphs Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("a023f2f843d836b2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

process_edits Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("e8cf8b92ebfb0e39")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

set_weights Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("623c7d0f98224e0f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

shrinkEdit Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("b122957232c466b9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

simplify_edits Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("a45052c27ec03581")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

smart_open Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("2cfd71ded15bd59d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

transitive_arcs Ran
ran; our contract draft was wrong, not the code
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("fac4285ee68be04f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BARTScorer Not yet run
unverified (harvested, no recorded run)
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("a131873a0a2572e5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

PTM2 Not yet run
unverified (harvested, no recorded run)
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("87624a3984fe1708")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

batch_multi_pre_rec_f1 Not yet run
unverified (harvested, no recorded run)
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("84908af1d51cf18c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

batch_multi_pre_rec_f1_errant Not yet run
unverified (harvested, no recorded run)
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("eb3b71d268d7c15f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

batch_multi_pre_rec_f1_sent Not yet run
unverified (harvested, no recorded run)
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("320d76c801f61bae")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

batch_multi_pre_rec_f1_sent_errant Not yet run
unverified (harvested, no recorded run)
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("35662847bc7bac1f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

compute_weight_edits Not yet run
unverified (harvested, no recorded run)
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("0b32a42c69fe0b38")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

errant_load_annotation Not yet run
unverified (harvested, no recorded run)
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("e3c94f36e8f91c28")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

f1 Not yet run
unverified (harvested, no recorded run)
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("b8394bc429303913")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

pre_rec_f1 Not yet run
unverified (harvested, no recorded run)
pygongnlp/PT-M2/metrics.py
pointer only (licence: NONE) · get_code("2c259600beaaa31b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pygongnlp/PT-M2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 31 samples lifted from this paper's linked repositories, 31 carry a function identity and 0 do not. Of the 31 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 29 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
BARTScorer
brick of this paper's assembly: model
1 other paper
1 later
2404.19563 (2024-04)
RepEval: Effective Text Evaluation with LLM Representation
simplify_edits
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2010.03260 (2020-10)
Improving the Efficiency of Grammatical Error Correction with Erroneous Span Detection and Correction

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Pretraining-based (PT-based) automatic evaluation metrics (e.g., BERTScore and BARTScore) have been widely used in several sentence generation tasks (e.g., machine translation and text summarization) due to their better correlation with human judgments over traditional overlapbased methods. Although PT-based methods have become the de facto standard for training grammatical error correction (GEC) systems, GEC evaluation still does not benefit from pretrained knowledge. This paper takes the first step towards understanding and improving GEC evaluation with pretraining. We first find that arbitrarily applying PT-based metrics to GEC evaluation brings unsatisfactory correlation results because of the excessive attention to inessential systems outputs (e.g., unchanged parts). To alleviate the limitation, we propose a novel GEC evaluation metric to achieve the best of both worlds, namely PT-M 2 , which only uses PT-based metrics to score those corrected parts. Experimental results on the CoNLL14 evaluation task show that PT-M 2 significantly outperforms existing methods, achieving a new state-of-the-art result of 0.949 Pearson correlation. Further analysis reveals that PT-M 2 is robust to evaluate competitive GEC systems. Source code and scripts are freely available at https://github.com/pygongnlp/PT-M2.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2211.01635")
get_code_for_paper("2211.01635")
have("2211.01635")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2211.01635.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2211.01635.svg)](https://syntology.ai/paper/2211.01635)

Connect an agent — have() is free.