mirror of
https://github.com/ollama/ollama.git
synced 2026-04-19 23:54:25 +02:00
This package provides a way to convert JSON schemas to equivalent EBNF. It is intended to be a replacement to llama.cpp's schema_to_grammar. This is still an early version and does not yet support all JSON schema features. The to-do list includes: - minumum/maximum constraints on integer types - minLength/maxLength constraints on string types - defs and refs
41 lines
356 B
Plaintext
41 lines
356 B
Plaintext
Another example from Hunt and McIlroy,
|
|
“An Algorithm for Differential File Comparison.”
|
|
https://www.cs.dartmouth.edu/~doug/diff.pdf
|
|
|
|
Anchored diff gives up on finding anything,
|
|
since there are no unique lines.
|
|
|
|
-- old --
|
|
a
|
|
b
|
|
c
|
|
a
|
|
b
|
|
b
|
|
a
|
|
-- new --
|
|
c
|
|
a
|
|
b
|
|
a
|
|
b
|
|
c
|
|
-- diff --
|
|
diff old new
|
|
--- old
|
|
+++ new
|
|
@@ -1,7 +1,6 @@
|
|
-a
|
|
-b
|
|
-c
|
|
-a
|
|
-b
|
|
-b
|
|
-a
|
|
+c
|
|
+a
|
|
+b
|
|
+a
|
|
+b
|
|
+c
|