SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2021.emnlp-main.438 · EMNLP · 2021

Extracting Material Property Measurement Data from Scientific Articles

Emily Saldanha, Gihan Panapitiya, Fred Parks, Jonathan Sepulveda

Code that ran

6 of 8 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; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 3 failures of our instrument; 2 no recorded run), measured 2026-11-24; 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/2021.emnlp-main.438.json · badge: /api/ran/2021.emnlp-main.438.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
lavis-nlp/spert canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
create_directories_dir Ran
ran; our contract draft was wrong, not the code
lavis-nlp/spert/spert/util.py
code served (permissive licence) · get_code("6f7e402bf2d503c6")
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 os
import tempfile

def create_directories_dir(d):
    if d and (not os.path.exists(d)):
        os.makedirs(d)
    return d

# Create a temporary directory path that doesn't exist yet
temp_base = tempfile.gettempdir()
test_dir = os.path.join(temp_base, "test_create_dir_12345")

# Clean up if it somehow exists from a previous run
if os.path.exists(test_dir):
    import shutil
    shutil.rmtree(test_dir)

ARGS = {
    "d": test_dir
}
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
create_directories_file Ran
ran; our contract draft was wrong, not the code
lavis-nlp/spert/spert/util.py
code served (permissive licence) · get_code("e027b954ff8541cc")
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 os
import tempfile

def create_directories_file(f):
    d = os.path.dirname(f)
    if d and (not os.path.exists(d)):
        os.makedirs(d)
    return f

# Create a temporary directory to work within
temp_dir = tempfile.mkdtemp()

# Define test file path with nested directories that don't exist yet
test_file_path = os.path.join(temp_dir, "subdir1", "subdir2", "test_file.txt")

ARGS = {
    "f": test_file_path
}
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
create_entity_mask Ran
ran on a synthesized input
lavis-nlp/spert/spert/sampling.py
code served (permissive licence) · get_code("19ab7248ae340bd5")
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 1, dtype family float, shape (10,) 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)

ARGS = {
    "start": 2,
    "end": 5,
    "context_size": 10
}
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 1, dtype family float, shape (10,) — shape (10,) 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_token Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lavis-nlp/spert/spert/models.py
code served (permissive licence) · get_code("8719fdf7a36ac239")
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)

# h: embedding tensor of shape (batch, seq_len, emb_size)
# x: token indices tensor of shape (batch, seq_len)
# token: integer token id to filter for

h = torch.randn(2, 3, 4)  # batch=2, seq_len=3, emb_size=4
x = torch.tensor([[101, 102, 103], [101, 104, 105]])  # batch=2, seq_len=3
token = 101  # token id to extract

ARGS = {
    "h": h,
    "x": x,
    "token": token
}
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
read_csv Ran
ran on a synthesized input
lavis-nlp/spert/spert/util.py
code served (permissive licence) · get_code("f4e60f9a2915d0bb")
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 tempfile
import os
import csv as csv_module

# Create a temporary CSV file with test data
temp_dir = tempfile.gettempdir()
test_csv_path = os.path.join(temp_dir, 'test_data.csv')

# Write test CSV data
with open(test_csv_path, 'w') as f:
    writer = csv_module.writer(f, delimiter=';', quotechar='|', quoting=csv_module.QUOTE_MINIMAL)
    writer.writerow(['header1', 'header2', 'header3'])
    writer.writerow(['data1', 'data2', 'data3'])
    writer.writerow(['data4', 'data5', 'data6'])

ARGS = {
    'file_path': test_csv_path
}
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
remove_overlapping Ran
ran on a synthesized input
lavis-nlp/spert/spert/prediction.py
code served (permissive licence) · get_code("f282b4214b584edb")
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

# Analyze the function:
# - remove_overlapping takes entities and relations
# - entities is iterated over and checked for overlap
# - Each entity is compared with others using _check_overlap
# - _check_overlap expects e1 and e2 to have indexing: e1[0], e1[1], e2[0], e2[1]
# - relations is iterated over, each rel has rel[0] and rel[1] which are entities
# - So entities and relations contain tuples/lists with at least 2 elements (start, end positions)

# Create sample entities as tuples (start, end)
# Non-overlapping: (0, 2) and (5, 7) don't overlap
# Overlapping examples: (0, 5) and (3, 8) overlap

entities = [
    (0, 2),      # entity 1
    (5, 7),      # entity 2 - non-overlapping with entity 1
    (10, 12),    # entity 3 - non-overlapping with others
]

# Create relations as tuples of two entities
# A relation is (entity1, entity2)
relations = [
    ((0, 2), (5, 7)),      # relation between non-overlapping entities
    ((5, 7), (10, 12)),    # another relation between non-overlapping entities
]

ARGS = {
    "entities": entities,
    "relations": relations,
}
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
create_eval_sample Not yet run
unverified (harvested, no recorded run)
lavis-nlp/spert/spert/sampling.py
code served (permissive licence) · get_code("fc003cef550482fb")
How it ran

no invocation recorded.

create_train_sample Not yet run
unverified (harvested, no recorded run)
lavis-nlp/spert/spert/sampling.py
code served (permissive licence) · get_code("c55eea84b7d51aed")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 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
create_directories_dir 1 other paper
1 later
2404.12788 (2024-04)
REXEL: An End-to-end Model for Document-Level Relation Extraction and Entity Linking
create_directories_file 1 other paper
1 later
2404.12788 (2024-04)
REXEL: An End-to-end Model for Document-Level Relation Extraction and Entity Linking
get_token 1 other paper
1 same year, order not determinable
2105.13456 (2021-05)
Joint Biomedical Entity and Relation Extraction with Knowledge-Enhanced Collective Inference

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

Repositories linked to this paper

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

Abstract

Machine learning-based prediction of material properties is often hampered by the lack of sufficiently large training datasets. The majority of such measurement data is embedded in scientific literature and the ability to automatically extract these data is essential to support the development of reliable property prediction methods. In this work, we describe a methodology for an automatic property extraction framework using material solubility as the target property. We create an annotated dataset containing tags for solubility-related entities using a combination of regular expressions and manual tagging. We then compare five entity recognition models leveraging both token-level and span-level architectures on the task of classifying solute names, solubility values, and solubility units. Additionally, we explore a novel pretraining approach that leverages automated chemical name and quantity extraction tools to generate large datasets that do not rely on intensive manual effort. Finally, we perform an analysis to identify the causes of classification errors.

For agents

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

get_harvested_code_for_paper("2021.emnlp-main.438")
get_code_for_paper("2021.emnlp-main.438")
have("2021.emnlp-main.438")

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

curl https://syntology.ai/api/ran/2021.emnlp-main.438.json

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

[![Syntology run record](https://syntology.ai/api/ran/2021.emnlp-main.438.svg)](https://syntology.ai/paper/2021.emnlp-main.438)

Connect an agent — have() is free.