]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
whisper : update grammar-parser.cpp (whisper/2058)
authorIkko Eltociear Ashimine <redacted>
Mon, 15 Apr 2024 16:40:27 +0000 (01:40 +0900)
committerGeorgi Gerganov <redacted>
Tue, 14 May 2024 12:31:03 +0000 (15:31 +0300)
preceeding -> preceding

examples/whisper/grammar-parser.cpp

index 2daaaef450427bb74a4f44b85ed5d2e560fc82bb..6133b8c7fc27de4cda8321cce59b043689f505d2 100644 (file)
@@ -190,7 +190,7 @@ namespace grammar_parser {
                 pos = parse_space(pos + 1, is_nested);
             } else if (*pos == '*' || *pos == '+' || *pos == '?') { // repetition operator
                 if (last_sym_start == out_elements.size()) {
-                    throw std::runtime_error(std::string("expecting preceeding item to */+/? at ") + pos);
+                    throw std::runtime_error(std::string("expecting preceding item to */+/? at ") + pos);
                 }
 
                 // apply transformation to previous symbol (last_sym_start to end) according to