Predict empty answer with high score
Ouverte
- Langage dominant
- Python
- Étoiles
- 1.5k
- Forks
- 668
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
When predicting answer, sometimes I get empty answer, however the score is high enough.
Finally I locate the problem. A function called `_get2` at line 284 and 382 in file `basic/evaluator.py`, the judgement `if len(xi[span[0][0]]) <= span[1][1]:` should be `if len(xi[span[0][0]]) < span[1][1]:`.
When the stop position is at the end of `context`, `span[1][1]` is equal with `len(xi[span[0][0]])`.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.