SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1803.11175 · 2018

Universal Sentence Encoder

arXiv · PDF · Open in the Atlas

Code that ran

18 of 22 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 16 have no contract verdict; 2 failures of our instrument; 4 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/1803.11175.json · badge: /api/ran/1803.11175.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
MirkoLenz/ReCAP-Argument-Graph-Retrieval community (classifier label)
classifier basis not recorded on the link
8 ran · 0 no recorded run
ceshine/textrank_summary_benchmark community (classifier label)
classifier basis not recorded on the link
5 ran · 1 no recorded run
idanmoradarthas/text-summarization community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
martinomensio/spacy-universal-sentence-encoder community (classifier label)
classifier basis not recorded on the link
1 ran · 1 no recorded run
contemn1/sentence_embeddings reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
TAUSBV/sentence-level-domain-classification community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
pathway/crosslang_embed community (classifier label)
classifier basis not recorded on the link
0 ran · 1 no recorded run
FunctionStatusWhere it lives
bm25pluseps_weights Ran
ran on a synthesized input
ceshine/textrank_summary_benchmark/bm25.py
code served (permissive licence) · get_code("062a676fc76590b0")
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 math

# The function bm25pluseps_weights takes:
# - docs: a list of documents, where each document is a list of words (strings)
# - eps: epsilon parameter (float)

# Create small sample documents with string tokens
docs = [
    ["apple", "banana", "apple"],
    ["banana", "cherry"],
    ["apple", "cherry", "date"],
    ["date", "elderberry"]
]

eps = 0.25

ARGS = {
    "docs": docs,
    "eps": eps
}
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
compute_pc Ran
ran on a synthesized input
MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/libs/sif.py
code served (permissive licence) · get_code("be6a5a54256a2e48")
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 ndarray, ndim 2, dtype family float, shape (2, 3) 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 numpy as np

# Create a small data matrix X with shape (n_samples, n_features)
# Using distinct dimensions: 5 samples, 3 features
np.random.seed(0)
X = np.random.randn(5, 3)

# Number of principal components to compute
npc = 2

ARGS = {
    "X": X,
    "npc": npc,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
cosine_similarity Ran
ran on a synthesized input
ceshine/textrank_summary_benchmark/textrank_use.py
code served (permissive licence) · get_code("09459e7e459b59bb")
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 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

torch.manual_seed(0)

# Create a small similarity matrix (4x3 for distinct dimensions)
similarity_matrix = torch.randn(4, 3)

# Define indices to access the matrix
id_1 = 0
id_2 = 1

ARGS = {
    "similarity_matrix": similarity_matrix,
    "id_1": id_1,
    "id_2": id_2,
}
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 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
cum_gain Ran
ran on a synthesized input
MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/libs/ndcg.py
code served (permissive licence) · get_code("57ed8fb06d18eb28")
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 float64, ndim 0, 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 numpy as np

# The function expects:
# - relevance: a sequence or numpy array of graded relevances

# Looking at the function body:
# - It checks if relevance is None or has length < 1
# - It converts to numpy array and sums it
# - So we need a sequence or array of numeric values

ARGS = {
    "relevance": np.array([0.8, 0.6, 0.9, 0.3, 0.7])
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
dcg Ran
ran on a synthesized input
MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/libs/ndcg.py
code served (permissive licence) · get_code("b21be746b7a81ea3")
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 float64, ndim 0, 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 numpy as np

# The function dcg takes:
# 1. relevance: a sequence or numpy array of graded relevances
# 2. alternate: a boolean flag for scoring method

# Create a small relevance array with some graded relevance scores
relevance = np.array([3, 2, 3, 0, 1, 2])

# Create the ARGS dict
ARGS = {
    'relevance': relevance,
    'alternate': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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_sentence_embeddings Ran
ran on a synthesized input
ceshine/textrank_summary_benchmark/textrank_use.py
code served (permissive licence) · get_code("bdc6f530892a2385")
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 ndarray, ndim 2, dtype family float, shape (4, 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 numpy as np
import tensorflow as tf

# Create a minimal sentence-like object with a .text attribute
class MockSentence:
    def __init__(self, text):
        self.text = text

# Create a minimal mock TensorFlow session
class MockSession:
    def run(self, output_tensor, feed_dict):
        # Return a small numpy array with shape (batch_size, embedding_dim)
        batch_size = len(feed_dict[list(feed_dict.keys())[0]])
        return np.random.randn(batch_size, 4).astype(np.float32)

# Create mock tensors (placeholders in TensorFlow terminology)
class MockTensor:
    pass

# Set up the arguments
session = MockSession()

# Create a list of mock sentences with .text attributes
sentences = [
    MockSentence("hello world"),
    MockSentence("foo bar"),
    MockSentence("test sentence"),
    MockSentence("another text"),
]

# Create mock input and output tensors
sentence_input = MockTensor()
sentence_emb = MockTensor()

batch_size = 2

ARGS = {
    "session": session,
    "sentences": sentences,
    "sentence_input": sentence_input,
    "sentence_emb": sentence_emb,
    "batch_size": batch_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 4) — shape (4, 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
get_text_from_nodes Ran
ran on a synthesized input
MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/models/graph.py
code served (permissive licence) · get_code("c04bf5d2161ebd3d")
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 numpy as np
from dataclasses import dataclass, field
from typing import Dict, List

@dataclass
class Node(object):
    """Class for storing node objects in graph contexts"""
    id_: int
    text: str
    type_: str
    vector: np.ndarray = field(init=False)
    vectors: List[np.ndarray] = field(init=False)
    tokens: List[str] = field(init=False)

# Create sample nodes
node1 = Node(id_=1, text="hello world", type_="word")
node2 = Node(id_=2, text="foo bar", type_="phrase")
node3 = Node(id_=3, text="test", type_="token")

# Create nodes dictionary
nodes_dict = {
    1: node1,
    2: node2,
    3: node3
}

ARGS = {
    "nodes": nodes_dict
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
get_weighted_average Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/libs/sif.py
code served (permissive licence) · get_code("49ed3a1011829d57")
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 ndarray, 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 numpy as np

# Create small example data
# We: word embedding matrix, shape (vocab_size, embedding_dim)
# Let's use vocab_size=5, embedding_dim=4
We = np.random.randn(5, 4).astype(np.float32)

# x: indices of words in sentences, shape (n_samples, max_sentence_length)
# Let's use n_samples=2, max_sentence_length=3
x = np.array([[0, 1, 2],
              [3, 4, 1]], dtype=np.int32)

# w: weights for words in sentences, shape (n_samples, max_sentence_length)
# Same shape as x
w = np.array([[1.0, 1.0, 1.0],
              [0.5, 1.0, 0.0]], dtype=np.float32)

ARGS = {
    "We": We,
    "x": x,
    "w": w
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, 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
head Ran
ran on a synthesized input
ceshine/textrank_summary_benchmark/baselines.py
code served (permissive licence) · get_code("a720718390092b01")
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

# The function 'head' takes sentences (a sequence) and ratio (a number)
# It calculates a length based on max(len(sentences) * ratio, 1)
# Then returns sentences[:int(length)]
# 
# sentences needs to be indexable and have a len()
# ratio needs to be a number that can be multiplied

# Create a list of sentences (strings work as stand-ins)
sentences = ["Hello world", "This is a test", "Another sentence", "Fourth sentence"]

# Create a ratio value between 0 and 1
ratio = 0.5

ARGS = {
    "sentences": sentences,
    "ratio": ratio
}
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
idcg Ran
ran on a synthesized input
MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/libs/ndcg.py
code served (permissive licence) · get_code("d8a18a7be265eaa8")
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 float64, ndim 0, 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 numpy as np

# The function idcg takes two parameters: relevance and alternate
# relevance: can be a sequence or numpy array of graded relevances
# alternate: a boolean flag for scoring method

# Create a small relevance array - these are graded relevance scores
# Using distinct values to make the computation clear
relevance_scores = np.array([3, 2, 3, 0, 1, 2])

ARGS = {
    "relevance": relevance_scores,
    "alternate": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
pad_array Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
contemn1/sentence_embeddings/encode_sentences.py
pointer only (licence: NONE) · get_code("374645eab129b0a7")
How it ran

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

random Ran
ran on a synthesized input
ceshine/textrank_summary_benchmark/baselines.py
code served (permissive licence) · get_code("06039e3720a58652")
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 ndarray, ndim 1, dtype family float, shape (3,) 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 numpy as np

# Set seed for reproducibility
np.random.seed(0)

# Create a list of sentences (strings)
sentences = [
    "The quick brown fox",
    "jumps over the lazy dog",
    "Python is awesome",
    "Machine learning is fun",
    "Natural language processing",
]

# Define a ratio for sampling
ratio = 0.6

ARGS = {
    "sentences": sentences,
    "ratio": ratio,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (3,) — shape (3,) 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_file Ran
ran on a synthesized input
TAUSBV/sentence-level-domain-classification/src/utils.py
code served (permissive licence) · get_code("46df1f9c4f68b7a2")
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 tempfile
import os

# Create a temporary file with some test content
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("line 1\n")
temp_file.write("line 2\n")
temp_file.write("\n")
temp_file.write("line 3\n")
temp_file.write("\n\n")
temp_file.write("line 4\n")
temp_file.close()

ARGS = {
    'filename': temp_file.name
}
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
remove_pc Ran
ran on a synthesized input
MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/libs/sif.py
code served (permissive licence) · get_code("17f9e35850be5bb0")
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 ndarray, 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 numpy as np
from sklearn.decomposition import TruncatedSVD

# Create a small numpy array for testing
# X[i,:] is a data point, so shape (n_samples, n_features)
X = np.random.randn(2, 4)

# Number of principal components to remove
npc = 1

# Define ARGS dict mapping all parameters
ARGS = {
    "X": X,
    "npc": npc
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, 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
sentence_pairing Ran
ran on a synthesized input
idanmoradarthas/text-summarization/sentence_handler.py
code served (permissive licence) · get_code("718cc353bcf17057")
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 DataFrame. 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 pandas
from typing import List

# Construct a valid list of sentences for the sentence_pairing function
sentences = [
    "The quick brown fox",
    "jumps over the lazy dog",
    "The quick brown fox",
    "hello world",
    "jumps over the lazy dog"
]

ARGS = {
    "sentences": sentences
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
sentence_sorter Ran
ran on a synthesized input
idanmoradarthas/text-summarization/sentence_handler.py
code served (permissive licence) · get_code("cf60b388c921a1ae")
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 pandas
from typing import List

# Create a sample DataFrame with sentence and rank columns
df = pandas.DataFrame({
    'sentence': [
        'This is the first sentence.',
        'This is the second sentence.',
        'This is the third sentence.',
        'This is the fourth sentence.',
        'This is the fifth sentence.'
    ],
    'rank': [3, 5, 1, 4, 2]
})

# Define top_n as 3 (we want the top 3 sentences)
top_n = 3

# Define the original sentences list in order
sentences = [
    'This is the first sentence.',
    'This is the second sentence.',
    'This is the third sentence.',
    'This is the fourth sentence.',
    'This is the fifth sentence.'
]

ARGS = {
    'df': df,
    'top_n': top_n,
    'sentences': sentences
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
set_hooks Ran
ran on a synthesized input
martinomensio/spacy-universal-sentence-encoder/spacy_universal_sentence_encoder/language.py
code served (permissive licence) · get_code("bbef9b2638430ee8")
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 MockDoc. 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

class MockExtension:
    """Mock spaCy extension attribute"""
    def __init__(self):
        self.universal_sentence_encoding = torch.randn(4)

class MockToken:
    """Mock spaCy Token with extension"""
    def __init__(self):
        self._ = MockExtension()

class MockSpan:
    """Mock spaCy Span with extension"""
    def __init__(self):
        self._ = MockExtension()

class MockDoc:
    """Mock spaCy Doc object with user hooks"""
    def __init__(self):
        self._ = MockExtension()
        self.user_hooks = {}
        self.user_span_hooks = {}
        self.user_token_hooks = {}

ARGS = {
    'doc': MockDoc()
}
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 MockDoc — a MockDoc output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockDoc 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
tex_tab Ran
ran on a synthesized input
MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/cli/texify.py
code served (permissive licence) · get_code("4ad5869bd60d549c")
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 torch
import numpy as np

torch.manual_seed(0)

# The function tex_tab takes results_list and joins them with ' & ' separator
# It expects results_list to be an iterable of strings
results_list = ['0.95', '0.87', '0.92', '0.88']

ARGS = {
    'results_list': results_list
}
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 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_lang Not yet run
unverified (harvested, no recorded run)
martinomensio/spacy-universal-sentence-encoder/spacy_universal_sentence_encoder/util.py
code served (permissive licence) · get_code("c8560729712489aa")
How it ran

no invocation recorded.

embed_text Not yet run
unverified (harvested, no recorded run)
pathway/crosslang_embed/crosslang_embed.py
code served (permissive licence) · get_code("dc19d36ff15c170e")
How it ran

no invocation recorded.

sentence_rank_with_page_rank Not yet run
unverified (harvested, no recorded run)
idanmoradarthas/text-summarization/sentence_handler.py
code served (permissive licence) · get_code("339439151f9ebe35")
How it ran

no invocation recorded.

setence_embeddings_similarity_factory Not yet run
unverified (harvested, no recorded run)
ceshine/textrank_summary_benchmark/similarity_functions.py
code served (permissive licence) · get_code("82e73a7356e05547")
How it ran

no invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 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 21 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_weighted_average 1 other paper
1 later
2608.16972 (2026-08)
MultiSigBERT: Beyond Survival Analysis through Multimodal and Sequential Modeling in Oncology

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

We present models for encoding sentences into embedding vectors that specifically target transfer learning to other NLP tasks. The models are efficient and result in accurate performance on diverse transfer tasks. Two variants of the encoding models allow for trade-offs between accuracy and compute resources. For both variants, we investigate and report the relationship between model complexity, resource consumption, the availability of transfer task training data, and task performance. Comparisons are made with baselines that use word level transfer learning via pretrained word embeddings as well as baselines do not use any transfer learning. We find that transfer learning using sentence embeddings tends to outperform word level transfer. With transfer learning via sentence embeddings, we observe surprisingly good performance with minimal amounts of supervised training data for a transfer task. We obtain encouraging results on Word Embedding Association Tests (WEAT) targeted at detecting model bias. Our pre-trained sentence encoding models are made freely available for download and on TF Hub.

For agents

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

get_harvested_code_for_paper("1803.11175")
get_code_for_paper("1803.11175")
have("1803.11175")

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

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

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

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

Connect an agent — have() is free.