Bert: Sometime I get running error, maybe it is a bug

Created on 1 Dec 2018  路  1Comment  路  Source: google-research/bert

https://github.com/google-research/bert/blob/4a47cc2da23dcb4ab1bf5c08085910b6fd94a4cf/run_squad.py#L865-L890
This may cause best_non_null_entry is None when FLAGS.version_2_with_negative is True, and I think if not nbest should be moved up.

Most helpful comment

Yes, sometimes the best_non_null_entry can be null and breaks the prediction process. It would be better to add a if/else to avoid such unexpected behavior.

>All comments

Yes, sometimes the best_non_null_entry can be null and breaks the prediction process. It would be better to add a if/else to avoid such unexpected behavior.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LucasLLC picture LucasLLC  路  3Comments

awasthiabhijeet picture awasthiabhijeet  路  3Comments

wangwei7175878 picture wangwei7175878  路  4Comments

waallf picture waallf  路  4Comments

santhoshkolloju picture santhoshkolloju  路  3Comments