JRQi commited on
Commit
38df701
1 Parent(s): 08cc2a8

Update game3.py

Browse files
Files changed (1) hide show
  1. game3.py +1 -1
game3.py CHANGED
@@ -218,7 +218,7 @@ def func3_written(text_written, human_predict, lang_written):
218
  interpretation = list(zip(shap_values.data[0], shap_values.values[0, :, 1]))
219
 
220
 
221
- encodings = tokenizer(text['text'], return_offsets_mapping=True)
222
 
223
  print(encodings['offset_mapping'])
224
  is_subword = [False, False]
 
218
  interpretation = list(zip(shap_values.data[0], shap_values.values[0, :, 1]))
219
 
220
 
221
+ encodings = tokenizer(text_written, return_offsets_mapping=True)
222
 
223
  print(encodings['offset_mapping'])
224
  is_subword = [False, False]