Skip to content
/ RDP Public

Implementation of ICML 22 Paper: Scaling Structured Inference with Randomization

Notifications You must be signed in to change notification settings

FranxYao/RDP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages