SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1511.08308 · 2015

Named Entity Recognition with Bidirectional LSTM-CNNs

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 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; 2 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/1511.08308.json · badge: /api/ran/1511.08308.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
mxhofer/Named-Entity-Recognition-BidirectionalLSTM-CNN-CoNLL community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
niccolot/NER_biLSTM-CNN reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_f1 Ran
ran on a synthesized input
mxhofer/Named-Entity-Recognition-BidirectionalLSTM-CNN-CoNLL/validation.py
code served (permissive licence) · get_code("e7fa1b4511321cb3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Based on the function signature:
# compute_f1(predictions, correct, idx2Label)
# 
# The function expects:
# - predictions: list of sentences, where each sentence is a list of indices
# - correct: list of sentences, where each sentence is a list of indices
# - idx2Label: dict mapping indices to label strings (like 'B-PER', 'I-PER', 'O')
#
# The function converts indices to labels using idx2Label, then calls compute_precision
# which expects sequences of label strings starting with 'B' or 'I' or other prefixes

# Create a small idx2Label mapping
idx2Label = {
    0: 'O',
    1: 'B-PER',
    2: 'I-PER',
    3: 'B-ORG',
    4: 'I-ORG',
}

# Create small predictions and correct sequences
# Sentence 1: predicted [B-PER, I-PER, O], correct [B-PER, I-PER, O]
# Sentence 2: predicted [B-ORG, I-ORG, O], correct [B-ORG, I-ORG, O]
predictions = [
    [1, 2, 0],  # B-PER, I-PER, O
    [3, 4, 0],  # B-ORG, I-ORG, O
]

correct = [
    [1, 2, 0],  # B-PER, I-PER, O
    [3, 4, 0],  # B-ORG, I-ORG, O
]

ARGS = {
    'predictions': predictions,
    'correct': correct,
    'idx2Label': idx2Label,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_precision Ran
ran on a synthesized input
mxhofer/Named-Entity-Recognition-BidirectionalLSTM-CNN-CoNLL/validation.py
code served (permissive licence) · get_code("f5cc0f3470ea30e7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# The function expects lists of sequences where each element is a tag string
# Tags follow BIO (Begin, Inside, Outside) format
# Each tag is a string where the first character indicates the type ('B', 'I', or 'O')

# Create sample guessed sentences (sequences of BIO tags)
guessed_sentences = [
    ['B-PER', 'I-PER', 'O', 'B-LOC'],  # First sentence: correctly tagged person entity, then location
    ['B-ORG', 'I-ORG', 'I-ORG', 'O']   # Second sentence: correctly tagged org entity
]

# Create sample correct sentences (ground truth sequences of BIO tags)
correct_sentences = [
    ['B-PER', 'I-PER', 'O', 'B-LOC'],  # First sentence: matches guessed
    ['B-ORG', 'I-ORG', 'I-ORG', 'O']   # Second sentence: matches guessed
]

ARGS = {
    'guessed_sentences': guessed_sentences,
    'correct_sentences': correct_sentences
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
createEqualBatches Ran
ran on a synthesized input
mxhofer/Named-Entity-Recognition-BidirectionalLSTM-CNN-CoNLL/prepro.py
code served (permissive licence) · get_code("3e984024e0b78214")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function expects 'data' which should be iterable
# It iterates over data[start:end] and appends each batch to batches list
# So data should be a list of items (could be tensors, strings, dicts, etc.)
# Let's create a simple list of small tensors to simulate batches of data

data = [torch.randn(2, 4) for _ in range(1000)]

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
getCasing Ran
ran on a synthesized input
mxhofer/Named-Entity-Recognition-BidirectionalLSTM-CNN-CoNLL/prepro.py
code served (permissive licence) · get_code("6d0b5dd684a16ec8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# caseLookup is a dictionary that maps casing types to indices or values
caseLookup = {
    'numeric': 0,
    'mainly_numeric': 1,
    'allLower': 2,
    'allUpper': 3,
    'initialUpper': 4,
    'contains_digit': 5,
    'other': 6
}

# word is a string that the function analyzes
word = "Hello123"

ARGS = {
    'word': word,
    'caseLookup': caseLookup
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_casing Ran
ran, honoured the contract we drafted
niccolot/NER_biLSTM-CNN/preprocessing.py
pointer only (licence: NONE) · get_code("d92a205fe8492607")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, niccolot/NER_biLSTM-CNN 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_char_info Ran
ran; our contract draft was wrong, not the code
niccolot/NER_biLSTM-CNN/preprocessing.py
pointer only (licence: NONE) · get_code("d17be84f16bfcdb3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, niccolot/NER_biLSTM-CNN 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_lines Ran
ran; our contract draft was wrong, not the code
niccolot/NER_biLSTM-CNN/preprocessing.py
pointer only (licence: NONE) · get_code("cd6e630e323645e1")
How it ran

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

log_sum_exp Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from ZubinGou/NER-BiLSTM-CRF-PyTorch
pointer only · get_code("d4329236872658c9")
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.

readfile Ran
ran on a synthesized input
mxhofer/Named-Entity-Recognition-BidirectionalLSTM-CNN-CoNLL/prepro.py
code served (permissive licence) · get_code("5b7a20a3a09ffb47")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with NER data in CoNLL format
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt', encoding='UTF8')
temp_file.write("EU B-ORG\n")
temp_file.write("rejects O\n")
temp_file.write("German B-MISC\n")
temp_file.write("call O\n")
temp_file.write("to O\n")
temp_file.write("boycott O\n")
temp_file.write("British B-MISC\n")
temp_file.write("lamb O\n")
temp_file.write(". O\n")
temp_file.write("\n")
temp_file.write("The O\n")
temp_file.write("quick O\n")
temp_file.write("brown O\n")
temp_file.write("fox B-MISC\n")
temp_file.close()

filename = temp_file.name

ARGS = {
    'filename': filename,
    'encoding': 'UTF8'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 8 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
log_sum_exp 2 other papers
2 later
1603.01354 (2016-03)
End-to-end Sequence Labeling via Bi-directional LSTM-CNNs-CRF
1603.01360 (2016-03)
Neural Architectures for Named Entity Recognition

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-23.

Repositories linked to this paper

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

Abstract

Named entity recognition is a challenging task that has traditionally required large amounts of knowledge in the form of feature engineering and lexicons to achieve high performance. In this paper, we present a novel neural network architecture that automatically detects word- and character-level features using a hybrid bidirectional LSTM and CNN architecture, eliminating the need for most feature engineering. We also propose a novel method of encoding partial lexicon matches in neural networks and compare it to existing approaches. Extensive evaluation shows that, given only tokenized text and publicly available word embeddings, our system is competitive on the CoNLL-2003 dataset and surpasses the previously reported state of the art performance on the OntoNotes 5.0 dataset by 2.13 F1 points. By using two lexicons constructed from publicly-available sources, we establish new state of the art performance with an F1 score of 91.62 on CoNLL-2003 and 86.28 on OntoNotes, surpassing systems that employ heavy feature engineering, proprietary lexicons, and rich entity linking information.

For agents

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

get_harvested_code_for_paper("1511.08308")
get_code_for_paper("1511.08308")
have("1511.08308")

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

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

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

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

Connect an agent — have() is free.