Skip to content

modifications based on the original code to 1) add support for non-Bert models; 2) refactor some of the code

Notifications You must be signed in to change notification settings

pauljhp/subnetwork-probing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subnetwork-probing

This repository is forked from the original repository to extend functionality

This is code for the paper:
Low-Complexity Probing via Finding Subnetworks
Steven Cao, Victor Sanh, Alexander M. Rush
NAACL-HLT 2021

installation

run $ conda env create -n subnet_prob --file environment.yml to install dependencies

Dependencies

This code was tested with python 3.6, pytorch 1.1, and pytorch-transformers 1.2.

Data

This paper uses the Universal Dependencies dataset for dependencies and part-of-speech tagging, and the CoNLL 2003 NER Shared Task for named entity recognition.

Running the code

To run the main experiment in the paper, run python main.py PATH_TO_SAVE_DIRECTORY.

About

modifications based on the original code to 1) add support for non-Bert models; 2) refactor some of the code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.1%
  • Jupyter Notebook 36.9%