SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.00008 · IJCAI · 2024

KnowledgeHub: An End-to-End Tool for Assisted Scientific Discovery

Movina Moses, Mohab Elkaref, James Barry, Shinnosuke Tanaka, Vishnudev Kuruvanthodi, Nathan Herr, Geeth De Mel, Ibm Europe, Maxwell Giammona

arXiv · PDF · Open in the Atlas

Code that ran

8 of 11 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, 2 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/2406.00008.json · badge: /api/ran/2406.00008.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
kermitt2/grobid canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
pallets/flask canonical (classifier label)
classifier basis: census
2 ran · 3 no recorded run
FunctionStatusWhere it lives
extract_notes_from_file Ran
ran; our contract draft was wrong, not the code
kermitt2/grobid/grobid-trainer/resources/dataset/segmentation/article/light/corpus/tei/analyze_notes.py
code served (permissive licence) · get_code("f1c2d2ed704ee037")
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 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 xml.etree.ElementTree as ET
import tempfile
import os

# Create a temporary TEI XML file with headnotes and footnotes
xml_content = '''<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
  <text>
    <body>
      <note place="headnote">
        <p>This is a headnote about the text.</p>
        <lb/>
        <p>It contains multiple lines.</p>
      </note>
      <note place="footnote">
        <p>This is a footnote with additional information.</p>
      </note>
      <note place="headnote">
        <p>Another headnote for reference.</p>
      </note>
      <note place="footnote">
        <p>Second footnote with more details.</p>
        <lb/>
        <p>Continued on next line.</p>
      </note>
      <note place="other">
        <p>This note should be ignored.</p>
      </note>
    </body>
  </text>
</TEI>
'''

# Write the XML to a temporary file
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.xml', delete=False)
temp_file.write(xml_content)
temp_file.close()

file_path = temp_file.name

# Define ARGS dict with the file_path parameter
ARGS = {
    'file_path': file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, 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
extract_notes_with_context Ran
ran; our contract draft was wrong, not the code
kermitt2/grobid/grobid-trainer/resources/dataset/segmentation/article/light/corpus/tei/detailed_analysis.py
code served (permissive licence) · get_code("aad2dd9c73594608")
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 TEI XML file with headnote and footnote examples
temp_dir = tempfile.mkdtemp()
xml_file_path = os.path.join(temp_dir, "test.xml")

xml_content = """<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
  <text>
    <body>
      <div>
        <p>Some text here</p>
        <note place="headnote">This is a headnote with <emph>emphasis</emph></note>
        <p>More text</p>
        <note place="footnote">This is a footnote with <ref>reference</ref></note>
        <p>Final text</p>
      </div>
    </body>
  </text>
</TEI>"""

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

ARGS = {
    'file_path': xml_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
find_meaningful_matches Ran
ran; our contract draft was wrong, not the code
kermitt2/grobid/grobid-trainer/resources/dataset/segmentation/article/light/corpus/tei/detailed_analysis.py
code served (permissive licence) · get_code("778ca7dac99a1b9a")
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 re
import difflib

# Create sample headnotes with content
headnotes = [
    {
        'content': 'This is a meaningful headnote about contract law and obligations',
        'id': 'hn1'
    },
    {
        'content': 'Constitutional rights and due process considerations',
        'id': 'hn2'
    },
    {
        'content': 'Property   transfer    and    ownership rights',
        'id': 'hn3'
    },
    {
        'content': 'x',  # Too short, will be filtered
        'id': 'hn4'
    }
]

# Create sample footnotes with content
footnotes = [
    {
        'content': 'This is a meaningful headnote about contract law and obligations',
        'id': 'fn1'
    },
    {
        'content': 'Constitutional rights and due process considerations',
        'id': 'fn2'
    },
    {
        'content': 'Property transfer and ownership rights',
        'id': 'fn3'
    },
    {
        'content': 'Tort liability and negligence standards in common law',
        'id': 'fn4'
    },
    {
        'content': 'y',  # Too short, will be filtered
        'id': 'fn5'
    }
]

ARGS = {
    'headnotes': headnotes,
    'footnotes': footnotes,
    'threshold': 0.9
}
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
find_similar_content Ran
ran; our contract draft was wrong, not the code
kermitt2/grobid/grobid-trainer/resources/dataset/segmentation/article/light/corpus/tei/analyze_notes.py
code served (permissive licence) · get_code("e0266593a34937b3")
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 re
import difflib

def normalize_text(text):
    """Normalize text for comparison by removing extra whitespace and standardizing"""
    text = re.sub('\\s+', ' ', text)
    text = text.strip()
    return text

def find_similar_content(list1, list2, threshold=0.8):
    """Find similar content between two lists using difflib similarity ratio"""
    matches = []
    for item1 in list1:
        norm1 = normalize_text(item1)
        for item2 in list2:
            norm2 = normalize_text(item2)
            if len(norm1) > 10 and len(norm2) > 10:
                similarity = difflib.SequenceMatcher(None, norm1, norm2).ratio()
                if similarity >= threshold:
                    matches.append((item1, item2, similarity))
    return matches

ARGS = {
    "list1": [
        "The quick brown fox jumps over the lazy dog",
        "Machine learning is a subset of artificial intelligence",
        "Python is a popular programming language for data science"
    ],
    "list2": [
        "The quick brown fox jumps over a lazy dog",
        "Machine learning is a branch of artificial intelligence",
        "Java is another popular programming language"
    ],
    "threshold": 0.75
}
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
get_load_dotenv Ran
ran, violated the contract we drafted
pallets/flask/src/flask/helpers.py
code served (permissive licence) · get_code("fd6e58cb31c7aaac")
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 bool, 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 os

# Clear any existing FLASK_SKIP_DOTENV environment variable to test the function
if 'FLASK_SKIP_DOTENV' in os.environ:
    del os.environ['FLASK_SKIP_DOTENV']

def get_load_dotenv(default: bool=True) -> bool:
    """Get whether the user has disabled loading default dotenv files by
    setting :envvar:`FLASK_SKIP_DOTENV`. The default is ``True``, load
    the files.

    :param default: What to return if the env var isn't set.
    """
    val = os.environ.get('FLASK_SKIP_DOTENV')
    if not val:
        return default
    return val.lower() in ('0', 'false', 'no')

ARGS = {
    'default': True
}
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 bool, 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
has_level_handler Ran
ran, violated the contract we drafted
pallets/flask/src/flask/logging.py
code served (permissive licence) · get_code("350bacaad3c6d13f")
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 bool, 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 logging

# Create a logger with a specific configuration
logger = logging.getLogger("test_logger")

# Create a handler with a specific level
handler = logging.StreamHandler()
handler.setLevel(logging.INFO)

# Add the handler to the logger
logger.addHandler(handler)

# Set the logger's level
logger.setLevel(logging.DEBUG)

ARGS = {
    "logger": logger
}
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 bool, 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
normalize_text Ran
ran; our contract draft was wrong, not the code
kermitt2/grobid/grobid-trainer/resources/dataset/segmentation/article/light/corpus/tei/analyze_notes.py
code served (permissive licence) · get_code("354d9000bf5db282")
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 re

def normalize_text(text):
    """Normalize text for comparison by removing extra whitespace and standardizing"""
    text = re.sub('\\s+', ' ', text)
    text = text.strip()
    return text

ARGS = {
    "text": "  hello   world  \n  test  "
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_text Ran
ran; our contract draft was wrong, not the code
kermitt2/grobid/grobid-trainer/resources/dataset/segmentation/article/light/corpus/tei/detailed_analysis.py
code served (permissive licence) · get_code("b906150b79481c79")
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 re

def normalize_text(text):
    """Normalize text for comparison by removing extra whitespace and standardizing"""
    text = re.sub('\\s+', ' ', text)
    text = text.strip()
    return text.lower()

ARGS = {
    'text': '  Hello   World  \n  This  is   a   TEST  '
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
copy_current_request_context Not yet run
unverified (harvested, no recorded run)
pallets/flask/src/flask/ctx.py
code served (permissive licence) · get_code("49bdf356790b18d9")
How it ran

no invocation recorded.

stream_with_context Not yet run
unverified (harvested, no recorded run)
pallets/flask/src/flask/helpers.py
code served (permissive licence) · get_code("fe553530b7388d89")
How it ran

no invocation recorded.

url_for Not yet run
unverified (harvested, no recorded run)
pallets/flask/src/flask/helpers.py
code served (permissive licence) · get_code("dfd355bdaa47bdad")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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 11 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 describes the KnowledgeHub tool, a scientific literature Information Extraction (IE) and Question Answering (QA) pipeline. This is achieved by supporting the ingestion of PDF documents that are converted to text and structured representations. An ontology can then be constructed where a user defines the types of entities and relationships they want to capture. A browserbased annotation tool enables annotating the contents of the PDF documents according to the ontology. Named Entity Recognition (NER) and Relation Classification (RC) models can be trained on the resulting annotations and can be used to annotate the unannotated portion of the documents. A knowledge graph is constructed from these entity and relation triples which can be queried to obtain insights from the data. Furthermore, we integrate a suite of Large Language Models (LLMs) that can be used for QA and summarisation that is grounded in the included documents via a retrieval component. KnowledgeHub is a unique tool that supports annotation, IE and QA, which gives the user full insight into the knowledge discovery pipeline.

For agents

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

get_harvested_code_for_paper("2406.00008")
get_code_for_paper("2406.00008")
have("2406.00008")

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

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

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

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

Connect an agent — have() is free.