json: spaces in output and unrestricted output spaces

This commit is contained in:
ochafik 2024-03-01 19:10:04 +00:00
parent ed24688af8
commit c5bc1540d8

View file

@ -6,7 +6,7 @@ import sys
# whitespace is constrained to a single space char to prevent model "running away" in
# whitespace. Also maybe improves generation quality?
SPACE_RULE = '" "?'
SPACE_RULE = '" "*'
PRIMITIVE_RULES = {
'boolean': '("true" | "false") space',