shmsw25 / FActScore

A package to evaluate factuality of long-form generation. Original implementation of our EMNLP 2023 paper "FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generation"
https://arxiv.org/abs/2305.14251
MIT License
292 stars 43 forks source link

How to modify the code to calculate factscore between any two paragraphs/sentences without retrieval steps? #32

Open laiviet opened 12 months ago

laiviet commented 12 months ago

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.

shmsw25 commented 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

Let me know if you have any further questions! =)