Papers › Code and Named Entity Recognition in StackOverflow

Code and Named Entity Recognition in StackOverflow

4 May 2020ACL 2020 6arXiv:2005.01634archive 2025-07-28

Jeniya Tabassum, Mounica Maddela, Wei Xu, Alan Ritter

There is an increasing interest in studying natural language and computer code together, as large corpora of programming texts become readily available on the Internet. For example, StackOverflow currently has over 15 million programming related questions written by 8.5 million users. Meanwhile, there is still a lack of fundamental NLP techniques for identifying code tokens or software-related named entities that appear within natural language sentences. In this paper, we introduce a new named entity recognition (NER) corpus for the computer programming domain, consisting of 15,372 sentences annotated with 20 fine-grained entity types. We trained in-domain BERT representations (BERTOverflow) on 152 million sentences from StackOverflow, which lead to an absolute increase of +10 F-1 score over off-the-shelf BERT. We also present the SoftNER model which achieves an overall 79.10 F₁ score for code and named entity recognition on StackOverflow data. Our SoftNER model incorporates a context-independent code token classifier with corpus-level features to improve the BERT-based tagging model. Our code and data are available at: https://github.com/jeniyat/StackOverflowNER/

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.01634")

Code

Syntology Ran 5 of 13 code samples harvested from 2 repositories linked to this paper; 8 have no recorded run. Of those that ran: 3 ran · honoured contract; 2 ran · our draft was wrong.

By repository: official repository: 9 samples from 1 repository, 3 ran; community (archive-listed): 4 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.

jeniyat/StackOverflowNER officialmentioned in papermentioned on GitHubpytorchMIT report
taidnguyen/software_entity_recognition mentioned on GitHubpytorch 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

13 samples harvested; 5 ran; 3 honoured the contract we drafted; 8 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.

3ran · honoured contract
2ran · our draft was wrong
8unverified

Licence: 0 of the 13 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.

argmax jeniyat/StackOverflowNER/code/Attentive_BiLSTM/model.py official repository ran · honoured contract fingerprinted MIT (permissive) · d38f06bbd9f9c98c · report
prepare_sequence jeniyat/StackOverflowNER/code/Attentive_BiLSTM/model.py official repository ran · honoured contract MIT (permissive) · 66f180f39c43eeb5 · report
to_scalar jeniyat/StackOverflowNER/code/Attentive_BiLSTM/model.py official repository ran · honoured contract fingerprinted MIT (permissive) · ac476e734740149f · report
calcMetrics jeniyat/StackOverflowNER/code/Attentive_BiLSTM/conlleval_py.py official repository unverified MIT (permissive) · 82ddeedc1532be36 · report
endOfChunk jeniyat/StackOverflowNER/code/Attentive_BiLSTM/conlleval_py.py official repository unverified MIT (permissive) · 5d56e08fc935df9b · report
gaussian jeniyat/StackOverflowNER/code/Attentive_BiLSTM/gaussian_binner.py official repository unverified MIT (permissive) · 43cd754556c221e1 · report
save_char_embed jeniyat/StackOverflowNER/code/Attentive_BiLSTM/train_so.py official repository unverified MIT (permissive) · c9fe7ba81ee0b5b0 · report
startOfChunk jeniyat/StackOverflowNER/code/Attentive_BiLSTM/conlleval_py.py official repository unverified MIT (permissive) · dacaea8c1a2f5f82 · report
unicodeToAscii jeniyat/StackOverflowNER/code/Attentive_BiLSTM/loader_so.py official repository unverified MIT (permissive) · 13c5cea0c71aab3f · report
get_labels taidnguyen/software_entity_recognition/src/model_nll.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 8d492584c2bb879a · report
kl_div taidnguyen/software_entity_recognition/src/model_nll.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 978e6ebd9602e13a · report
NERModel taidnguyen/software_entity_recognition/src/model_nll.py community (archive-listed) unverified Apache-2.0 (permissive) · e0b7dc33e0488f7e · report
NLLModel taidnguyen/software_entity_recognition/src/model_nll.py community (archive-listed) unverified Apache-2.0 (permissive) · 95421f07c3753c59 · report

Tasks

NERNamed Entity RecognitionNamed Entity Recognition (NER)named-entity-recognition

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBERTDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionSoftmaxWeight DecayWordPiece

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