Răsfoiți Sursa

grammars : add English-only grammar (#10612)

Georgi Gerganov 1 an în urmă
părinte
comite
5e1ed95583
1 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 6 0
      grammars/english.gbnf

+ 6 - 0
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 ::= [!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]