SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2010.08210 · EMNLP · 2020

Coarse-to-Fine Pre-training for Named Entity Recognition

Bin Wang, Yue Zhang, Zhenyu Zhang, Bowen Yu, Tingwen Liu, Mengge Xue

arXiv · PDF · Open in the Atlas

Code that ran

4 of 13 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; 1 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 9 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/2010.08210.json · badge: /api/ran/2010.08210.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
strawberryx/CoFEE marked official in Papers with Code
Papers with Code archive
3 ran · 9 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
BertIntermediate Ran
ran on a synthesized input
strawberryx/CoFEE/model/bert_mrc_ner_cluster.py
pointer only (licence: NONE) · get_code("d6fda06a2ac2d1bd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, strawberryx/CoFEE 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.

BertPooler Ran
ran on a synthesized input
strawberryx/CoFEE/model/bert_mrc_ner_cluster.py
pointer only (licence: NONE) · get_code("a218a1ea11358ec3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, strawberryx/CoFEE 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.

BertSelfAttention Ran
ran on a synthesized input
strawberryx/CoFEE/model/bert_mrc_ner_cluster.py
pointer only (licence: NONE) · get_code("47113e22d2e57c7f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, strawberryx/CoFEE 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.

gelu Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from reallsp/SAF
pointer only · get_code("9d64df741b029314")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

BertAttention Not yet run
unverified (harvested, no recorded run)
strawberryx/CoFEE/model/bert_mrc_ner_cluster.py
pointer only (licence: NONE) · get_code("bfa8da12483938a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, strawberryx/CoFEE 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.

BertEmbeddings Not yet run
unverified (harvested, no recorded run)
strawberryx/CoFEE/model/bert_mrc_ner_cluster.py
pointer only (licence: NONE) · get_code("7373ebea53445c9c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, strawberryx/CoFEE 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.

BertEncoder Not yet run
unverified (harvested, no recorded run)
strawberryx/CoFEE/model/bert_mrc_ner_cluster.py
pointer only (licence: NONE) · get_code("165467596b516ee3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, strawberryx/CoFEE 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.

BertLayer Not yet run
unverified (harvested, no recorded run)
strawberryx/CoFEE/model/bert_mrc_ner_cluster.py
pointer only (licence: NONE) · get_code("c3b85acd815d11b5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, strawberryx/CoFEE 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.

BertMRCNER_CLUSTER Not yet run
unverified (harvested, no recorded run)
strawberryx/CoFEE/model/bert_mrc_ner_cluster.py
pointer only (licence: NONE) · get_code("d55a07199455a7cc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, strawberryx/CoFEE 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.

BertModel Not yet run
unverified (harvested, no recorded run)
strawberryx/CoFEE/model/bert_mrc_ner_cluster.py
pointer only (licence: NONE) · get_code("cea3c58496f17080")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, strawberryx/CoFEE 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.

BertOutput Not yet run
unverified (harvested, no recorded run)
strawberryx/CoFEE/model/bert_mrc_ner_cluster.py
pointer only (licence: NONE) · get_code("e2496b3448dddc7b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, strawberryx/CoFEE 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.

BertSelfOutput Not yet run
unverified (harvested, no recorded run)
strawberryx/CoFEE/model/bert_mrc_ner_cluster.py
pointer only (licence: NONE) · get_code("c774d5dca62d41fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, strawberryx/CoFEE 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.

PreTrainedBertModel Not yet run
unverified (harvested, no recorded run)
strawberryx/CoFEE/model/bert_mrc_ner_cluster.py
pointer only (licence: NONE) · get_code("865134f8a5728463")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, strawberryx/CoFEE 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 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 1 the same month, 5 later) and 5 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
gelu
brick of this paper's assembly: helper
198 other papers
57 dated earlier, 4 the same month, 135 later, 2 same year, order not determinable · 32 only as an assembly brick
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.10125 (2019-01)
Glyce: Glyph-vectors for Chinese Character Representations
and 195 more not named here
BertOutput
brick of this paper's assembly: helper
12 other papers
5 dated earlier, 7 later · 10 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1908.02265 (2019-08)
ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks
1908.03557 (2019-08)
VisualBERT: A Simple and Performant Baseline for Vision and Language
and 9 more not named here
BertPooler
brick of this paper's assembly: helper
12 other papers
6 dated earlier, 6 later · 11 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1908.03557 (2019-08)
VisualBERT: A Simple and Performant Baseline for Vision and Language
1908.07490 (2019-08)
LXMERT: Learning Cross-Modality Encoder Representations from Transformers
and 9 more not named here
BertSelfOutput
brick of this paper's assembly: helper
6 other papers
3 dated earlier, 3 later · 4 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1908.02265 (2019-08)
ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks
1909.10351 (2019-09)
TinyBERT: Distilling BERT for Natural Language Understanding
and 3 more not named here
BertIntermediate
brick of this paper's assembly: helper
5 other papers
2 dated earlier, 3 later · 2 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2004.13278 (2020-04)
VD-BERT: A Unified Vision and Dialog Transformer with BERT
2011.05268 (2020-11)
Towards Interpretable Natural Language Understanding with Explanations as Latent Variables
and 2 more not named here
BertEmbeddings
brick of this paper's assembly: helper
1 other paper
1 dated earlier
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
BertSelfAttention
brick of this paper's assembly: helper
1 other paper
1 dated earlier
1908.02265 (2019-08)
ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks
PreTrainedBertModel
brick of this paper's assembly: helper
1 other paper
1 dated earlier
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding

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

More recently, Named Entity Recognition has achieved great advances aided by pre-training approaches such as BERT. However, current pre-training techniques focus on building language modeling objectives to learn a general representation, ignoring the named entityrelated knowledge. To this end, we propose a NER-specific pre-training framework to inject coarse-to-fine automatically mined entity knowledge into pre-trained models. Specifically, we first warm-up the model via an entity span identification task by training it with Wikipedia anchors, which can be deemed as general-typed entities. Then we leverage the gazetteer-based distant supervision strategy to train the model extract coarse-grained typed entities. Finally, we devise a self-supervised auxiliary task to mine the fine-grained named entity knowledge via clustering. Empirical studies on three public NER datasets demonstrate that our framework achieves significant improvements against several pre-trained baselines, establishing the new state-of-the-art performance on three benchmarks. Besides, we show that our framework gains promising results without using human-labeled training data, demonstrating its effectiveness in labelfew and low-resource scenarios. 1

For agents

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

get_harvested_code_for_paper("2010.08210")
get_code_for_paper("2010.08210")
have("2010.08210")

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

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

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

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

Connect an agent — have() is free.