SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.15781 · EMNLP · 2023

Increasing Coverage and Precision of Textual Information in Multilingual Knowledge Graphs

Daniel Lee, Min Li, Yunyao Li, Simone Conia, Umar Minhas, Ihab Ilyas

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 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 0 have no contract verdict; 3 failures of our instrument; 1 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/2311.15781.json · badge: /api/ran/2311.15781.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
apple/ml-kge canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
FunctionStatusWhere it lives
normalize_value Ran
ran; our contract draft was wrong, not the code
apple/ml-kge/src/evaluation/evaluate_coverage.py
code served (permissive licence) · get_code("0501aeb16b4edb3c")
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

ARGS = {
    "value": "Hello WORLD 123!"
}
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
read_predictions Ran
ran; our contract draft was wrong, not the code
apple/ml-kge/src/evaluation/evaluate_coverage.py
code served (permissive licence) · get_code("7c669eba753b0ab5")
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 test data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.jsonl')
temp_path = temp_file.name

# Write test data in the expected format
test_data = [
    {'wikidata_id': 'Q1', 'values': [[0.9, 'Apple'], [0.7, 'Fruit']]},
    {'wikidata_id': 'Q2', 'values': [[0.8, 'Banana'], [0.5, 'Yellow']]},
    {'wikidata_id': 'Q3', 'values': [[0.3, 'Small']]},  # Below threshold
]

for line in test_data:
    temp_file.write(json.dumps(line) + '\n')

temp_file.close()

ARGS = {
    'input_path': temp_path,
    'threshold': 6,  # Threshold score; predictions with score >= 6 will be filtered
}
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
read_references Ran
ran; our contract draft was wrong, not the code
apple/ml-kge/src/evaluation/evaluate_coverage.py
code served (permissive licence) · get_code("b56a767746e6cccf")
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

def normalize_value(value: str) -> str:
    value = value.lower()
    value = ''.join([i for i in value if i.isalnum() or i == ' '])
    return value

def read_references(input_path: str) -> dict:
    data = {}
    with open(input_path) as f:
        for line in f:
            line = line.strip()
            if not line:
                continue
            line_data = json.loads(line)
            wikidata_id = line_data['wikidata_id']
            values = line_data['correct_values']
            values = [normalize_value(v) for v in values]
            values = set(values)
            if values:
                data[wikidata_id] = values
    return data

# Create a temporary file with test data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.jsonl')
try:
    # Write test data as JSONL
    test_records = [
        {'wikidata_id': 'Q123', 'correct_values': ['Value One', 'VALUE_TWO']},
        {'wikidata_id': 'Q456', 'correct_values': ['Another Value!', 'test@123']},
        {'wikidata_id': 'Q789', 'correct_values': []},  # Empty values should be filtered out
    ]
    
    for record in test_records:
        temp_file.write(json.dumps(record) + '\n')
    
    temp_file.close()
    
    ARGS = {
        'input_path': temp_file.name
    }
    
finally:
    pass
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
read_file Not yet run
unverified (harvested, no recorded run)
apple/ml-kge/src/evaluation/evaluate_precision.py
code served (permissive licence) · get_code("13b53a25d8f585b1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 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 4 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-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

Recent work in Natural Language Processing and Computer Vision has been using textual information -e.g., entity names and descriptions -available in knowledge graphs to ground neural models to high-quality structured data. However, when it comes to non-English languages, the quantity and quality of textual information are comparatively scarce. To address this issue, we introduce the novel task of automatic Knowledge Graph Enhancement (KGE) and perform a thorough investigation on bridging the gap in both the quantity and quality of textual information between English and non-English languages. More specifically, we: i) bring to light the problem of increasing multilingual coverage and precision of entity names and descriptions in Wikidata; ii) demonstrate that state-of-the-art methods, namely, Machine Translation (MT), Web Search (WS), and Large Language Models (LLMs), struggle with this task; iii) present M-NTA, a novel unsupervised approach that combines MT, WS, and LLMs to generate high-quality textual information; and, iv) study the impact of increasing multilingual coverage and precision of non-English textual information in Entity Linking, Knowledge Graph Completion, and Question Answering. As part of our effort towards better multilingual knowledge graphs, we also introduce WikiKGE-10, the first human-curated benchmark to evaluate KGE approaches in 10 languages across 7 language families.

For agents

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

get_harvested_code_for_paper("2311.15781")
get_code_for_paper("2311.15781")
have("2311.15781")

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

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

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

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

Connect an agent — have() is free.