mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-26 19:55:04 +00:00
grammars : add English-only grammar (#10612)
This commit is contained in:
6
grammars/english.gbnf
Normal file
6
grammars/english.gbnf
Normal file
@ -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 ::= [!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]
|
Reference in New Issue
Block a user