SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1805.08661 · 2018

COCO-CN for Cross-Lingual Image Tagging, Captioning and Retrieval

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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 4 have no contract verdict; 0 failures of our instrument; 1 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/1805.08661.json · badge: /api/ran/1805.08661.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
li-xirong/coco-cn canonical (classifier label)
classifier basis: census
1 ran · 0 no recorded run
evanmiltenburg/COCO-CN-Results-Viewer community (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
FunctionStatusWhere it lives
build_vocab Ran
ran on a synthesized input
li-xirong/coco-cn/code/coco-cn_caption/preprocess/build_vocab.py
code served (permissive licence) · get_code("8fbc0f6ed6ec8c3c")
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 Vocabulary. 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 json
import tempfile
import os

# Create a temporary JSON file with the expected dataset structure
temp_dir = tempfile.mkdtemp()
dataset_json_path = os.path.join(temp_dir, "dataset.json")

# Create a minimal valid dataset structure
dataset = {
    "images": [
        {
            "sentences": [
                {"tokens": ["hello", "world", "cat"]},
                {"tokens": ["the", "dog", "runs"]},
                {"tokens": ["hello", "cat", "and", "dog"]}
            ]
        },
        {
            "sentences": [
                {"tokens": ["bird", "flies", "high"]},
                {"tokens": ["hello", "world"]}
            ]
        }
    ]
}

# Write the dataset to the temporary file
with open(dataset_json_path, 'w') as f:
    f.write(json.dumps(dataset))

# Define arguments for build_vocab
ARGS = {
    "dataset_json_path": dataset_json_path,
    "threshold": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Vocabulary — a Vocabulary output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Vocabulary 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_scores_subdict Ran
ran on a synthesized input
evanmiltenburg/COCO-CN-Results-Viewer/resultsviewer.py
code served (permissive licence) · get_code("46e2847b324c87af")
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 torch

torch.manual_seed(0)

# The function extracts specific metric keys from a dictionary
# It expects a dict 'd' that contains at least the keys: 'CIDEr', 'Bleu_4', 'Bleu_3', 'Bleu_2', 'Bleu_1', 'ROUGE_L', 'METEOR'

d = {
    'CIDEr': 0.85,
    'Bleu_4': 0.42,
    'Bleu_3': 0.52,
    'Bleu_2': 0.63,
    'Bleu_1': 0.71,
    'ROUGE_L': 0.68,
    'METEOR': 0.38,
    'other_metric': 0.99,  # This should be excluded from the result
}

ARGS = {
    'd': d,
}
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 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
load_system_output Ran
ran on a synthesized input
evanmiltenburg/COCO-CN-Results-Viewer/resultsviewer.py
code served (permissive licence) · get_code("e30e9414a050c08a")
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 json
import tempfile
import os

# Create a temporary file with the expected JSON structure
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "system_output.json")

system_data = {
    "imgToEval": {
        "img1": {
            "caption": [
                {"caption": "A cat sitting on a mat"}
            ]
        },
        "img2": {
            "caption": [
                {"caption": "A dog running in the park"}
            ]
        },
        "img3": {
            "caption": [
                {"caption": "A bird flying in the sky"}
            ]
        }
    }
}

with open(temp_file, 'w') as f:
    json.dump(system_data, f)

ARGS = {
    "filename": temp_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 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
load_system_scores Ran
ran on a synthesized input
evanmiltenburg/COCO-CN-Results-Viewer/resultsviewer.py
code served (permissive licence) · get_code("c7d134d9d48e77f7")
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 json
import tempfile
import os

# Create a temporary JSON file with the expected structure
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "scores.json")

# Create sample data matching the expected structure
sample_data = {
    "imgToEval": {
        "img_001": {
            "CIDEr": 0.85,
            "Bleu_4": 0.72,
            "Bleu_3": 0.78,
            "Bleu_2": 0.82,
            "Bleu_1": 0.88,
            "ROUGE_L": 0.81,
            "METEOR": 0.79,
            "other_metric": 0.99  # This should be filtered out
        },
        "img_002": {
            "CIDEr": 0.90,
            "Bleu_4": 0.75,
            "Bleu_3": 0.80,
            "Bleu_2": 0.85,
            "Bleu_1": 0.91,
            "ROUGE_L": 0.84,
            "METEOR": 0.82,
            "extra_field": 0.50
        }
    }
}

with open(temp_file, 'w') as f:
    json.dump(sample_data, f)

ARGS = {
    "filename": temp_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 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
get_url_list Not yet run
unverified (harvested, no recorded run)
evanmiltenburg/COCO-CN-Results-Viewer/download_images.py
code served (permissive licence) · get_code("24ac8fe6879d7dc4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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

This paper contributes to cross-lingual image annotation and retrieval in terms of data and baseline methods. We propose COCO-CN, a novel dataset enriching MS-COCO with manually written Chinese sentences and tags. For more effective annotation acquisition, we develop a recommendation-assisted collective annotation system, automatically providing an annotator with several tags and sentences deemed to be relevant with respect to the pictorial content. Having 20,342 images annotated with 27,218 Chinese sentences and 70,993 tags, COCO-CN is currently the largest Chinese-English dataset that provides a unified and challenging platform for cross-lingual image tagging, captioning and retrieval. We develop conceptually simple yet effective methods per task for learning from cross-lingual resources. Extensive experiments on the three tasks justify the viability of the proposed dataset and methods. Data and code are publicly available at https://github.com/li-xirong/coco-cn

For agents

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

get_harvested_code_for_paper("1805.08661")
get_code_for_paper("1805.08661")
have("1805.08661")

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

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

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

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

Connect an agent — have() is free.