Downloads · 30 days
133
7% of all-time downloads
allenai/bidaf-elmo
bidaf-elmo is a question answering model from allenai. Use it when the input is a question plus a passage. It is set up for allennlp.
This is an implementation of the BiDAF model with ELMo embeddings. The basic layout is pretty simple: encode words as a combination of word embeddings and a character-level encoder, pass the word representations throu…
Downloads · 30 days
133
7% of all-time downloads
All-time downloads
1.8K
Public
Repo size
1.4 GB
Likes
13
Public
Click a slice to open those files.
.th900 MB · 100%
From the Hugging Face model README
This is an implementation of the BiDAF model with ELMo embeddings. The basic layout is pretty simple: encode words as a combination of word embeddings and a character-level encoder, pass the word representations through a bi-LSTM/GRU, use a matrix of attentions to put question information into the passage word representations (this is the only part that is at all non-standard), pass this through another few layers of bi-LSTMs/GRUs, and do a softmax over span start and span end.
This model is based on ELMo. ELMo is not deterministic, meaning that you will see slight differences every time you run it. Also, ELMo likes to be warmed up, so we recommend processing dummy input before processing real workloads with it.