bindings: cueseg, so a transcript can be chaptered in process

This commit is contained in:
funkpower
2026-09-20 09:00:26 -04:00
parent f9f809f701
commit dd09499e68
11 changed files with 112 additions and 3 deletions
@@ -20,6 +20,7 @@ from ._catena import (
parse_identifier,
parse_subtitles,
scrub,
segment_cues,
series_of,
split_collection,
)
@@ -34,6 +35,7 @@ __all__ = [
"parse_identifier",
"parse_subtitles",
"scrub",
"segment_cues",
"series_of",
"split_collection",
]
@@ -21,6 +21,9 @@ def pack_cues(
seconds: float | None = ...,
max_tokens: int | None = ...,
) -> list[dict[str, Any]]: ...
def segment_cues(
cues: Iterable[Mapping[str, Any]], *, duration: float | None = ...
) -> list[dict[str, Any]]: ...
def split_collection(markdown: str) -> list[dict[str, Any]]: ...
def fuse_hits(
hits: Iterable[Mapping[str, Any]],