From 5e1ed95583ca552a98d8528b73e1ff81249c2bf9 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 1 Dec 2024 21:37:54 +0200 Subject: [PATCH] grammars : add English-only grammar (#10612) --- grammars/english.gbnf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 grammars/english.gbnf diff --git a/grammars/english.gbnf b/grammars/english.gbnf new file mode 100644 index 0000000000000..2e53686c82151 --- /dev/null +++ b/grammars/english.gbnf @@ -0,0 +1,6 @@ +# note: this might be incomplete, mostly an example +root ::= en-char+ ([ \t\n] en-char+)* +en-char ::= letter | digit | punctuation +letter ::= [a-zA-Z] +digit ::= [0-9] +punctuation ::= [!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]