From 22b331cca6815c781f737f7336109b610f81261f Mon Sep 17 00:00:00 2001 From: David de Hilster Date: Sat, 22 Feb 2025 09:48:47 -0500 Subject: [PATCH] PYTHON-PACKAGE-007 updating NLP engine Signed-off-by: David de Hilster --- .github/workflows/publish.yml | 2 +- bindings.cpp | 6 +++--- nlp-engine | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 749c1a8..a30111f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -37,7 +37,7 @@ jobs: build_wheels_macos: name: Build wheels on MacOS # Otherwise people with older Macs are out of luck - runs-on: macos-12 + runs-on: macOS-latest # Uncomment for testing # if: false diff --git a/bindings.cpp b/bindings.cpp index 3c69529..fcef53d 100644 --- a/bindings.cpp +++ b/bindings.cpp @@ -27,11 +27,11 @@ using namespace nb::literals; */ const std::string wrap_analyze(NLP_ENGINE &engine, const std::string &parser, - const std::string &input) { + const std::string &input, const bool develop) { _TCHAR *_parser = _tcsdup(parser.c_str()); std::istringstream instream(input); std::ostringstream outstream; - int rv = engine.analyze(_parser, &instream, &outstream); + int rv = engine.analyze(_parser, &instream, &outstream, develop); free(_parser); return outstream.str(); } @@ -42,7 +42,7 @@ NB_MODULE(bindings, m) { "workingFolder"_a = ".", "silent"_a = true) .def("analyze", &wrap_analyze, - "parser"_a, "input"_a, + "parser"_a, "input"_a, "develop"_a = false, "Analyze `input` with `parser`.\n" "The `parser` argument refers to an analyzer contained in the\n" "`analyzers` folder inside the workingFolder used to create\n" diff --git a/nlp-engine b/nlp-engine index 0ea5b3a..09ff51b 160000 --- a/nlp-engine +++ b/nlp-engine @@ -1 +1 @@ -Subproject commit 0ea5b3a3d362c124dbdfbea93f3c36111986889f +Subproject commit 09ff51bef3f86015151b01d1ef4a338a552bbafe