Repository navigation
-ZONES 40-45 runs only the zones it names (4.2.50) - #810
Merged
Merged
Conversation
Zone mode had no way to run part of a document: chasing a problem in
zone 4,102 of War and Peace meant an 18-minute run, and -DEV wrote trees
only for the first three zones. Now
nlp -ANA parse-en-us -ZONES 4100-4104 -DEV wp.txt
runs only those zones, in 27 s without -DEV (117 s with it), and -DEV
writes every pass tree for each zone that runs. A spec is a zone number,
a range or a list: 7, 40-45, 3,40-45; numbers count from 1, as in the
z040-ana###.tree names.
- Zones outside the range get only the passes before the zone line; the
passes after endzone still run. $isfirstzone and $islastzone mark the
first and last zone that runs.
- The KB and G() start without what skipped zones would have added, so
a zone that depends on earlier ones can differ from a full run.
- stderr says how many zones -ZONES ran; a bad spec ("3-1") stops the
run with exit 1.
- NLP_ENGINE::setZoneRange() for the Python and Node bindings; the spec
parser is in lite/zonerange.h, shared by main, NLP_ENGINE and Parse.
- Zone dump names no longer wrap past 999 (z1234-, was z234-).
- Interpreted and compiled analyzers share Parse::zoneLoop, so both
honor it.
- CI: the zone-mode fixture with -ZONES 2-3, 1,3 and a bad range, on
Linux, macOS and Windows. README: -ZONES, and memory goes by the
skim tree too, not only the largest zone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A heredoc edit had turned the step's '\r' and '\n' into real characters, so the three workflow files did not parse and no build ran. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Zone mode had no way to run part of a document. Chasing a problem in zone 4,102 of War and Peace meant an 18-minute run, and
-DEVwrote trees only for the first three zones.What
runs only those zones: 27 s without
-DEV, 117 s with it, against 18.4 min for the whole book. With-DEV, every zone that runs writes all its pass trees (here 98 per zone, with the "1. Discretion" passage inz4102).7,40-45,3,40-45. Numbers count from 1, as in thez040-ana###.treenames.zoneline; the passes afterendzonestill run.$isfirstzone/$islastzonemark the first and last zone that runs.G()start without what the skipped zones would have added, so a zone that depends on earlier ones can differ from a full run.3-1) stops the run with exit 1.NLP_ENGINE::setZoneRange()for the Python and Node bindings. The spec parser is inlite/zonerange.h, shared bymain,NLP_ENGINEandParse.z1234-, wasz234-).Parse::zoneLoop, so both honor it.Tests
-ZONES 2-3(exact stdout, first/last flags, whichz###trees exist),-ZONES 1,3, and a bad range, on Linux, macOS and Windows.-ZONESthe fixture output is unchanged;-ZONES 9on a 3-zone file runs none and says so; War and Peace as above.README:
-ZONES, and memory goes by the skim tree as well as the largest zone.🤖 Generated with Claude Code