Browse Source

grammars : add English-only grammar (#10612)

Georgi Gerganov 1 năm trước cách đây
mục cha
commit
5e1ed95583
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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 ::= [!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]