Skip to content

Commit

Permalink
undo linebreaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sidnarayanan committed Nov 15, 2024
1 parent 56f50b5 commit 439d276
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions paperqa/litqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def make_mc_options(
if ideal == "null":
if not unsure_option:
raise ValueError(
'Dataset configured for "unsure" options via ideal="null", please specify "unsure_option".'
'Dataset configured for "unsure" options via '
'ideal="null", please specify "unsure_option".'
)
correct_answer = unsure_option
else:
Expand Down Expand Up @@ -93,7 +94,8 @@ def make_discounted_returns(
)
except TypeError as exc:
raise ImportError(
"Making discounted returns requires the 'ldp' extra for 'ldp'. Please: `pip install paper-qa[ldp]`."
"Making discounted returns requires the 'ldp' extra for 'ldp'. Please:"
" `pip install paper-qa[ldp]`."
) from exc

@classmethod
Expand Down Expand Up @@ -210,7 +212,8 @@ def read_litqa_v2_from_hub(
from datasets import load_dataset
except ImportError as exc:
raise ImportError(
"Reading in LitQA2 requires the 'datasets' extra for 'datasets'. Please: `pip install paper-qa[datasets]`."
"Reading in LitQA2 requires the 'datasets' extra for 'datasets'. Please: "
"`pip install paper-qa[datasets]`."
) from exc

litqa_v2 = load_dataset(labbench_dataset, "LitQA2")["train"].to_pandas()
Expand Down

0 comments on commit 439d276

Please sign in to comment.