We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/epfl-dlab/transformers-CFG/blob/main/examples/grammars/json.ebnf#L6
I just realise that the grammar here for json only allows json object at root level.
In fact, json grammar accepts array and other atomic values like string or number at root level.
So a string itself is a valid json.
Here is the spec of JSON standard: https://www.json.org/json-en.html
Probably we just need to replace the root grammar rule json::=object to json::= value and fix the potentially impacted tests.
json::=object
json::= value
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/epfl-dlab/transformers-CFG/blob/main/examples/grammars/json.ebnf#L6
I just realise that the grammar here for json only allows json object at root level.
In fact, json grammar accepts array and other atomic values like string or number at root level.
So a string itself is a valid json.
Here is the spec of JSON standard: https://www.json.org/json-en.html
Probably we just need to replace the root grammar rule
json::=object
tojson::= value
and fix the potentially impacted tests.The text was updated successfully, but these errors were encountered: