json: revert space to 1 at most

This commit is contained in:
ochafik 2024-03-10 16:49:15 +00:00
parent ade339d55e
commit e8b78c28eb

View file

@ -8,7 +8,7 @@ from typing import Any, Dict, List, Set, Tuple
# 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',