Selaa lähdekoodia

grammars : add English-only grammar (#10612)

Georgi Gerganov 1 vuosi sitten
vanhempi
sitoutus
5e1ed95583
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  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 ::= [!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]