SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2020.findings-emnlp.444 · EMNLP Findings · 2020

Joint Intent Detection and Entity Linking on Spatial Domain Queries

Lei Zhang, Hui Xiong, Jingbo Zhou, Runze Wang, Jingsong Yu, Zhenhua Ling

Open in the Atlas

Code that ran

4 of 6 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 4 have no contract verdict; 0 failures of our instrument; 2 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/2020.findings-emnlp.444.json · badge: /api/ran/2020.findings-emnlp.444.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
baidu/lac canonical (classifier label)
classifier basis: census
4 ran · 2 no recorded run
FunctionStatusWhere it lives
abs_path Ran
ran on a synthesized input
baidu/lac/python/LAC/utils.py
code served (permissive licence) · get_code("b110066cd01e6b03")
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 os
import sys

# The function abs_path takes a single parameter 'path' which is a string
# It constructs an absolute path by joining the directory of the current file
# with the provided path argument

ARGS = {
    "path": "relative/path/to/file.txt"
}
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
load_kv_dict Ran
ran on a synthesized input
baidu/lac/python/LAC/reader.py
code served (permissive licence) · get_code("b7207adefbe49380")
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 io
import tempfile
import os

# Create a temporary file with key-value pairs
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt', encoding='utf8')
temp_file.write("key1\tvalue1\n")
temp_file.write("key2\tvalue2\n")
temp_file.write("key3\tvalue3\n")
temp_file.close()

dict_path = temp_file.name

def custom_key_func(key):
    """Simple key transformation function"""
    return key.upper()

def custom_value_func(value):
    """Simple value transformation function"""
    return value.lower()

ARGS = {
    'dict_path': dict_path,
    'reverse': False,
    'delimiter': '\t',
    'key_func': custom_key_func,
    'value_func': custom_value_func
}
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
main Ran
ran on a synthesized input
baidu/lac/python/LAC/cmdline.py
code served (permissive licence) · get_code("1f6e4eab52182c72")
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 int, ndim 0, dtype family int, 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 argparse
from unittest.mock import Mock, MagicMock
import sys
from io import StringIO

# Create a mock LAC class since we can't import the real one
class MockLAC:
    def __init__(self, mode=''):
        self.mode = mode
    
    def run(self, line):
        if self.mode == 'seg':
            return line.split()
        elif self.mode == 'rank':
            words = line.split()
            tags = ['n'] * len(words)
            ranks = ['0'] * len(words)
            return words, tags, ranks
        else:
            words = line.split()
            tags = ['n'] * len(words)
            return words, tags

# Mock the LAC module
sys.modules['LAC'] = MagicMock()
sys.modules['LAC.LAC'] = MockLAC
sys.modules['LAC._compat'] = MagicMock()

# Create mock strdecode function
def mock_strdecode(s):
    return s if isinstance(s, str) else s.decode('utf-8')

sys.modules['LAC']._compat.strdecode = mock_strdecode
sys.modules['LAC'].LAC = MockLAC

# Parse arguments with the required flags
parser = argparse.ArgumentParser(description='LAC Init Arguments')
parser.add_argument('--segonly', action='store_true', default=False,
                    help='Segment only mode')
parser.add_argument('--rank', action='store_true', default=False,
                    help='Rank mode')

# Create args namespace with default values
args = parser.parse_args([])

ARGS = {
    'args': args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
LAC — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
to_str Ran
ran on a synthesized input
baidu/lac/python/LAC/utils.py
code served (permissive licence) · get_code("6987467a8e751b45")
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 sys
import os

# Test with a simple string
test_string = "hello world"

# Test with bytes
test_bytes = b"hello bytes"

# Test with unicode (if Python 2, though we're likely in Python 3)
test_unicode = u"hello unicode"

ARGS = {
    'string': test_string,
    'encoding': 'utf-8'
}
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
load_seg_dict Not yet run
unverified (harvested, no recorded run)
baidu/lac/python/LAC/segment.py
code served (permissive licence) · get_code("a95213d14a05c149")
How it ran

no invocation recorded.

strdecode Not yet run
unverified (harvested, no recorded run)
baidu/lac/python/LAC/_compat.py
code served (permissive licence) · get_code("72ab1a93234e1d5b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 5 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
strdecode 1 other paper
1 later
2608.05167 (2026-08)
CNM-BERT: A Drop-In Structural Embedding for Chinese Characters via Ideographic Description Sequences

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

Continuous efforts have been devoted to language understanding (LU) for conversational queries with the fast and wide-spread popularity of voice assistants. In this paper, we first study the LU problem in the spatial domain, which is a critical problem for providing location-based services by voice assistants, but is without in-depth investigation in existing studies. Spatial domain queries have several unique properties making them be more challenging for language understanding than common conversational queries, including lexicalsimilar but diverse intents and highly ambiguous words. Thus, a special tailored LU framework for spatial domain queries is necessary. To the end, a dataset SMQ was extracted and annotated based on the real-life queries from a voice assistant service. We then proposed a new multi-task framework MELIP that jointly learns the intent detection and entity linking tasks on the SMQ with invented hierarchical intent detection method and triple-scoring mechanism for entity linking. A specially designed spatial GCN is also utilized to model spatial context information among entities. We have conducted extensive experimental evaluations with state-of-the-art entity linking and intent detection methods, which demonstrated that MELIP can outperform all baselines with a significant margin.

For agents

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

get_harvested_code_for_paper("2020.findings-emnlp.444")
get_code_for_paper("2020.findings-emnlp.444")
have("2020.findings-emnlp.444")

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

curl https://syntology.ai/api/ran/2020.findings-emnlp.444.json

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

[![Syntology run record](https://syntology.ai/api/ran/2020.findings-emnlp.444.svg)](https://syntology.ai/paper/2020.findings-emnlp.444)

Connect an agent — have() is free.