Member Junction
    Preparing search index...

    Splits content into uniform windows: token-bounded chunks for text, and fixed-duration windows for audio/video that has no transcript.

    This is the safety net, not the recommended default. It requires no LLM call, no transcript, and no document structure, so it always produces something — which makes it the right choice for logs, machine-generated text, and media that arrives without cues. Where structure or a transcript exists, prefer StructuralText or Transcript, both of which cut on real boundaries.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get Key(): string

      The registration key for this segmenter. Must match the key passed to @RegisterClass so metadata-driven resolution round-trips.

      Returns string

    Methods

    • Resolve a registered segmenter by key via the MJ class factory. Returns null when no segmenter is registered under that key.

      Uses TryCreateInstance rather than CreateInstance deliberately: the latter never returns null for an unregistered key — it falls back to new BaseSegmenter(), a hollow object whose abstract Key/SegmentCore are undefined. That failure stays invisible until something calls it, so an unresolvable key must be reported as such here.

      Parameters

      • key: string

      Returns BaseSegmenter