SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.11218 · AAAI · 2022

Hierarchical Context Tagging for Utterance Rewriting

Dong Yu, Linfeng Song, Lisa Jin, ‡ Lifeng, Daniel Gildea

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2206.11218.json · badge: /api/ran/2206.11218.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
lisjin/hct community
Papers with Code archive
9 ran · 2 no recorded run
FunctionStatusWhere it lives
AdditiveAttention Ran
ran on a synthesized input · constructed an object; no result was computed
lisjin/hct/sequence_tagger.py
pointer only (licence: NONE) · get_code("ee60d968887966a5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lisjin/hct 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.

SingleHeadedAttention Ran
ran on a synthesized input
lisjin/hct/sequence_tagger.py
pointer only (licence: NONE) · get_code("357f740c6eb1b176")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lisjin/hct 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.

cls_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lisjin/hct/sequence_tagger.py
pointer only (licence: NONE) · get_code("d4dd26450a2f7454")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lisjin/hct 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.

convert_tokens_to_string Ran
ran; our contract draft was wrong, not the code
lisjin/hct/sequence_tagger.py
pointer only (licence: NONE) · get_code("29eebbec9a89a241")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lisjin/hct 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.

filter_spans Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lisjin/hct/sequence_tagger.py
pointer only (licence: NONE) · get_code("4aaa0f929ca5124c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lisjin/hct 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_sp_strs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lisjin/hct/sequence_tagger.py
pointer only (licence: NONE) · get_code("1c3729d7bdc24044")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lisjin/hct 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.

ilst2str Ran
ran; our contract draft was wrong, not the code
lisjin/hct/sequence_tagger.py
pointer only (licence: NONE) · get_code("396a1ab20565832e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lisjin/hct 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.

safe_log Ran
ran, honoured the contract we drafted
lisjin/hct/sequence_tagger.py
pointer only (licence: NONE) · get_code("f4b113a24e219244")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lisjin/hct 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.

sample_helper Ran
ran; our contract draft was wrong, not the code
lisjin/hct/sequence_tagger.py
pointer only (licence: NONE) · get_code("d0642373c95680b9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lisjin/hct 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.

BertForSequenceTagging Not yet run
unverified (harvested, no recorded run)
lisjin/hct/sequence_tagger.py
pointer only (licence: NONE) · get_code("42281a8c6cec7703")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lisjin/hct 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.

SpanClassifier Not yet run
unverified (harvested, no recorded run)
lisjin/hct/sequence_tagger.py
pointer only (licence: NONE) · get_code("505d10716b0d62e4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lisjin/hct 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 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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Utterance rewriting aims to recover coreferences and omitted information from the latest turn of a multi-turn dialogue. Recently, methods that tag rather than linearly generate sequences have proven stronger in both in-and out-of-domain rewriting settings. This is due to a tagger's smaller search space as it can only copy tokens from the dialogue context. However, these methods may suffer from low coverage when phrases that must be added to a source utterance cannot be covered by a single context span. This can occur in languages like English that introduce tokens such as prepositions into the rewrite for grammaticality. We propose a hierarchical context tagger (HCT) that mitigates this issue by predicting slotted rules (e.g., "besides ") whose slots are later filled with context spans. HCT (i) tags the source string with token-level edit actions and slotted rules and (ii) fills in the resulting rule slots with spans from the dialogue context. This rule tagging allows HCT to add out-of-context tokens and multiple spans at once; we further cluster the rules to truncate the long tail of the rule distribution. Experiments on several benchmarks show that HCT can outperform state-of-the-art rewriting systems by ∼2 BLEU points.

For agents

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

get_harvested_code_for_paper("2206.11218")
get_code_for_paper("2206.11218")
have("2206.11218")

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

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

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

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

Connect an agent — have() is free.