From: Georgi Gerganov Date: Sun, 1 Dec 2024 19:37:54 +0000 (+0200) Subject: grammars : add English-only grammar (#10612) X-Git-Tag: upstream/0.0.4488~251 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=5e1ed95583ca552a98d8528b73e1ff81249c2bf9;p=pkg%2Fggml%2Fsources%2Fllama.cpp grammars : add English-only grammar (#10612) --- diff --git a/grammars/english.gbnf b/grammars/english.gbnf new file mode 100644 index 00000000..2e53686c --- /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 ::= [!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]