API reference¶
CC4Q Workbench exposes the same corpus-construction and analysis capabilities through three interfaces:
the Web Workbench (
cc4q serve/cc4q demo),the command line (
cc4q <command>),the Python library (
import cc4q).
The reference is grouped by workflow rather than by file layout. Each page lists every public function/class with its signature and docstring, and the module index maps the implementation modules onto those groups.
Note
A name is part of the public API when it appears on one of these pages or
in a module’s __all__. Names starting with _ are implementation
details and may change without notice. The API-coverage check
(docs/check_api_coverage.py) fails CI when a public name disappears
from the reference.
API map¶
Interface / area |
Entry point |
What it covers |
|---|---|---|
Python, top level |
Lazy convenience aliases such as |
|
Corpus pipeline |
LibCST extraction (stage 01), docstring/inline/block segmentation (stage 02), SCCU segmentation (stage 03), cleaning, config, metrics. |
|
Models |
Checkpoint download/verification, device resolution, lazy BERT loading. |
|
Inference |
Snippet and corpus labeling, confidence scores, unit extraction, parser fallback. |
|
Training and evaluation |
Fine-tuning, schema normalization, agreement/kappa/Wilson metrics. |
|
Sampling and annotation |
Random/stratified/quota sampling, annotation sessions, embedded UI. |
|
Workspace and registry |
Asset persistence, JSONL payloads, user model packages. |
|
Web Workbench HTTP API |
Starlette routes used by the browser UI, with request/response notes. |
|
Command line |
Every |
|
Module index |
All public modules, including the ones that are implementation details behind a facade. |