8000 GitHub - sailfish009/visbert: VisBERT: Demo web app for "How Does BERT Answer Questions?"
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sailfish009/visbert

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VisBERT: Hidden-State Visualizations for Transformers

This demo visualizes the findings from our paper How Does BERT Answer Questions? A Layer-Wise Analysis of Transformer Representations. The tool consists of a Python (>=3.6.1) Flask app and does currently rely on three fine-tuned Pytorch BERT models.

Getting Started

Install requirements with pip:

pip install -r docker/requirements.txt

Install NLTK Punkt:

python -m nltk.downloader punkt

Run app with model directory as argument. The model directory must currently contain the models: 'squad.bin', 'hotpot_distract.bin' and 'babi.bin', which are available here:

python src/app.py {model_directory}

Cite

When using our tool, please cite the following paper:

@article{van_Aken_2020,
   title={VisBERT: Hidden-State Visualizations for Transformers},
   author={van Aken, Betty and Winter, Benjamin and Löser, Alexander and Gers, Felix A.},
   journal={WWW '20: Companion Proceedings of the Web Conference 2020},
   publisher={ACM Press},
   year={2020}
}

About

VisBERT: Demo web app for "How Does BERT Answer Questions?"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.5%
  • Python 24.2%
  • CSS 7.7%
  • HTML 6.6%
  • Roff 5.8%
  • Dockerfile 0.1%
  • Shell 0.1%
0