Open laiviet opened 12 months ago
Hi @laiviet, thanks for your interest with our work!!
In this case, I think you need to modify some code in factscorer.py - but it shouldn't be too complicated! What you need to do is
get_score
, change L170 so that _get_score
will receive another argument called context
.context
, and then, comment out L215-219 so that it won't use retrieval to obtain context and instead just use the context given as an argument.Let me know if you have any further questions! =)
I have a golden paragraph that doesn't need to be retrieved from any source. How to bypass all unnecessary retrieval steps to calculate the FactScore for a predicted sentence..
Thank you in advance.