Skip to content

Commit

Permalink
add bart for QA
Browse files Browse the repository at this point in the history
  • Loading branch information
flozi00 authored Jun 14, 2020
1 parent 16db7f0 commit 28c9399
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
AlbertConfig,
AlbertForQuestionAnswering,
AlbertTokenizer,
BartConfig,
BartForQuestionAnswering,
BartTokenizer,
BertConfig,
BertForQuestionAnswering,
BertTokenizer,
Expand Down Expand Up @@ -101,6 +104,7 @@ def __init__(self, model_type, model_name, args=None, use_cuda=True, cuda_device
MODEL_CLASSES = {
"albert": (AlbertConfig, AlbertForQuestionAnswering, AlbertTokenizer),
"auto": (AutoConfig, AutoTokenizer, AutoModelForQuestionAnswering),
"bart": (BartConfig, BartForQuestionAnswering, BartTokenizer),
"bert": (BertConfig, BertForQuestionAnswering, BertTokenizer),
"distilbert": (DistilBertConfig, DistilBertForQuestionAnswering, DistilBertTokenizer),
"electra": (ElectraConfig, ElectraForQuestionAnswering, ElectraTokenizer),
Expand Down

0 comments on commit 28c9399

Please sign in to comment.