Skip to content

Commit

Permalink
update regex (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdiazlor committed Sep 2, 2024
1 parent d5f2ae3 commit a2a8e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distilabel/steps/tasks/sentence_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
GenerationAction = Literal["paraphrase", "semantically-similar", "query", "answer"]

POSITIVE_NEGATIVE_PAIR_REGEX = re.compile(
r"## Positive\s+(.*?)(?:\s+## Negative\s+(.*?))?\s*$",
r"\s*## Positive\s+(.*?)(?:\s+## Negative\s+(.*?))?\s*$",
re.DOTALL,
)

Expand Down

0 comments on commit a2a8e86

Please sign in to comment.