Update QA_Tensorflow.py
Browse files- QA_Tensorflow.py +1 -1
QA_Tensorflow.py
CHANGED
@@ -60,4 +60,4 @@ def question_answering_tf(question, context):
|
|
60 |
#Return characters from context corresponding to start and end of token characters
|
61 |
start_char, _ = offset_mapping[offset_index][start_token]
|
62 |
_, end_char = offset_mapping[offset_index][end_token]
|
63 |
-
return context[start_char:end_char
|
|
|
60 |
#Return characters from context corresponding to start and end of token characters
|
61 |
start_char, _ = offset_mapping[offset_index][start_token]
|
62 |
_, end_char = offset_mapping[offset_index][end_token]
|
63 |
+
return context[start_char:end_char]
|