Skip to content

Compile rules - #52

Merged
kleag merged 4 commits into
masterfrom
compile-rules
Nov 29, 2026
Merged

kleag merged 4 commits into
masterfrom
compile-rules

Conversation

@kleag

@kleag kleag commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Add a python API to compile ModEx rules directly from python. No need to use the external command compile-rules anymore.
Closes issue #12 .

kleag and others added 4 commits November 29, 2026 00:05
… Python (#12)

LimaAnalyzer (C++): compileRules compiles a rules file and writes the
recognizer (.bin) as compile-rules does, loadRecognizerRules reads one into
a recognizer. Lima.compile_rules takes the rules as a string or a file and
saves the .bin and optionally the rules; Lima.add_rules applies a .bin (or
a text rules file) before the named entities rules. PhraseMatcher uses the
shared pipeline and entity types helpers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…amples on a new group

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he process

Tests of a second analyzer and of a .bin used by another process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kleag
kleag merged commit adb727f into master Nov 29, 2026
7 of 8 checks passed
@codacy-production

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 1 medium · 10 minor

Alerts:
⚠ 11 issues (≤ 0 issues of at least minor severity)

Results:
11 new issues

Category Results
Documentation 9 minor
Security 1 medium
1 minor

View in Codacy

🟢 Metrics 66 complexity · 0 duplication

Metric Results
Complexity 66
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant