Skip to content

source code for NAACL2022 main conference "Dynamic Programming in Rank Space: Scaling Structured Inference with Low-Rank HMMs and PCFGs"

Notifications You must be signed in to change notification settings

VPeterV/RankSpace-Models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RankSpace-Models

This repository contains source code for NAACL2022 main conference Dynamic Programming in Rank Space: Scaling Structured Inference with Low-Rank HMMs and PCFGs

  • Code for scaling low-rank structured inference with HMMs in rank-hmms.
  • Code for scaling low-rank structured inference with PCFGs in rank-pcfgs, which has been merged into TN-PCFG. More details can be seen in it.

Dependencies

pip install -r requirement.txt

HMMs

Prepare Data

If your running environment supports internet connection, you can just run the train. Then corresponding dataset will be downloaded automatically.

Otherwise, download dataset here. And then change the name of directory data to .data.

How to run

python train.py --conf path/to/config.yaml --d cuda device number --version "any name you like"
e.g.
python train.py --conf ./config/projrank_m32768_r4096.yaml -d 0 --version rank-hmms

PCFGs

We have merged the rank-pcfgs into TN-PCFG. Please see more details there.

Acknowledge

The code is based on low-rank-models, hmmlm. And most baselines for HMMs can be found there.

About

source code for NAACL2022 main conference "Dynamic Programming in Rank Space: Scaling Structured Inference with Low-Rank HMMs and PCFGs"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages