Skip to content

Help: nlp -STDIN and how the KB carries across a multi-file run (engine 4.2.6) - #229

Merged
ddehilster merged 1 commit into
VisualText:mainfrom
ddehilster:docs/stdin-stream
Oct 12, 2026
Merged

ddehilster merged 1 commit into
VisualText:mainfrom
ddehilster:docs/stdin-stream

Conversation

@ddehilster

Copy link
Copy Markdown
Member

Documents nlp -STDIN from VisualText/nlp-engine#757 (closes VisualText/nlp-engine#548) on the three pages an analyzer writer reads for multi-file runs.

Merge after the engine v4.2.6 release is published — the pages are marked NEW 4.2.6.

  • $isdirrun: a directory run loads once and keeps the KB from file to file; -STDIN does the same for files that arrive over time. Usage for Windows and Unix, the one-line read-ahead (fine for piping a list, not request/response), missing-path and relative-path handling, and the measured gain (parse-en-us, 5 files: 40.8s separate vs 8.0s streamed).
  • $isfirstfile / $islastfile: what to do on each in a multi-file run, how the last file of a stream is determined, and that both are 1 for a single-file run. Fixes the "analzyed" typo.

check-help-docs.ps1: 0 broken links, 0 table/index drift.

🤖 Generated with Claude Code

…ne 4.2.6)

$isdirrun, $isfirstfile and $islastfile only said "in a directory". They
now explain that a directory run loads the analyzer and KB once and keeps
the KB from file to file, and document nlp -STDIN (engine 4.2.6, #548):
one input path per stdin line, blank line or EOF ends the stream, and the
one-line read-ahead that lets $islastfile be set. Also fixes "analzyed".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ddehilster
ddehilster merged commit 1cedea7 into VisualText:main Oct 12, 2026
1 check passed
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.

Build KB Once and Run Many Inputs

1 participant