SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1606.01614 · 2016

Adversarial Deep Averaging Networks for Cross-Lingual Sentiment Classification

arXiv · PDF · Open in the Atlas

Code that ran

1 of 2 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 1 has no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/1606.01614.json · badge: /api/ran/1606.01614.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
ccsasuke/adan canonical (classifier label)
classifier basis: census
1 ran · 1 no recorded run
FunctionStatusWhere it lives
get_chn_htl_datasets Ran
ran on a synthesized input
ccsasuke/adan/code/data_prep/chn_hotel_dataset.py
code served (permissive licence) · get_code("09e7cc24f606673a")
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
import numpy as np
import tempfile
import os

torch.manual_seed(0)

# Create a simple Vocab class that matches what the code expects
class SimpleVocab:
    def __init__(self):
        self.word_to_idx = {}
        self.idx_to_word = {}
        self.idx = 0
    
    def add_word(self, word):
        if word not in self.word_to_idx:
            self.word_to_idx[word] = self.idx
            self.idx_to_word[self.idx] = word
            self.idx += 1
    
    def lookup(self, word):
        if word not in self.word_to_idx:
            self.add_word(word)
        return self.word_to_idx[word]

# Create temporary files for X and Y data
def create_temp_files():
    # Create X file with sample text data
    X_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
    X_filename = X_file.name
    
    # Write sample data: 170000 lines (150k train + 10k valid + 10k test)
    sample_texts = [
        "这 是 一 个 好 酒店",
        "很 不 错 的 地方",
        "服务 很 差",
        "位置 不 好",
        "价格 太 贵"
    ]
    
    for i in range(170000):
        X_file.write(sample_texts[i % len(sample_texts)] + "\n")
    X_file.close()
    
    # Create Y file with sample labels
    Y_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
    Y_filename = Y_file.name
    
    # Write labels (1-5, will be converted to 0-4 in the function)
    for i in range(170000):
        Y_file.write(str((i % 5) + 1) + "\n")
    Y_file.close()
    
    return X_filename, Y_filename

X_filename, Y_filename = create_temp_files()

vocab = SimpleVocab()

ARGS = {
    'vocab': vocab,
    'X_filename': X_filename,
    'Y_filename': Y_filename,
    'num_train_lines': 1000,
    'max_seq_len': 20
}
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 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
get_yelp_datasets Not yet run
unverified (harvested, no recorded run)
ccsasuke/adan/code/data_prep/yelp_dataset.py
code served (permissive licence) · get_code("9328ad7ade02896f")
How it ran

no invocation recorded.

Also present in other papers' code

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

In recent years great success has been achieved in sentiment classification for English, thanks in part to the availability of copious annotated resources. Unfortunately, most languages do not enjoy such an abundance of labeled data. To tackle the sentiment classification problem in low-resource languages without adequate annotated data, we propose an Adversarial Deep Averaging Network (ADAN) to transfer the knowledge learned from labeled data on a resource-rich source language to low-resource languages where only unlabeled data exists. ADAN has two discriminative branches: a sentiment classifier and an adversarial language discriminator. Both branches take input from a shared feature extractor to learn hidden representations that are simultaneously indicative for the classification task and invariant across languages. Experiments on Chinese and Arabic sentiment classification demonstrate that ADAN significantly outperforms state-of-the-art systems.

For agents

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

get_harvested_code_for_paper("1606.01614")
get_code_for_paper("1606.01614")
have("1606.01614")

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

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

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

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

Connect an agent — have() is free.