JRQi commited on
Commit
0290600
1 Parent(s): ddf1d5e

Update game1.py

Browse files
Files changed (1) hide show
  1. game1.py +1 -1
game1.py CHANGED
@@ -284,10 +284,10 @@ def interpre1(lang_selected, num_selected):
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)
290
- print(abc)
291
  print(interpretation)
292
 
293
  res = {"original": text['text'], "interpretation": interpretation}
 
284
  interpretation = eval(content[int(num_selected*2+1)])
285
 
286
  encodings = tokenizer(text['text'], return_offsets_mapping=True)
287
+ print(encodings)
288
  print(encodings['offset_mapping'])
289
  is_subword = np.array(encodings['offset_mapping'])[:,0] != 0
290
  print(is_subword)
 
291
  print(interpretation)
292
 
293
  res = {"original": text['text'], "interpretation": interpretation}