SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2023.findings-emnlp.198 · EMNLP Findings · 2023

Handshape-Aware Sign Language Recognition: Extended Datasets and Exploration of Handshape-Inclusive Method

Xuan Zhang, Kevin Duh

Open in the Atlas

Code that ran

7 of 9 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 6 have no contract verdict; 1 failure 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/2023.findings-emnlp.198.json · badge: /api/ran/2023.findings-emnlp.198.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
Este1le/slr_handshape canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
best_ctc_path Ran
ran on a synthesized input
Este1le/slr_handshape/models/recognition_multi_stream.py
code served (permissive licence) · get_code("7fb4997359f629e2")
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 Tensor, ndim 2, dtype family int, shape (2, 5) 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 torch
torch.manual_seed(0)

# Build tf_gloss_logits: (batch_size=2, max_frames=5, num_classes=4)
# This is log probabilities for CTC
batch_size = 2
max_frames = 5
num_classes = 4
tf_gloss_logits = torch.randn(batch_size, max_frames, num_classes, requires_grad=False)

# Build input_lengths: actual frame lengths for each batch item
input_lengths = torch.tensor([5, 4], dtype=torch.long)

# Build ref_labels: reference label sequences (list of tensors)
# Each tensor contains token ids (not including blank_id=0)
# Using pad_id=1 to pad shorter sequences
ref_labels = [
    torch.tensor([2, 3, 2], dtype=torch.long),  # batch 0: 3 tokens
    torch.tensor([3, 2, 1, 1], dtype=torch.long)  # batch 1: 2 real tokens, 2 padding
]

# Parameters
pad_id = 1
blank_id = 0
expand = True

ARGS = {
    "tf_gloss_logits": tf_gloss_logits,
    "ref_labels": ref_labels,
    "input_lengths": input_lengths,
    "pad_id": pad_id,
    "blank_id": blank_id,
    "expand": expand
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 5) — shape (2, 5) 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
expand_ctc_labels Ran
ran on a synthesized input
Este1le/slr_handshape/models/recognition_multi_stream.py
code served (permissive licence) · get_code("ea4c6a6dbd58bcb5")
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. 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 torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for the function
batch_size = 2
max_time = 5
num_gloss = 4

# tf_gloss_logits: shape [batch_size, max_time, num_gloss]
# Contains logits for each gloss at each frame
tf_gloss_logits = torch.randn(batch_size, max_time, num_gloss)

# input_lengths: shape [batch_size]
# Length of each sequence
input_lengths = torch.tensor([5, 4], dtype=torch.int32)

# decoded_gloss_sequences: list of tensors with decoded non-blank gloss sequences
# Each element contains gloss IDs (1-indexed after CTC decoding)
decoded_gloss_sequences = [
    torch.tensor([1, 2, 3], dtype=torch.int64),  # First sequence
    torch.tensor([2, 3], dtype=torch.int64)      # Second sequence
]

# tmp_frame_gloss_sequences: list of lists containing frame-level gloss assignments
# Maps each frame to a gloss ID
tmp_frame_gloss_sequences = [
    [1, 1, 2, 2, 3],  # First sequence: 5 frames
    [0, 2, 2, 3]      # Second sequence: 4 frames (0 is blank_id)
]

# blank_id: the ID representing blank tokens in CTC
blank_id = 0

# ctc_decode: can be None when tmp_frame_gloss_sequences is provided
ctc_decode = None

ARGS = {
    'tf_gloss_logits': tf_gloss_logits,
    'decoded_gloss_sequences': decoded_gloss_sequences,
    'input_lengths': input_lengths,
    'blank_id': blank_id,
    'tmp_frame_gloss_sequences': tmp_frame_gloss_sequences,
    'ctc_decode': ctc_decode
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is 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
get_keypoints_num Ran
ran on a synthesized input
Este1le/slr_handshape/dataset/Dataset.py
code served (permissive licence) · get_code("53efb78929592d8c")
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 torch
import numpy as np

Hrnet_Part2index = {'pose': [('keypoints', list(range(11)))], 'hand': [('keypoints', list(range(91, 133)))], 'mouth': [('keypoints', list(range(71, 91)))], 'face_others': [('keypoints', list(range(23, 71)))]}

def get_keypoints_num(keypoint_file, use_keypoints):
    keypoints_num = 0
    Part2index = Hrnet_Part2index
    for k in sorted(use_keypoints):
        keypoints_num += sum([len(index) for key_, index in Part2index[k]])
    return keypoints_num

ARGS = {
    'keypoint_file': 'dummy_keypoint_file.txt',
    'use_keypoints': ['pose', 'hand', 'mouth', 'face_others']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
get_selected_indexs Ran
ran on a synthesized input
Este1le/slr_handshape/dataset/VideoLoader.py
code served (permissive licence) · get_code("24c2a67abf3a5c52")
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. 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 numpy as np
import random

# Set seed for reproducibility
np.random.seed(0)
random.seed(0)

# Define arguments for get_selected_indexs
ARGS = {
    'vlen': 100,
    'tmin': 1,
    'tmax': 1,
    'max_num_frames': 400
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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_batch_feature Ran
ran on a synthesized input
Este1le/slr_handshape/dataset/FeatureLoader.py
code served (permissive licence) · get_code("96f512b5d6cd3b52")
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. 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 torch

torch.manual_seed(0)

# Create a list of feature tensors with different lengths but same feature dimension
feature1 = torch.randn(3, 4)  # 3 timesteps, 4 features
feature2 = torch.randn(5, 4)  # 5 timesteps, 4 features
feature3 = torch.randn(2, 4)  # 2 timesteps, 4 features

features = [feature1, feature2, feature3]

ARGS = {
    "features": features
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
pil_list_to_tensor Ran
ran on a synthesized input
Este1le/slr_handshape/dataset/VideoLoader.py
code served (permissive licence) · get_code("067df32d9669e303")
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 Tensor, ndim 4, dtype family float, shape (2, 3, 4, 3) 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 torch
import torchvision
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create small PIL images for testing
# Make 2 images of different sizes to be distinct
pil_img_1 = Image.fromarray(np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8), mode='RGB')
pil_img_2 = Image.fromarray(np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8), mode='RGB')

pil_list = [pil_img_1, pil_img_2]

ARGS = {
    'pil_list': pil_list,
    'int2float': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 4, 3) — shape (2, 3, 4, 3) 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
shift_tokens_right Ran
ran; our contract draft was wrong, not the code
Este1le/slr_handshape/models/Tokenizer.py
code served (permissive licence) · get_code("4462c6fb2fdeb306")
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 Tensor, ndim 2, dtype family int, shape (2, 4) 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 torch

torch.manual_seed(0)

# Create a small batch of input_ids
# Batch size: 2, Sequence length: 4
# Using values that represent token ids, with some pad tokens
input_ids = torch.tensor([
    [101, 2054, 2003, 102],  # First sequence with EOS token (102) at end
    [101, 2054, 0, 0]         # Second sequence with pad tokens (0)
], dtype=torch.long)

pad_token_id = 0
ignore_index = -100

ARGS = {
    "input_ids": input_ids,
    "pad_token_id": pad_token_id,
    "ignore_index": ignore_index
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 4) — shape (2, 4) 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
best_ctc_gls_hs_path Not yet run
unverified (harvested, no recorded run)
Este1le/slr_handshape/models/recognition_multi_stream.py
code served (permissive licence) · get_code("3a3a26de51d76ef0")
How it ran

no invocation recorded.

save_model Not yet run
unverified (harvested, no recorded run)
Este1le/slr_handshape/training.py
code served (permissive licence) · get_code("ef54c6d024ccbc97")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 2 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 7 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
save_model 1 other paper
1 later
2401.05336 (2024-01)
Towards Online Continuous Sign Language Recognition and Translation
shift_tokens_right 1 other paper
1 dated earlier
2203.04287 (2022-03)
A Simple Multi-Modality Transfer Learning Baseline for Sign Language Translation

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

The majority of existing work on sign language recognition encodes signed videos without explicitly acknowledging the phonological attributes of signs. Given that handshape is a vital parameter in sign languages, we explore the potential of handshape-aware sign language recognition. We augment the PHOENIX14T dataset with gloss-level handshape labels, resulting in the new PHOENIX14T-HS dataset. Two unique methods are proposed for handshape-inclusive sign language recognition: a single-encoder network and a dualencoder network, complemented by a training strategy that simultaneously optimizes both the CTC loss and frame-level crossentropy loss. The proposed methodology consistently outperforms the baseline performance. The dataset and code can be accessed at https://github.com/Este1le/slr_handshape.git.

For agents

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

get_harvested_code_for_paper("2023.findings-emnlp.198")
get_code_for_paper("2023.findings-emnlp.198")
have("2023.findings-emnlp.198")

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

curl https://syntology.ai/api/ran/2023.findings-emnlp.198.json

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

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

Connect an agent — have() is free.