SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.00991 · ACL Findings · 2022

The Past Mistake is the Future Wisdom: Error-driven Contrastive Probability Optimization for Chinese Spell Checking

Hai-Tao Zheng, Chao Li, Yinghui Li, Yangning Li, Yunbo Cao, Zhongli Li, Qingyu Zhou, Zizhen Wang, Ruiyang Liu, Rongyi Sun

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 6 functions out of this paper's own repositories and ran 5 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
BYVoid/OpenCC canonical 5 of 6
FunctionStatusWhere it lives
IsHeaderFile Ran BYVoid/OpenCC/deps/google-benchmark/.ycm_extra_conf.py
code served (permissive licence) · get_code("b338b6f7dd60e20a")
MakeRelativePathsInFlagsAbsolute Ran BYVoid/OpenCC/deps/google-benchmark/.ycm_extra_conf.py
code served (permissive licence) · get_code("11a933b4ba235ce6")
auto_cpp_level Ran BYVoid/OpenCC/deps/pybind11-2.13.1/pybind11/setup_helpers.py
code served (permissive licence) · get_code("2cf7b337c8f8f0c8")
get_include Ran BYVoid/OpenCC/deps/pybind11-2.13.1/pybind11/commands.py
code served (permissive licence) · get_code("67ad1f7a0bbdff7f")
has_flag Ran BYVoid/OpenCC/deps/pybind11-2.13.1/pybind11/setup_helpers.py
code served (permissive licence) · get_code("6eb3262cc4e1cf5c")
GetCompilationInfoForFile Not yet run BYVoid/OpenCC/deps/google-benchmark/.ycm_extra_conf.py
code served (permissive licence) · get_code("6409ed070d8dcb85")

Repositories linked to this paper

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

Abstract

Chinese Spell Checking (CSC) aims to detect and correct Chinese spelling errors, which are mainly caused by the phonological or visual similarity. Recently, pre-trained language models (PLMs) promote the progress of CSC task. However, there exists a gap between the learned knowledge of PLMs and the goal of CSC task. PLMs focus on the semantics in text and tend to correct the erroneous characters to semantically proper or commonly used ones, but these aren't the ground-truth corrections. To address this issue, we propose an Error-driven COntrastive Probability Optimization (ECOPO) framework for CSC task. ECOPO refines the knowledge representations of PLMs, and guides the model to avoid predicting these common characters through an error-driven way. Particularly, ECOPO is model-agnostic and it can be combined with existing CSC methods to achieve better performance. Extensive experiments and detailed analyses on SIGHAN datasets demonstrate that ECOPO is simple yet effective. * * indicates equal contribution. Work is done during Yinghui's internship at Tencent Cloud Xiaowei.

For agents

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

get_harvested_code_for_paper("2203.00991")
get_code_for_paper("2203.00991")
have("2203.00991")

Connect an agent — have() is free.