Top level structural divisions of a doc: headed regions, chapters, or a single section when no structure is declared.
| Verb | Description |
|---|---|
ingest | Load sections from a doc in scope |
count | Return the number of sections |
identify | Locate specific sections matching a query |
from pulp import radiance
rw = radiance.rootwords
rw.sections.ingest(source="sample.txt")
print(rw.sections.count()) # 1
hits = rw.sections.identify(query="*")