FranxYao / RDP

Implementation of ICML 22 Paper: Scaling Structured Inference with Randomization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

code for:

Yao Fu, John Cunningham and Mirella Lapata, Scaling Structured Inference with Randomization. ICML 2022

Yao Fu and Mirella Lapata, Latent Topology Induction for Understanding Contextualized Representations. Arxiv 2022

For reproducing Scaling Structured Inference with Randomization, table 2

Most experiemnts for table 2 are in:

pip install requirements.txt
cd src/rdp-exps

Experiments for estimating linear-chain CRF, partition function and entropy

  • src/rdp-exps/chaincrf.ipynb

Experiments for estimating TreeCRF partition function

  • src/rdp-exps/TreeCRF.ipynb

The influence of K1/K2 ratio

  • src/rdp-exps/TreeCRF_K1K2.ipynb

Implementation of Linear-chain CRF RDP algorithms

  • src/frtorch/structure/linear_chain_crf.py

Implementation of TreeCRF RDP algorithms

  • 'src/rdp-exps/tree_crf.py'

For reproducing Latent Topology Induction for Understanding Contextualized Representations (coming soon)

About

Implementation of ICML 22 Paper: Scaling Structured Inference with Randomization


Languages

Language:Jupyter Notebook 99.7%Language:Python 0.2%Language:Shell 0.0%Language:Makefile 0.0%