SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2010.12770 · EMNLP · 2020

Conversational Semantic Parsing for Dialog State Tracking

Lin Li, Yu Hong, Dhivya Piraviperumal, Devang Agrawal, Jianpeng Cheng, Héctor Martínez, Alonso Bhargava, Joris Driesen, Federico Flego, Dain Kaplan, Dimitri Kartsaklis, Jason Williams, and 3 more

arXiv · PDF · Open in the Atlas

Code that ran

1 of 1 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; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 0 failures of our instrument; 0 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/2010.12770.json · badge: /api/ran/2010.12770.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-tree-dst marked official in Papers with Code
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
TreeNode Ran
ran on a synthesized input · constructed an object; no result was computed
apple/ml-tree-dst/utils/tree.py
code served (permissive licence) · get_code("6cb03f56f9e6fa6a")
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 an instance of its own class, TreeNode: the run constructed the object and did not call it, so no result was computed. 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 copy
from itertools import chain
from typing import Any, Dict, Hashable, Iterable, List, Union, TypeVar

NodeName = Union[int, str, float, bool]

SelfType = TypeVar('SelfType', bound='TreeNode')

class TreeNode:
    """A tree node with a name and optionally associated data
    Attributes:
        name: name of node
        children: a dict where keys are child names and values are
                  child nodes of type `TreeNode`
        data: a user-supplied data object. Defaults to an empty dict
    """
    name: NodeName
    data: Dict[Hashable, Any]

    def __init__(self: SelfType, name: NodeName, child_list_or_map: Union[List, Dict]=None, data=None):
        """Constructor
        Args:
            name: name of node
            child_list_or_map: children of this node. Can be given as a list
                               of `TreeNode`s, or a dictionary where the values
                               are `TreeNode`s, and the keys are the associated
                               node names. Optional
            data: optional dict of additional data (if representing a protobuf
                  node, the keys should correspond to attributes). Will be
                  initialised as an empty dictionary if not given
        """
        self.name = name
        self.children = self._children_to_map(child_list_or_map)
        self.data = {} if data is None else data

    def _children_to_map(self, children: Union[List, None, Dict]) -> Dict:
        """If the children are given in a list this method
        converts them into a dict"""
        if isinstance(children, list):
            return dict(((child.name, child) for child in children))
        elif children is None:
            return {}
        else:
            return children

    def to_dict(self) -> Dict:
        """Converts a TreeNode into a dict"""
        def go(node):
            children = [go(child) for child_name, child in node.children.items()]
            return {'name': node.name, 'children': children}
        return go(self)

    @classmethod
    def from_dict(cls, tree_dict: Dict) -> 'TreeNode':
        """Build a tree from a nested dictionary structure"""
        def go(d):
            children = [go(child) for child in d['children']]
            data = dict(d['data']) if 'data' in d else None
            return cls(d['name'], children, data=data)
        return go(tree_dict)

    def descendants(self: SelfType, include_self=False) -> Iterable[SelfType]:
        """Yield the descendants of this node"""
        if include_self:
            yield self
        yield from chain.from_iterable((child.descendants(include_self=True) for child_name, child in self.children.items()))

    def dfs(self, prefix: List=None, include_self: bool=False) -> Iterable[List]:
        """Yield paths for descendants of this node"""
        p = prefix if prefix else []
        if include_self:
            yield (p + [self])
        yield from chain.from_iterable((child.dfs(prefix=p + [self], include_self=True) for child in self.children.values()))

    def leaves(self: SelfType) -> List[SelfType]:
        """Yield all the leaves in the tree."""
        return [node for node in self.descendants(include_self=True) if len(node.children) == 0]

    def __copy__(self: SelfType) -> SelfType:
        """Copy subtree rooted at this node"""
        new_node = TreeNode(self.name, data=copy.copy(self.data))
        for child_name, child in self.children.items():
            new_node.children[child_name] = copy.copy(child)
        return new_node


# Create test data for TreeNode constructor
leaf1 = TreeNode("leaf1", data={"key1": "value1"})
leaf2 = TreeNode("leaf2", data={"key2": "value2"})
branch = TreeNode("branch", child_list_or_map=[leaf1, leaf2], data={"branch_key": "branch_value"})

ARGS = {
    "name": "root",
    "child_list_or_map": [branch],
    "data": {"root_key": "root_value"}
}
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 TreeNode — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TreeNode 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

Also present in other papers' code

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

We consider a new perspective on dialog state tracking (DST), the task of estimating a user's goal through the course of a dialog. By formulating DST as a semantic parsing task over hierarchical representations, we can incorporate semantic compositionality, crossdomain knowledge sharing and co-reference. We present TreeDST, a dataset of 27k conversations annotated with tree-structured dialog states and system acts. 1 We describe an encoder-decoder framework for DST with hierarchical representations, which leads to 20% improvement over state-of-the-art DST approaches that operate on a flat meaning space of slot-value pairs.

For agents

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

get_harvested_code_for_paper("2010.12770")
get_code_for_paper("2010.12770")
have("2010.12770")

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

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

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

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

Connect an agent — have() is free.