When processing on python, the passage is divided into elements (words and symbols) by a special algorithm.
The result returns the position of the word in the passage.
When the found word is highlighted on the client's side (demo\src\components\demos\ReadingComprehension.js), the following occurs:
Accordingly, if there is a duplicate response to the original, it highlights the wrong value.
need to repeat the algorithm of splitting into elements but in the opposite direction.
Are there any options?
We have fixed this for the NAQANet model, but the BiDAF visualization still uses the old UI. We have access to the predicted span indices, they just aren't used. Basically, this code needs to be updated to be like this code.
Response from
/predict/machine-comprehension
:When processing on python, the passage is divided into elements (words and symbols) by a special algorithm. The result returns the position of the word in the passage. When the found word is highlighted on the client's side (
demo\src\components\demos\ReadingComprehension.js
), the following occurs:Accordingly, if there is a duplicate response to the original, it highlights the wrong value. need to repeat the algorithm of splitting into elements but in the opposite direction. Are there any options?
Samples: Correct: https://demo.allennlp.org/reading-comprehension/Njg5MDY2 Incorrect https://demo.allennlp.org/reading-comprehension/Njg5MDY1