Skip to content

Commit

Permalink
Added CamemBERT support for question answering.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienrenaud committed Feb 1, 2021
1 parent 5840749 commit 0a83ef5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/_docs/16-qa-specifics.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ New model types are regularly added to the library. Question Answering tasks cur
| ----------- | --------------------------------------- |
| ALBERT | albert |
| BERT | bert |
| CamemBERT | camembert |
| DistilBERT | distilbert |
| ELECTRA | electra |
| Longformer | longformer |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
BertConfig,
BertForQuestionAnswering,
BertTokenizer,
CamembertConfig,
CamembertForQuestionAnswering,
CamembertTokenizer,
DistilBertConfig,
DistilBertForQuestionAnswering,
DistilBertTokenizer,
Expand Down Expand Up @@ -120,6 +123,7 @@ def __init__(self, model_type, model_name, args=None, use_cuda=True, cuda_device
"auto": (AutoConfig, AutoTokenizer, AutoModelForQuestionAnswering),
"bart": (BartConfig, BartForQuestionAnswering, BartTokenizer),
"bert": (BertConfig, BertForQuestionAnswering, BertTokenizer),
"camembert": (CamembertConfig, CamembertForQuestionAnswering, CamembertTokenizer),
"distilbert": (DistilBertConfig, DistilBertForQuestionAnswering, DistilBertTokenizer),
"electra": (ElectraConfig, ElectraForQuestionAnswering, ElectraTokenizer),
"longformer": (LongformerConfig, LongformerForQuestionAnswering, LongformerTokenizer),
Expand Down

0 comments on commit 0a83ef5

Please sign in to comment.