JohnSnowLabs / spark-nlp

State of the Art Natural Language Processing
https://sparknlp.org/
Apache License 2.0
3.88k stars 711 forks source link

Introducing BertForMultipleChoice transformer #14435

Closed danilojsl closed 1 month ago

danilojsl commented 1 month ago

Description

This PR adds the BertForMultipleChoice model, extending the BERT architecture to handle multiple-choice tasks.

Motivation and Context

This transformer enhances BERT’s versatility by allowing users to tackle tasks that involve multiple-choice scenarios, such as:

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist: