You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
In the main function, get_score, change L170 so that _get_score will receive another argument called context.
Also change L209 to receive an argument 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.
Optionally, you can also comment out L111-117 as then you can bypass setting up the retrieval corpus.
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.
The text was updated successfully, but these errors were encountered: