SkillAgentSearch skills...

SSDVAE

"Event Representation with Sequential, Semi-Supervised Discrete Variables" (NAACL 2021)

Install / Use

/learn @mmrezaee/SSDVAE
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<!-- ![alt-text-1]("title-1") ![alt-text-2](image2.png "title-2") -->

The implementation of NAACL 2021 paper "Event Representation with Sequential, Semi-Supervised Discrete Variables".

<img src="figs/model.png" width="600" height="200"/><img src="figs/example.png" width="400"/>

This Pytorch code implements the model and reproduces the results from the paper.

Conda Environment:

conda create --name ssdvae
conda install pytorch==0.4.1 cuda92 -c pytorch
pip install torchtext==0.2.3
conda install pandas scikit-learn
conda install -c conda-forge pytablewriter

Data:

Wikipedia Dataset

Wikipedia Inverse Narrative Cloze

NYT Inverse Narrative Cloze

Training:

./train.sh $obsv_prob $exp_num $seed

data_mode:

{'valid','test'}

Perplexity:

./test_ppx.sh $obsv_prob $exp_num $seed $data_mode

Wiki Inverse Narrative Cloze:

./wiki_inv_narr.sh $obsv_prob $exp_num $seed $data_mode

NYT Inverse Narrative Cloze:

./nyt_inv_narr.sh $obsv_prob $exp_num $seed $data_mode

Disclaimer

Some parts of the code were inspired by HAQAE implementations.

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated2mo ago
Forks2

Languages

Python

Security Score

70/100

Audited on Jan 10, 2026

No findings