cjm-sentence-segmentation-adapter-interface
Typed sentence-segmentation task-adapter interface for the cjm-substrate runtime. The task noun: segment_text(text) -> ordered (start_char, end_char) sentence spans over the ORIGINAL punctuated text — callers (the transcript decomposition pipeline's sentence-split stage) map sentence boundaries onto forced-alignment word spans, then onto word-gap cut times, so preserving the caller's character offsets is the whole contract. Ships the SentenceSegmentationToolProtocol structural contract, the SentenceSegmentationAdapter ABC (task_name sentence_segmentation), and the deliberately bookend-free GenericSentenceSegmentationAdapter (rule-based segmentation is deterministic sub-millisecond CPU work — no cache DB, unlike the VAD/FA generic adapters). The SentenceSpan/SentenceSegmentationResult data nouns live in cjm-capability-primitives (wire kind sentence_segmentation.result). First adapter: cjm-capability-pysbd; wtpsplit/SaT is the planned second if unpunctuated transcriber output creates demand.
Modules
cjm_sentence_segmentation_adapter_interface.__init__cjm_sentence_segmentation_adapter_interface.adapter— The typed sentence-segmentation task contract — theSentenceSegmentationAdapterABC + theSentenceSegmentationToolProtocolstructural contract (capability-unit Option C; B.5 work item 81e43606).cjm_sentence_segmentation_adapter_interface.generic— The generic (tool-agnostic) sentence-segmentation adapter — a thin typed pass-through to the bound tool's pure-computesegment_text. Reused across every tool capability satisfyingSentenceSegmentationToolProtocol, exactly asGenericVADAdapteris reused across VAD tools.
API
cjm_sentence_segmentation_adapter_interface.adapter
SentenceSegmentationAdapterclass — Typed sentence-segmentation task adapter: original punctuated text in,SentenceSegmentationToolProtocolclass — Structural contract for sentence-segmentation tool capabilities.
cjm_sentence_segmentation_adapter_interface.generic
GenericSentenceSegmentationAdapterclass — Generic sentence-segmentation adapter: invoke the pure-compute tool.
Dependencies
Depends on: cjm-capability-primitives, cjm-substrate
Used by: cjm-capability-pysbd
Release files for cjm-sentence-segmentation-adapter-interface 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cjm_sentence_segmentation_adapter_interface-0.0.1.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cjm_sentence_segmentation_adapter_interface-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.9 kB
Release files / cjm_sentence_segmentation_adapter_interface-0.0.1.tar.gz
| Download URL | cjm_sentence_segmentation_adapter_interface-0.0.1.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
186605bffea43683f3d32e20b593c8c12d73881f6fed214a99f7dd9ec1425cf2
|
|
BLAKE2b-256 checksum How to use checksums |
527e35d96bfcfa50eb959686e26507aa77fa32fa16f355fd675fdce5c7b46651
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / cjm_sentence_segmentation_adapter_interface-0.0.1-py3-none-any.whl
| Download URL | cjm_sentence_segmentation_adapter_interface-0.0.1-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e6c8a308e7fe15bd2a741424b0172491fcba690fdcd24e327fce2409ac5a9f2
|
|
BLAKE2b-256 checksum How to use checksums |
2df9e70ebba0b5d5e5b9819409138a14a27edab63a66437ecec1520aa3246057
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|