Spaces:
Runtime error
Runtime error
Update game3.py
Browse files
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(
|
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]
|