Get Error in running QA tansformer
HI Deari have this codeimport jsonwith open(‘./data/squad/new_train.json’, ‘r’) as f:squad = json.load(f)from transformers import BertTokenizer, BertForQuestionAnsweringmodelname = ‘deepset/bert-base-cased-squad2’tokenizer1 = BertTokenizer.from_pretrained(modelname)model1 = BertForQuestionAnswering.from_pretrained(modelname)from transformers import pipelineqa = pipeline(‘question-answering’, model=model1, tokenizer=tokenizer1)answers =qa({‘question’: squad[0][‘question’], ‘context’: squad[0][‘context’]})and i’ve got the error:File “C:\ProgramData\Anaconda3\lib\encodings\cp1252.py”, line 19, in encodereturn codecs.charmap_encode(input,self.errors,encoding_table)[0]UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 35-36: character maps toHoe could i solve this?