---
title: "Speed K (@speedk) | Hashnode"
description: "Speed K (@speedk) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@speedk"
---

@speedk

# Speed K

@speedk · Joined March 2025

## Comments

[I haven't stress test the example yet. If you get some free time, you may test it and raise issue or Pr directly to the repo.](https://hashnode.com/posts/yasbd-lib-v1-0-0-how-beta-finally-ended/6ab1d79ed58281e7df7d0236/comment/6ac88f33909fa27d919c1c6e#reply-6acd59a376e9bc8386658efe)

Reply · Article · Oct 12 · [yasbd-lib v1.0.0: how beta finally ended](https://hashnode.com/posts/yasbd-lib-v1-0-0-how-beta-finally-ended/6ab1d79ed58281e7df7d0236)

[Follow-up to my reply above: I landed #387, which adds examples/cleaning\_and\_detect\_spans.py. It demonstrates the full pattern: clean with StreamCleaner, segment the cleaned output, then map every sentence back to spans in the unmodified input via a deterministic index map and (-1, -1) for anything unlocatable. Core will no longer get the offset map. The example covers the annotation/highlighting use case without touching the stable API, and the costs I mentioned earlier aren't worth paying until exactness demand shows up in practice.](https://hashnode.com/posts/yasbd-lib-v1-0-0-how-beta-finally-ended/6ab1d79ed58281e7df7d0236/comment/6ac88f33909fa27d919c1c6e#reply-6ac9251ada7360134cc97fc0)

Reply · Article · Oct 9 · [yasbd-lib v1.0.0: how beta finally ended](https://hashnode.com/posts/yasbd-lib-v1-0-0-how-beta-finally-ended/6ab1d79ed58281e7df7d0236)

[Thank you, I’m aware of this. That’s why I deliberately avoided PySBD’s approach of bundling cleaning with the Segmenter class behind a flag. Even PySBD raises an error when both has\_span and clean are enabled. I can try exposing an offset map through init by accepting a dict and mutating it as the stream progresses. Returning the map directly would require changing the existing API, which is already stable. For a streaming API, it gets even trickier: the map must remain consistent as new paragraphs arrive, previously processed text is removed from the buffer, and offsets transition between local and absolute coordinate spaces.](https://hashnode.com/posts/yasbd-lib-v1-0-0-how-beta-finally-ended/6ab1d79ed58281e7df7d0236/comment/6ac88f33909fa27d919c1c6e#reply-6ac8f82bb5c3e799181ce649)

Reply · Article · Oct 9 · [yasbd-lib v1.0.0: how beta finally ended](https://hashnode.com/posts/yasbd-lib-v1-0-0-how-beta-finally-ended/6ab1d79ed58281e7df7d0236)
