Spaces:
Runtime error
Runtime error
Update game1.py
Browse files
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}
|