JRQi commited on
Commit
ae4f9df
1 Parent(s): c297653

Update game1.py

Browse files
Files changed (1) hide show
  1. game1.py +1 -1
game1.py CHANGED
@@ -283,7 +283,7 @@ def interpre1(lang_selected, num_selected):
283
  text = eval(content[int(num_selected*2)])
284
  interpretation = eval(content[int(num_selected*2+1)])
285
 
286
- encodings = tokenizer(text['text'], is_pretokenized=False, return_offsets_mapping=True)
287
  print(encodings['offset_mapping'])
288
  is_subword = np.array(encodings['offset_mapping'])[:,0] != 0
289
  print(is_subword)
 
283
  text = eval(content[int(num_selected*2)])
284
  interpretation = eval(content[int(num_selected*2+1)])
285
 
286
+ encodings = tokenizer(text['text'], return_offsets_mapping=True)
287
  print(encodings['offset_mapping'])
288
  is_subword = np.array(encodings['offset_mapping'])[:,0] != 0
289
  print(is_subword)