mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 13:27:21 +01:00
grammars : add English-only grammar (#10612)
This commit is contained in:
parent
5c7a5aa0c3
commit
5e1ed95583
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 ::= [!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]
|
Loading…
x
Reference in New Issue
Block a user