Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allenai/allennlp-bert-qa-wrapper
https://github.com/allenai/allennlp-bert-qa-wrapper
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/allenai/allennlp-bert-qa-wrapper
- Owner: allenai
- Created: 2019-03-11T20:25:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-30T21:05:17.000Z (about 4 years ago)
- Last Synced: 2024-08-02T08:09:54.066Z (4 months ago)
- Language: Python
- Size: 44.9 KB
- Stars: 47
- Watchers: 17
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-bert - allenai/allennlp-bert-qa-wrapper - pretrained-bert to make AllenNLP model archives, so that you can serve demos from AllenNLP. (BERT QA & RC task:)
README
# allennlp-bert-qa-wrapper
This is a simple wrapper on top of pretrained BERT based QA models from [pytorch-pretrained-bert](https://github.com/huggingface/pytorch-pretrained-BERT) to make AllenNLP model archives, so that you can serve demos from AllenNLP.## Docker
To run this with Docker, first build an image.
```
docker build -t allennlp-bert-qa .
```Then you can run the image. The cache directory is mounted so you can re-use the cache across
multiple Docker commands.```
mkdir -p $HOME/.allennlp/
docker run -p 8000:8000 -v $HOME/.allennlp:/root/.allennlp allennlp-bert-qa
```