Skip to content

Commit

Permalink
Add GSM8K regex
Browse files Browse the repository at this point in the history
  • Loading branch information
rlouf committed Aug 14, 2024
1 parent 930b372 commit afd0085
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
r"(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?",
"https://github.com/outlines-dev/outlines",
),
(
r"A: [\w \.\*\-=\+,\?/]{10,30}\. The answer is [1-9][0-9]{0,9}\.",
"A: Some thoughts before answering. The answer is 42.",
),
]


Expand Down
4 changes: 4 additions & 0 deletions src/outlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
r"(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?",
"https://github.com/outlines-dev/outlines",
),
(
r"A: [\w \.\*\-=\+,\?/]{10,30}\. The answer is [1-9][0-9]{0,9}\.",
"A: Some thoughts before answering. The answer is 42.",
),
]


Expand Down

0 comments on commit afd0085

Please sign in to comment.