Skip to content

Commit 29ade18

Browse files
ggerganovarthw
authored andcommitted
grammars : add English-only grammar (ggml-org#10612)
1 parent 783b21b commit 29ade18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

grammars/english.gbnf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# note: this might be incomplete, mostly an example
2+
root ::= en-char+ ([ \t\n] en-char+)*
3+
en-char ::= letter | digit | punctuation
4+
letter ::= [a-zA-Z]
5+
digit ::= [0-9]
6+
punctuation ::= [!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]

0 commit comments

Comments
 (0)