Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving abstain detection to a separate module. #20

Merged
merged 2 commits into from
Jun 25, 2023
Merged

Conversation

martiansideofthemoon
Copy link
Collaborator

Fixes #19

Before:

(dipper-venv) kalpesh@arkham:FActScore$ python factscore/factscorer.py --input_path data/labeled/ChatGPT.jsonl --n_samples 30 
[nltk_data] Downloading package punkt to /home/kalpesh/nltk_data...
[nltk_data]   Package punkt is already up-to-date!
06/25/2023 12:22:21 - root - Estimated OpenAI API cost for atomic fact generation ($0.020 per 1000 tokens): $0.00 for 0 words and 0 tokens
06/25/2023 12:22:25 - root - Estimated OpenAI API cost for factscore evaluation ($0.002 per 1000 tokens): $0.00 for 0 words and 0 tokens
06/25/2023 12:22:25 - root - FActScore = 41.6%
06/25/2023 12:22:25 - root - Respond ratio = 100.0%
06/25/2023 12:22:25 - root - # Atomic facts per valid response = 19.8
(dipper-venv) kalpesh@arkham:FActScore$

After:

(dipper-venv) kalpesh@arkham:FActScore$ python factscore/factscorer.py --input_path data/labeled/ChatGPT.jsonl --n_samples 30 --abstain_detection generic
[nltk_data] Downloading package punkt to /home/kalpesh/nltk_data...
[nltk_data]   Package punkt is already up-to-date!
06/25/2023 12:21:50 - root - Estimated OpenAI API cost for atomic fact generation ($0.020 per 1000 tokens): $0.00 for 0 words and 0 tokens
06/25/2023 12:21:53 - root - Estimated OpenAI API cost for factscore evaluation ($0.002 per 1000 tokens): $0.00 for 0 words and 0 tokens
06/25/2023 12:21:53 - root - FActScore = 38.6%
06/25/2023 12:21:53 - root - Respond ratio = 56.7%
06/25/2023 12:21:53 - root - # Atomic facts per valid response = 29.9
(dipper-venv) kalpesh@arkham:FActScore$

@shmsw25 shmsw25 merged commit d4f212e into main Jun 25, 2023
UlisseMini pushed a commit to UlisseMini/FActScore that referenced this pull request Nov 25, 2024
Moving abstain detection to a separate module.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move abstain detection outside the atomic fact generator
2 participants