SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1905.07790 · 2019

Correlation Coefficients and Semantic Textual Similarity

arXiv · PDF · Open in the Atlas

Code that ran

17 of 17 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, 1 violated it and 14 have no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1905.07790.json · badge: /api/ran/1905.07790.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
Babylonpartners/corrsim canonical (classifier label)
classifier basis: census
17 ran · 0 no recorded run
FunctionStatusWhere it lives
apsynp Ran
ran on a synthesized input
Babylonpartners/corrsim/evaluation/wordsim_eval.py
code served (permissive licence) · get_code("99387298d487188b")
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 numpy as np
from scipy.stats import rankdata

np.random.seed(0)

u = np.array([3.2, 1.5, 4.1, 2.8])
v = np.array([2.9, 1.8, 4.3, 2.5])

ARGS = {
    "u": u,
    "v": v
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
avg_cosine Ran
ran on a synthesized input
Babylonpartners/corrsim/similarity/baseline.py
code served (permissive licence) · get_code("b861377d2eb517b2")
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 float32, 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 numpy as np

# Create small word embedding lists for two sentences
# Each embedding is a vector in 4-dimensional space
# Sentence 1: 3 words
x = np.array([
    [0.1, 0.2, 0.3, 0.4],
    [0.5, 0.6, 0.7, 0.8],
    [0.2, 0.3, 0.4, 0.5]
], dtype=np.float32)

# Sentence 2: 2 words
y = np.array([
    [0.9, 0.8, 0.7, 0.6],
    [0.4, 0.5, 0.6, 0.7]
], dtype=np.float32)

ARGS = {
    "x": x,
    "y": y
}
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 float32, 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
batcher Ran
ran on a synthesized input
Babylonpartners/corrsim/evaluation/corrsim_eval.py
code served (permissive licence) · get_code("e51eada32278286d")
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 numpy as np

class ParamsStandIn:
    def __init__(self, word_vec, wvec_dim):
        self.word_vec = word_vec
        self.wvec_dim = wvec_dim

# Create a small word vector dictionary
word_vec = {
    'hello': np.array([0.1, 0.2, 0.3, 0.4]),
    'world': np.array([0.5, 0.6, 0.7, 0.8]),
    'foo': np.array([0.2, 0.3, 0.4, 0.5]),
}

params = ParamsStandIn(word_vec=word_vec, wvec_dim=4)

# Create a batch with some sentences (lists of words)
batch = [
    ['hello', 'world'],
    ['foo', 'bar'],
    [],
]

ARGS = {
    'params': params,
    'batch': batch,
}
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 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
centering_matrix Ran
ran on a synthesized input
Babylonpartners/corrsim/similarity/cka.py
code served (permissive licence) · get_code("fa07e3df6f41686e")
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

def centering_matrix(d):
    """
    Returns a centering matrix of dimension d
    :param d: dimension of the matrix
    :return: centering matrix of dimension d
    """
    return np.eye(d) - np.ones((d, d)) / d

ARGS = {
    "d": 4
}
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 (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
cosine Ran
ran, violated the contract we drafted
Babylonpartners/corrsim/senteval/utils.py
code served (permissive licence) · get_code("a2a8999f1b9ffa71")
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, 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 numpy as np

# The cosine function takes two vectors u and v
# It computes their dot product and divides by the product of their norms
# Both u and v should be array-like (numpy arrays or lists that work with np.dot, np.linalg.norm)

u = np.array([1.0, 2.0, 3.0, 4.0])
v = np.array([5.0, 6.0, 7.0, 8.0])

ARGS = {
    "u": u,
    "v": v,
}
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, 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
cosine Ran
ran on a synthesized input
Babylonpartners/corrsim/evaluation/wordsim_eval.py
code served (permissive licence) · get_code("f2117d4a4682efc4")
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 numpy as np

# Create small test vectors for cosine similarity
u = np.array([1.0, 2.0, 3.0, 4.0])
v = np.array([5.0, 6.0, 7.0, 8.0])

ARGS = {
    "u": u,
    "v": v
}
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 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
cosine Ran
ran on a synthesized input
Babylonpartners/corrsim/similarity/baseline.py
code served (permissive licence) · get_code("aac4af37868d65c4")
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

# Create two small numpy arrays for cosine similarity computation
x = np.array([1.0, 2.0, 3.0, 4.0])
y = np.array([5.0, 6.0, 7.0, 8.0])

ARGS = {
    "x": x,
    "y": y,
}
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
create_dictionary Ran
ran; our contract draft was wrong, not the code
Babylonpartners/corrsim/evaluation/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from facebookresearch/SentEval, is pointer only (licence: NOASSERTION) · get_code("af7388308de7ccb4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from facebookresearch/SentEval, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

create_dictionary Ran
ran; our contract draft was wrong, not the code
Babylonpartners/corrsim/senteval/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from yibin-lei/metaeol, is pointer only (licence: NONE) · get_code("292a7349c4da48f7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from yibin-lei/metaeol, and GitHub detected no licence in that repository 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.

gaussian_kernel Ran
ran on a synthesized input
Babylonpartners/corrsim/similarity/cka.py
code served (permissive licence) · get_code("8977dd7933a6415a")
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

# Create a small word embedding matrix X with shape (k x D)
# Using k=3 (number of embeddings) and D=4 (embedding dimension)
X = np.random.randn(3, 4).astype(np.float32)

ARGS = {
    "X": X,
    "sigma": None,
}
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 (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_word_vec_path_by_name Ran
ran on a synthesized input
Babylonpartners/corrsim/evaluation/utils.py
code served (permissive licence) · get_code("1bbd85a30996b26a")
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 torch.nn as nn

WORD_VEC_MAP = {'glove': 'glove.840B.300d.w2vformat.txt', 'word2vec': 'GoogleNews-vectors-negative300.txt', 'fasttext': 'fasttext-crawl-300d-2M.txt'}

def get_word_vec_path_by_name(word_vec_name):
    base_path = '../data/word_vectors/'
    return base_path + WORD_VEC_MAP[word_vec_name]

ARGS = {
    'word_vec_name': 'glove'
}
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 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_wordvec Ran
ran on a synthesized input
Babylonpartners/corrsim/evaluation/utils.py
code served (permissive licence) · get_code("11ea4bc76f49da9a")
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 io
import numpy as np
import logging
import tempfile
import os

# Configure logging
logging.basicConfig(level=logging.DEBUG)

# Create a temporary word vector file in word2vec format
temp_dir = tempfile.mkdtemp()
vec_file_path = os.path.join(temp_dir, "word_vectors.txt")

# Create sample word vectors
word_vectors_content = """3 2
apple 0.1 0.2 0.3
banana 0.4 0.5 0.6
cherry 0.7 0.8 0.9
"""

with open(vec_file_path, 'w', encoding='utf-8') as f:
    f.write(word_vectors_content)

# Create word2id dictionary
word2id = {
    'apple': 0,
    'banana': 1,
    'cherry': 2,
    'date': 3
}

ARGS = {
    'path_to_vec': vec_file_path,
    'word2id': word2id,
    'norm': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
kendall Ran
ran on a synthesized input
Babylonpartners/corrsim/similarity/correlation.py
code served (permissive licence) · get_code("9d895a661d2ba65a")
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
from scipy.stats import kendalltau

# Create two lists of word embeddings
# x: list of 3 word embeddings, each of dimension 4
x = [
    np.array([0.1, 0.2, 0.3, 0.4]),
    np.array([0.5, 0.6, 0.7, 0.8]),
    np.array([0.9, 1.0, 1.1, 1.2])
]

# y: list of 2 word embeddings, each of dimension 4
y = [
    np.array([0.2, 0.3, 0.4, 0.5]),
    np.array([0.6, 0.7, 0.8, 0.9])
]

ARGS = {
    'x': x,
    'y': y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
linear_kernel Ran
ran on a synthesized input
Babylonpartners/corrsim/similarity/cka.py
code served (permissive licence) · get_code("f25e776a0755a0b9")
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 (3, 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 word embedding matrix X with shape (k x D)
# where k is the number of words and D is the embedding dimension
# Using distinct dimensions: 5 words, 3-dimensional embeddings
X = np.random.randn(5, 3).astype(np.float32)

ARGS = {
    "X": X
}
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 (3, 3) — shape (3, 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
pearson Ran
ran on a synthesized input
Babylonpartners/corrsim/similarity/correlation.py
code served (permissive licence) · get_code("c37fc00aafe8b8aa")
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

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

# Create two small lists of word embeddings
# Each list contains 3 word embeddings of dimension 4
x = [
    np.array([0.1, 0.2, 0.3, 0.4]),
    np.array([0.2, 0.3, 0.4, 0.5]),
    np.array([0.3, 0.4, 0.5, 0.6])
]

y = [
    np.array([0.15, 0.25, 0.35, 0.45]),
    np.array([0.25, 0.35, 0.45, 0.55]),
    np.array([0.35, 0.45, 0.55, 0.65])
]

ARGS = {
    "x": x,
    "y": y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
spearman Ran
ran on a synthesized input
Babylonpartners/corrsim/similarity/correlation.py
code served (permissive licence) · get_code("c87a1937e68467a7")
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
from scipy.stats import spearmanr

# The function takes two parameters: x and y
# Looking at the function body:
# - x and y are expected to be lists/arrays of word embeddings
# - np.mean(x, axis=0) is called on x, so it should be array-like with shape (n_words, embedding_dim)
# - np.mean(y, axis=0) is called on y, so it should be array-like with shape (n_words, embedding_dim)
# - The means are then passed to spearmanr, which expects 1D arrays

# Create small sample word embeddings
# x: 3 words, 4-dimensional embeddings
x = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [2.0, 3.0, 4.0, 5.0],
    [3.0, 4.0, 5.0, 6.0]
])

# y: 2 words, 4-dimensional embeddings (different size to be distinct)
y = np.array([
    [1.5, 2.5, 3.5, 4.5],
    [2.5, 3.5, 4.5, 5.5]
])

ARGS = {
    "x": x,
    "y": y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
statistic Ran
ran on a synthesized input
Babylonpartners/corrsim/evaluation/wordsim_eval.py
code served (permissive licence) · get_code("c7303175aea94e30")
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
from scipy.stats import spearmanr, pearsonr, kendalltau, rankdata, shapiro

# The function expects data as a 2D array-like with shape (n_samples, 3)
# where column 0 is gold standard, column 1 is system_a, column 2 is system_b
np.random.seed(0)
data = np.random.randn(5, 3).astype(np.float64)

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 3 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 14 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
cosine 5 other papers
5 later
1909.13872 (2019-09)
Simple and Effective Paraphrastic Similarity from Parallel Translations
2104.15114 (2021-04)
Paraphrastic Representations at Scale
2211.06127 (2022-11)
English Contrastive Learning Can Learn Universal Cross-lingual Sentence Embeddings
and 2 more not named here
create_dictionary 4 other papers
4 dated earlier
1705.02364 (2017-05)
Supervised Learning of Universal Sentence Representations from Natural Language Inference Data
1803.05449 (2018-03)
SentEval: An Evaluation Toolkit for Universal Sentence Representations
1804.00079 (2018-04)
Learning General Purpose Distributed Sentence Representations via Large Scale Multi-task Learning
and 1 more not named here
create_dictionary 1 other paper
1 later
2402.18458 (2024-02)
Meta-Task Prompting Elicits Embeddings from Large Language Models

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

A large body of research into semantic textual similarity has focused on constructing state-of-the-art embeddings using sophisticated modelling, careful choice of learning signals and many clever tricks. By contrast, little attention has been devoted to similarity measures between these embeddings, with cosine similarity being used unquestionably in the majority of cases. In this work, we illustrate that for all common word vectors, cosine similarity is essentially equivalent to the Pearson correlation coefficient, which provides some justification for its use. We thoroughly characterise cases where Pearson correlation (and thus cosine similarity) is unfit as similarity measure. Importantly, we show that Pearson correlation is appropriate for some word vectors but not others. When it is not appropriate, we illustrate how common non-parametric rank correlation coefficients can be used instead to significantly improve performance. We support our analysis with a series of evaluations on word-level and sentence-level semantic textual similarity benchmarks. On the latter, we show that even the simplest averaged word vectors compared by rank correlation easily rival the strongest deep representations compared by cosine similarity.

For agents

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

get_harvested_code_for_paper("1905.07790")
get_code_for_paper("1905.07790")
have("1905.07790")

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

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

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

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

Connect an agent — have() is free.