SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.19727 · NeurIPS · 2023

Generating Medication Prescriptions with Conditional Transformer

Nicolo Micheletti, Samuel Belkadi, Lifeng Han, Warren Del-Pinto, Goran Nenadic

arXiv · PDF · Open in the Atlas

Code that ran

10 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 3 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/2310.19727.json · badge: /api/ran/2310.19727.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
hecta-uom/label-to-text-transformer canonical (classifier label)
classifier basis: classifier_2025
9 ran · 2 no recorded run
HECTA-UoM/Label-To-Text-Transformer canonical (classifier label)
classifier basis: census
1 ran · 2 no recorded run
FunctionStatusWhere it lives
Decoder Ran
ran on a synthesized input · constructed an object; no result was computed
hecta-uom/label-to-text-transformer/Models/EncDecTransformer/Models.py
pointer only (licence: NONE) · get_code("d79f23e381bac349")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hecta-uom/label-to-text-transformer 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.

DecoderLayer Ran
ran on a synthesized input · constructed an object; no result was computed
hecta-uom/label-to-text-transformer/Models/EncDecTransformer/Models.py
pointer only (licence: NONE) · get_code("9a90009ebd92e479")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hecta-uom/label-to-text-transformer 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.

EncoderLayer Ran
ran on a synthesized input
hecta-uom/label-to-text-transformer/Models/EncDecTransformer/Models.py
pointer only (licence: NONE) · get_code("00b2d8f963115880")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hecta-uom/label-to-text-transformer 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.

MultiHeadAttention Ran
ran on a synthesized input · constructed an object; no result was computed
hecta-uom/label-to-text-transformer/Models/EncDecTransformer/Models.py
pointer only (licence: NONE) · get_code("c1c52814e8545858")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hecta-uom/label-to-text-transformer 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.

PositionalEncoding Ran
ran on a synthesized input · constructed an object; no result was computed
hecta-uom/label-to-text-transformer/Models/EncDecTransformer/Models.py
pointer only (licence: NONE) · get_code("5dd0e5c7ed12cd76")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hecta-uom/label-to-text-transformer 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.

PositionwiseFeedForward Ran
ran on a synthesized input
hecta-uom/label-to-text-transformer/Models/EncDecTransformer/Models.py
pointer only (licence: NONE) · get_code("fcc2d8bf7194efb7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hecta-uom/label-to-text-transformer 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.

ScaledDotProductAttention Ran
ran on a synthesized input
hecta-uom/label-to-text-transformer/Models/EncDecTransformer/Models.py
pointer only (licence: NONE) · get_code("f55932fd8000cda8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hecta-uom/label-to-text-transformer 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.

get_angles Ran
ran; our contract draft was wrong, not the code
hecta-uom/label-to-text-transformer/Models/EncDecTransformer/Models.py
pointer only (licence: NONE) · get_code("73080156d02a4f89")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hecta-uom/label-to-text-transformer 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.

get_lookahead_mask Ran
ran; our contract draft was wrong, not the code
hecta-uom/label-to-text-transformer/Models/EncDecTransformer/Models.py
pointer only (licence: NONE) · get_code("acb6f9b17a58ef36")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hecta-uom/label-to-text-transformer 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.

get_pad_mask Ran
ran; our contract draft was wrong, not the code
HECTA-UoM/Label-To-Text-Transformer/Models/EncDecTransformer/Modules.py
pointer only (licence: NONE) · get_code("733cd4727b4ed611")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HECTA-UoM/Label-To-Text-Transformer 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.

Encoder Not yet run
unverified (harvested, no recorded run)
hecta-uom/label-to-text-transformer/Models/EncDecTransformer/Models.py
pointer only (licence: NONE) · get_code("c54d91337bee0490")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hecta-uom/label-to-text-transformer 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. No invocation recorded.

Transformer Not yet run
unverified (harvested, no recorded run)
hecta-uom/label-to-text-transformer/Models/EncDecTransformer/Models.py
pointer only (licence: NONE) · get_code("0e9edcc3a4e00d45")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hecta-uom/label-to-text-transformer 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. No invocation recorded.

load_and_preprocess_data Not yet run
unverified (harvested, no recorded run)
HECTA-UoM/Label-To-Text-Transformer/Modules/DataHelp.py
pointer only (licence: NONE) · get_code("84eaec28aee89722")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HECTA-UoM/Label-To-Text-Transformer 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. No invocation recorded.

preprocessing Not yet run
unverified (harvested, no recorded run)
HECTA-UoM/Label-To-Text-Transformer/Modules/DataHelp.py
pointer only (licence: NONE) · get_code("2ffa5ef1b40e1a7e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HECTA-UoM/Label-To-Text-Transformer 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. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 13 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_pad_mask
brick of this paper's assembly: helper
6 other papers
5 dated earlier, 1 later · 1 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1804.02472 (2018-04)
Neural models of factuality
1905.05460 (2019-05)
Cognitive Graph for Multi-Hop Reading Comprehension at Scale
and 3 more not named here

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

Access to real-world medication prescriptions is essential for medical research and healthcare quality improvement. However, access to real medication prescriptions is often limited due to the sensitive nature of the information expressed. Additionally, manually labelling these instructions for training and fine-tuning Natural Language Processing (NLP) models can be tedious and expensive. We introduce a novel task-specific model architecture, Label-To-Text-Transformer (LT3), tailored to generate synthetic medication prescriptions based on provided labels, such as a vocabulary list of medications and their attributes. LT3 is trained on a set of around 2K lines of medication prescriptions extracted from the MIMIC-III database, allowing the model to produce valuable synthetic medication prescriptions. We evaluate LT3's performance by contrasting it with a state-of-the-art Pre-trained Language Model (PLM), T5, analysing the quality and diversity of generated texts. We deploy the generated synthetic data to train the SpacyNER model for the Named Entity Recognition (NER) task over the n2c2-2018 dataset. The experiments show that the model trained on synthetic data can achieve a 96-98% F1 score at Label Recognition on Drug, Frequency, Route, Strength, and Form. LT3 codes and data will be shared at https://github.com/HECTA-UoM/Label-To-Text-Transformer

For agents

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

get_harvested_code_for_paper("2310.19727")
get_code_for_paper("2310.19727")
have("2310.19727")

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

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

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

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

Connect an agent — have() is free.