From f9bd569a9a2d5944e042408fe433e33bf83feaed Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 1 Dec 2024 11:38:35 +0200 Subject: [PATCH] grammars : add English-only grammar --- 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 ::= [!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]