Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Help/markdown/vscode/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,19 @@ knowledge base.
into a `.kbb` knowledge‑base file the engine loads on the run. If it isn't in the
sequence (before the tokenizer), the JSON is written but **never loaded into the KB**.

> **Shortcut — start from the "NLPPlus Interface" template.** When you create a new
> analyzer (Analyzers view → **New Analyzer**), pick the **NLPPlus Interface** template.
> It comes pre‑wired for exactly this two‑way exchange: the `json2kbb` pass is already in
> the sequence **before the tokenizer**, and an `output` pass already writes `output.json`
> for the package to read back. You get a working import/export analyzer out of the box —
> just replace the sample `kb/user/data.json` and add your own rules. Choose this template
> and you can skip the manual "add the `json2kbb` pass" step below.

### Step 1 — add the `json2kbb` pass to the analyzer (one time)

*(Skip this step if you started from the **NLPPlus Interface** template — it already has
the `json2kbb` pass and the `output.json` export set up.)*

In the VS Code NLP++ extension, open the **Sequence** view and **right‑click the
tokenizer** (or any pass) → **Insert Python Library Pass (Before Tokenizer)** → choose
**`json2kbb`**. It must run **before the tokenizer** so the data is in the KB before
Expand Down
Loading