Using LongformerForMultipleChoice for processing multiple-choice questions with the 4 options
Hello,Suppose that I want to process multiple-choice questions with 4 options withLongformerForMultipleChoice.so each question hasmain_question,option1,option2,option3, andoption4.How can I generateinput_idsfrom theLongformerTokenizer, so that theLongformerForMultipleChoicecan correctly take each of my multiple-choice question as the ones with 4 options?Thank you,
2020-10-13T07:22:47Z
What you are doing here seems correctStrange error when using the Longformer (HuggingFace developers, please reply)🤗TransformersHello, 
I am trying to use LongformerForMultipleChoice model, and the code I am using is the following: 
# import the pre-trained HuggingFace Longformer tokenizer.
longformer_tokenizer = LongformerTokenizer.from_pretrained('allenai/longformer-base-4096')

# get the pre-trained HuggingFace Longformer
best_model_longformer = LongformerForMultipleChoice.from_pretrained('allenai/longformer-base-4096',
                                                         output_hidden_states = True)

# my multipl…just make sure when you are passinglabelsit’s value should be between[0.. num_choices-1]