Skip to main content

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 — the SentenceSegmentationAdapter ABC + the SentenceSegmentationToolProtocol structural 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-compute segment_text. Reused across every tool capability satisfying SentenceSegmentationToolProtocol, exactly as GenericVADAdapter is reused across VAD tools.

API

cjm_sentence_segmentation_adapter_interface.adapter

  • SentenceSegmentationAdapter class — Typed sentence-segmentation task adapter: original punctuated text in,
  • SentenceSegmentationToolProtocol class — Structural contract for sentence-segmentation tool capabilities.

cjm_sentence_segmentation_adapter_interface.generic

  • GenericSentenceSegmentationAdapter class — 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)

Source distribution for cjm-sentence-segmentation-adapter-interface 0.0.1
File Size Uploaded
cjm_sentence_segmentation_adapter_interface-0.0.1.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cjm-sentence-segmentation-adapter-interface 0.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page