SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1603.01354 · 2016

End-to-end Sequence Labeling via Bi-directional LSTM-CNNs-CRF

arXiv · PDF · Open in the Atlas

Code that ran

24 of 24 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 18 have no contract verdict; 4 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/1603.01354.json · badge: /api/ran/1603.01354.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
epwalsh/pytorch-crf community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
SenticNet/aspect-extraction community (classifier label)
classifier basis: plan_row
5 ran · 0 no recorded run
aonotas/deep-crf community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
monologg/korean-ner-pytorch community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
uahmad235/NER-Deep-Learning reimplementation (classifier label)
classifier basis: classifier_2025
2 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
align_data Ran
ran; our contract draft was wrong, not the code
SenticNet/aspect-extraction/evaluate.py
code served (permissive licence) · get_code("2e30815d7869e90d")
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) and returned dict. 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

torch.manual_seed(0)

# The function align_data takes a dict where:
# - Keys are strings (like "x", "y")
# - Values are lists of strings (tokens)
# It aligns them by padding with spaces

data = {
    "x": ["I", "love", "you"],
    "y": ["O", "O", "O"]
}

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
allowed_transitions Ran
ran on a synthesized input
epwalsh/pytorch-crf/pycrf/modules/crf.py
code served (permissive licence) · get_code("8a5c3d6c5cdf0f7f")
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, ndim 2, dtype family int; 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

# Construct tokens dictionary
# Format: {token_id: "tag_string"}
# For BIOUL: tags are like "B-PER", "I-PER", "O", "U-LOC", "L-ORG"
# For BIO: tags are like "B-PER", "I-PER", "O"

tokens_bio = {
    0: "O",
    1: "B-PER",
    2: "I-PER",
    3: "B-LOC",
    4: "I-LOC",
}

tokens_bioul = {
    0: "O",
    1: "B-PER",
    2: "I-PER",
    3: "L-PER",
    4: "U-PER",
    5: "B-LOC",
    6: "I-LOC",
    7: "L-LOC",
    8: "U-LOC",
}

ARGS = {
    "constraint_type": "BIO",
    "tokens": tokens_bio,
}
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 list, ndim 2, dtype family int — a list 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
build_vocab Ran
ran on a synthesized input
aonotas/deep-crf/deepcrf/util.py
code served (permissive licence) · get_code("efa5f8ef6420d58c")
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 dict. 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 six

torch_imported = False
try:
    import torch
    torch_imported = True
except:
    pass

UNKWORD = u'UNKNOWN'
PADDING = u'PADDING'

# Create a simple dataset: list of documents, where each document is a list of words
dataset = [
    [u'hello', u'world', u'hello'],
    [u'foo', u'bar', u'world'],
    [u'hello', u'baz'],
    [u'rare_word'],
]

ARGS = {
    'dataset': dataset,
    'min_count': 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
six, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
convert_examples_to_features Ran
ran on a synthesized input
monologg/korean-ner-pytorch/data_loader.py
code served (permissive licence) · get_code("96f74869fff003c5")
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, 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 logging

logging.basicConfig(level=logging.INFO)

class Example:
    def __init__(self, guid, words, labels):
        self.guid = guid
        self.words = words
        self.labels = labels

# Create small vocabs with PAD and UNK tokens
word_vocab = {
    'PAD': 0,
    'UNK': 1,
    'the': 2,
    'cat': 3,
    'dog': 4,
}

char_vocab = {
    'PAD': 0,
    'UNK': 1,
    't': 2,
    'h': 3,
    'e': 4,
    'c': 5,
    'a': 6,
    'd': 7,
    'o': 8,
    'g': 9,
}

label_vocab = {
    'PAD': 0,
    'UNK': 1,
    'O': 2,
    'B-NOUN': 3,
    'I-NOUN': 4,
}

# Create example objects
examples = [
    Example(
        guid='example_0',
        words=['the', 'cat'],
        labels=['O', 'B-NOUN']
    ),
    Example(
        guid='example_1',
        words=['the', 'dog'],
        labels=['O', 'B-NOUN']
    ),
]

ARGS = {
    'examples': examples,
    'max_seq_len': 8,
    'max_word_len': 5,
    'word_vocab': word_vocab,
    'char_vocab': char_vocab,
    'label_vocab': label_vocab,
    'pad_token': 'PAD',
    'unk_token': 'UNK',
}
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, ndim 1, dtype family float — a list 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
flatten Ran
ran on a synthesized input
aonotas/deep-crf/deepcrf/util.py
code served (permissive licence) · get_code("ed44eeb17583a430")
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, ndim 1, dtype family int; 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
from itertools import chain

torch.manual_seed(0)

def flatten(l):
    return list(chain.from_iterable(l))

# The function takes a single parameter 'l' which should be an iterable of iterables
# chain.from_iterable expects l to be iterable and each element to be iterable
# Build a simple nested list structure

ARGS = {
    "l": [
        [1, 2, 3],
        [4, 5],
        [6, 7, 8, 9]
    ]
}
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 list, ndim 1, dtype family int — a list 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
get_char_vocab Ran
ran on a synthesized input
SenticNet/aspect-extraction/model/data_utils.py
code served (permissive licence) · get_code("d8fcea9be53400c5")
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 set. 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 torch.nn as nn

torch.manual_seed(0)

# The function iterates over dataset, unpacking each item as (words, tags)
# For each words element, it iterates over it (words is iterable)
# For each word in words, it calls word.update() - wait, that's not right
# Actually it calls vocab_char.update(word), where word is a string
# So word is a string, words is a list of strings, and the tuple is (words_list, tags)

# Create a simple dataset as an iterable of (words, tags) tuples
dataset = [
    (["hello", "world"], ["NOUN", "NOUN"]),
    (["foo", "bar", "baz"], ["VERB", "ADJ", "NOUN"]),
]

ARGS = {
    "dataset": dataset
}
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 set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
get_device Ran
ran on a synthesized input
epwalsh/pytorch-crf/pycrf/opts.py
code served (permissive licence) · get_code("2b5d5ed6870612d6")
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 device. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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

class Options:
    def __init__(self, cuda, gpu_id):
        self.cuda = cuda
        self.gpu_id = gpu_id

# Test case 1: CPU mode
opts_cpu = Options(cuda=False, gpu_id=0)

ARGS = {
    'opts': opts_cpu
}
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 device — a device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a device output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
get_glove_vocab Ran
ran on a synthesized input
SenticNet/aspect-extraction/model/data_utils.py
code served (permissive licence) · get_code("150bda69614e5bc7")
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 set. 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 GloVe-like file for testing
temp_dir = tempfile.mkdtemp()
glove_file = os.path.join(temp_dir, "glove.txt")

# Write a small GloVe format file with a few words and vectors
with open(glove_file, 'w') as f:
    f.write("the 0.1 0.2 0.3 0.4\n")
    f.write("cat 0.5 0.6 0.7 0.8\n")
    f.write("dog 0.9 1.0 1.1 1.2\n")
    f.write("hello 1.3 1.4 1.5 1.6\n")

ARGS = {
    "filename": glove_file
}
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 set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
get_labels Ran
ran on a synthesized input
monologg/korean-ner-pytorch/utils.py
code served (permissive licence) · get_code("39747eaf4d4dd34c")
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, 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 os
import tempfile

# Create a temporary directory with a label file
temp_dir = tempfile.mkdtemp()
label_file_path = os.path.join(temp_dir, 'labels.txt')

# Write some sample labels to the file
with open(label_file_path, 'w', encoding='utf-8') as f:
    f.write('label1\n')
    f.write('label2\n')
    f.write('label3\n')

# Create a simple args object
class Args:
    def __init__(self, data_dir, label_file):
        self.data_dir = data_dir
        self.label_file = label_file

ARGS = {
    'args': Args(data_dir=temp_dir, label_file='labels.txt')
}
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, ndim 1, dtype family float — a list 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
get_logger Ran
ran; our contract draft was wrong, not the code
SenticNet/aspect-extraction/model/general_utils.py
code served (permissive licence) · get_code("75ed1ef1f8c3d22b")
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 Logger. 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 logging
import tempfile
import os

# Create a temporary file for logging
temp_dir = tempfile.gettempdir()
log_filename = os.path.join(temp_dir, 'test_log.txt')

ARGS = {
    'filename': log_filename
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
get_parser Ran
ran on a synthesized input
epwalsh/pytorch-crf/pycrf/opts.py
code served (permissive licence) · get_code("5d860e1e635bb337")
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 argparse
import torch.nn as nn

class ArgParsingError(Exception):
    """Custom exception for argument parsing errors."""
    pass

def simple_options(parser, require=True):
    """A simple options function that adds some arguments."""
    group = parser.add_argument_group('Simple options')
    group.add_argument('--model', type=str, default='test_model', help='Model name.')
    group.add_argument('--epochs', type=int, default=10, help='Number of epochs.')

ARGS = {
    'args': ['--verbose', '--cuda', '--gpu-id', '1'],
    'options': simple_options,
}
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 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
get_test_texts Ran
ran on a synthesized input
monologg/korean-ner-pytorch/utils.py
code served (permissive licence) · get_code("1e55eeac515b209e")
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, ndim 2, 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 os
import tempfile

# Create a temporary directory and test file
temp_dir = tempfile.mkdtemp()
test_file_path = os.path.join(temp_dir, "test_data.txt")

# Write a test file with tab-separated values (text and label)
with open(test_file_path, 'w', encoding='utf-8') as f:
    f.write("hello world test\t1\n")
    f.write("another test line\t0\n")
    f.write("third example here\t1\n")

# Create a simple args object
class Args:
    def __init__(self, data_dir, test_file):
        self.data_dir = data_dir
        self.test_file = test_file

args_obj = Args(data_dir=temp_dir, test_file="test_data.txt")

ARGS = {
    "args": args_obj
}
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, ndim 2, dtype family float — a list 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
get_vocabs Ran
ran on a synthesized input
SenticNet/aspect-extraction/model/data_utils.py
code served (permissive licence) · get_code("384baa37e7d09ae3")
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

# Create simple dataset objects that can be iterated over
class SimpleDataset:
    def __init__(self, data):
        self.data = data
    
    def __iter__(self):
        return iter(self.data)

# Create sample data: list of (words, tags) tuples
dataset1_data = [
    (['the', 'cat', 'sat'], ['DET', 'NOUN', 'VERB']),
    (['on', 'a', 'mat'], ['PREP', 'DET', 'NOUN']),
]

dataset2_data = [
    (['dogs', 'run', 'fast'], ['NOUN', 'VERB', 'ADV']),
    (['birds', 'fly'], ['NOUN', 'VERB']),
]

# Create dataset objects
dataset1 = SimpleDataset(dataset1_data)
dataset2 = SimpleDataset(dataset2_data)

# Create the datasets list
datasets = [dataset1, dataset2]

# Define ARGS with the required parameter
ARGS = {
    'datasets': datasets
}
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
leverage_embeddings Ran
ran, honoured the contract we drafted
uahmad235/NER-Deep-Learning/src/model.py
pointer only (licence: NONE) · get_code("bec5e83fd3d70970")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, uahmad235/NER-Deep-Learning 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_vocab Ran
ran on a synthesized input
monologg/korean-ner-pytorch/utils.py
code served (permissive licence) · get_code("7a25966763d63ede")
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 os
import tempfile
from pathlib import Path

# Create temporary directory with vocab files
temp_dir = tempfile.mkdtemp()
vocab_dir = os.path.join(temp_dir, 'vocab')
os.makedirs(vocab_dir, exist_ok=True)

# Create word_vocab file
word_vocab_path = os.path.join(vocab_dir, 'word_vocab')
with open(word_vocab_path, 'w', encoding='utf-8') as f:
    words = ['the', 'a', 'and', 'or', 'in', 'is', 'be', 'to', 'of', 'that']
    for word in words:
        f.write(word + '\n')

# Create char_vocab file
char_vocab_path = os.path.join(vocab_dir, 'char_vocab')
with open(char_vocab_path, 'w', encoding='utf-8') as f:
    chars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']
    for char in chars:
        f.write(char + '\n')

# Create a simple args object
class Args:
    def __init__(self):
        self.vocab_dir = vocab_dir
        self.word_vocab_size = 1000
        self.char_vocab_size = 500

ARGS = {
    'args': Args()
}
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 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
load_word_matrix Ran
ran on a synthesized input
monologg/korean-ner-pytorch/data_loader.py
code served (permissive licence) · get_code("bb02eac63a26be4e")
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 Tensor, ndim 2, dtype family float, shape (5, 4) 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 os
import logging
import numpy as np
import torch
import tempfile

torch.manual_seed(0)

# Create a temporary directory for wordvec files
tmpdir = tempfile.mkdtemp()

# Create a mock word vector file
w2v_file_path = os.path.join(tmpdir, 'word2vec.txt')
with open(w2v_file_path, 'w', encoding='utf-8') as f:
    f.write('hello 0.1 0.2 0.3 0.4\n')
    f.write('world 0.5 0.6 0.7 0.8\n')
    f.write('test 0.9 0.1 0.2 0.3\n')

# Create a mock args object
class Args:
    def __init__(self):
        self.wordvec_dir = tmpdir
        self.w2v_file = 'word2vec.txt'
        self.word_vocab_size = 5
        self.word_emb_dim = 4

args = Args()

# Create a mock word_vocab dictionary
word_vocab = {
    'hello': 0,
    'world': 1,
    'test': 2,
    'missing': 3,
    'word': 4
}

ARGS = {
    'args': args,
    'word_vocab': word_vocab
}
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 Tensor, ndim 2, dtype family float, shape (5, 4) — shape (5, 4) 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
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.

logsumexp Ran
ran; our contract draft was wrong, not the code
epwalsh/pytorch-crf/pycrf/modules/crf.py
code served (permissive licence) · get_code("c43b937718b773ad")
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 Tensor, ndim 2, dtype family float, shape (2, 4) 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)

# Create a small tensor with distinct dimensions
# Using shape (2, 4, 3) to have clearly different dimension sizes
tensor = torch.randn(2, 4, 3, dtype=torch.float32)

ARGS = {
    "tensor": tensor,
    "dim": -1,
    "keepdim": False,
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
parse_all Ran
ran on a synthesized input
epwalsh/pytorch-crf/pycrf/opts.py
code served (permissive licence) · get_code("900bd7c6020dbcd1")
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 Namespace. 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 argparse
from argparse import ArgumentParser

class ArgParsingError(Exception):
    pass

class InitialOpts:
    def __init__(self, help=False):
        self.help = help

# Create a simple parser
parser = ArgumentParser(description="Test parser")
parser.add_argument("--verbose", action="store_true", help="Verbose output")
parser.add_argument("--name", type=str, default="default", help="Name parameter")
parser.add_argument("--count", type=int, default=1, help="Count parameter")

# Create initial_opts with help=False so it doesn't raise ArgParsingError
initial_opts = InitialOpts(help=False)

# Create minimal args list
args = ["--verbose", "--name", "test_name", "--count", "5"]

ARGS = {
    "args": args,
    "initial_opts": initial_opts,
    "parser": parser
}
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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
prepare_glove_embeddings Ran
ran; our contract draft was wrong, not the code
uahmad235/NER-Deep-Learning/src/model.py
pointer only (licence: NONE) · get_code("48601cc3677f714b")
How it ran

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

replace_S_E_tags Ran
ran on a synthesized input
aonotas/deep-crf/deepcrf/evaluate.py
code served (permissive licence) · get_code("8a566a947be76493")
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 re

def replace_S_E_tags(tag_lists):

    def rep_func(tag):
        tag = re.sub('^S-', 'B-', tag)
        tag = re.sub('^E-', 'I-', tag)
        return tag
    return [[rep_func(tag) for tag in tags] for tags in tag_lists]


ARGS = {
    "tag_lists": [
        ["S-PER", "E-LOC", "O", "B-ORG"],
        ["S-MISC", "I-PER", "E-ORG", "O"],
        ["B-LOC", "S-PER", "O"]
    ]
}
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
replace_num Ran
ran on a synthesized input
aonotas/deep-crf/deepcrf/util.py
code served (permissive licence) · get_code("7d136b2eb9ab9707")
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 str. 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 re

pattern_num = re.compile('[0-9]')

def replace_num(text):
    return pattern_num.sub(u'0', text)

# The function takes a single parameter 'text' which should be a string
# It replaces all digits (0-9) with '0'

ARGS = {
    'text': 'Hello 123 World 456'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
uniq_tagset Ran
ran on a synthesized input
aonotas/deep-crf/deepcrf/evaluate.py
code served (permissive licence) · get_code("68a7276bb06e3bfd")
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, 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

torch.manual_seed(0)

# The function uniq_tagset processes a list of tag collections
# Each tag is a string that can be split by '-'
# It extracts the tag name (everything after the first '-')
# and builds a list of unique tag names

# alltags_list should be a list of collections of tag strings
# tag_names is a list that accumulates unique tag names

alltags_list = [
    ['POS-NOUN', 'POS-VERB', 'NEG-ADJ'],
    ['POS-NOUN', 'POS-ADV', 'NEG-VERB'],
    ['POS-ADVERB']
]

tag_names = []

ARGS = {
    'alltags_list': alltags_list,
    'tag_names': tag_names
}
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 list, ndim 1, dtype family float — a list 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
viterbi_decode Ran
ran on a synthesized input
epwalsh/pytorch-crf/pycrf/modules/crf.py
code served (permissive licence) · get_code("a76fada6d55d2d25")
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 sys

torch.manual_seed(0)

# Create a small tag sequence: (sequence_length=3, num_tags=4)
tag_sequence = torch.randn(3, 4)

# Create a transition matrix: (num_tags=4, num_tags=4)
transition_matrix = torch.randn(4, 4)

# Create tag observations: a list of length 3 with some -1 (unobserved) values
tag_observations = [0, -1, 2]

ARGS = {
    "tag_sequence": tag_sequence,
    "transition_matrix": transition_matrix,
    "tag_observations": tag_observations,
}
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 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

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 6 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 5 the same month, 3 later) and 18 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
get_logger 3 other papers
1 dated earlier, 1 the same month, 1 later
1509.02971 (2015-09)
Continuous control with deep reinforcement learning
1603.01360 (2016-03)
Neural Architectures for Named Entity Recognition
2024.findings-emnlp.944 (2024 (year only))
Multi-label Sequential Sentence Classification via Large Language Model
logsumexp 3 other papers
3 later
2021.emnlp-main.291 (2021 (year only))
A Fine-Grained Domain Adaption Model for Joint Word Segmentation and POS Tagging
2206.14774 (2022-06)
TweetNLP: Cutting-Edge Natural Language Processing for Social Media
2604.19335 (2026-04)
When Active Learning Falls Short: An Empirical Study on Chemical Reaction Extraction
get_vocabs 2 other papers
1 the same month, 1 later
1603.01360 (2016-03)
Neural Architectures for Named Entity Recognition
2010.12777 (2020-10)
Improving Multilingual Models with Language-Clustered Vocabularies
log_sum_exp 2 other papers
1 dated earlier, 1 the same month
1511.08308 (2015-11)
Named Entity Recognition with Bidirectional LSTM-CNNs
1603.01360 (2016-03)
Neural Architectures for Named Entity Recognition
align_data 1 other paper
1 the same month
1603.01360 (2016-03)
Neural Architectures for Named Entity Recognition
get_char_vocab 1 other paper
1 the same month
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

State-of-the-art sequence labeling systems traditionally require large amounts of task-specific knowledge in the form of hand-crafted features and data pre-processing. In this paper, we introduce a novel neutral network architecture that benefits from both word- and character-level representations automatically, by using combination of bidirectional LSTM, CNN and CRF. Our system is truly end-to-end, requiring no feature engineering or data pre-processing, thus making it applicable to a wide range of sequence labeling tasks. We evaluate our system on two data sets for two sequence labeling tasks --- Penn Treebank WSJ corpus for part-of-speech (POS) tagging and CoNLL 2003 corpus for named entity recognition (NER). We obtain state-of-the-art performance on both the two data --- 97.55\% accuracy for POS tagging and 91.21\% F1 for NER.

For agents

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

get_harvested_code_for_paper("1603.01354")
get_code_for_paper("1603.01354")
have("1603.01354")

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

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

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

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

Connect an agent — have() is free.