Conversation
…updated requirements
|
Hey Joan, During inference, for the same context and question, the answer sometimes returns a string and sometimes returns {'56be4db0acb8001400a502ee': 7035271525382996}. I've tried this on many multiple instances, many times to confirm. And every time the problem has been same. Under same environment, same code, same seed, for same context and question pair, the results vary randomly. Approximately 3/10 times, I was getting correct answer and for the rest of the times I was getting {'56be4db0acb8001400a502ee': 0.7035271525382996}. See the pic below for example: I've checked your code and solved this issue by commenting out lines 388 to 390 in basic/evaluator.py in your master branch, and return values from copies of id2answer_dict and id2score_dict respectively as answer and confidence score. I've read that this issue is due to atomicity in Python-3, which causes an exception when the dictionary is modified at the same time by another thread. I don't know if you've ever faced this issue before. But in case you did, the inference works perfectly with above modifications. Thanks. |

Uh oh!
There was an error while loading. Please reload this page.