Skip to content

Releases: isaacus-dev/semchunk

v3.2.2

09 Jun 08:16
Compare
Choose a tag to compare

Fixed

  • Fixed IndexError being raised when chunking whitespace only texts with overlapping enabled (#18).

v3.2.1

09 Jun 08:16
Compare
Choose a tag to compare

Fixed

  • Fixed minor typos in the README and docstrings.

v3.2.0

20 Mar 04:46
Compare
Choose a tag to compare

Changed

  • Significantly improved the quality of chunks produced when chunking with low chunk sizes or documents with minimal varying levels of whitespace by adding a new rule to the semchunk algorithm that prioritizes splitting at the occurrence of single whitespace characters preceded by hierarchically meaningful non-whitespace characters over splitting at all single whitespace characters in general (#17).

v3.1.3

11 Mar 06:17
Compare
Choose a tag to compare

Changed

  • Added mention of Isaacus to the README.

Full Changelog: v3.1.2...v3.1.3

v3.1.2

06 Mar 11:16
Compare
Choose a tag to compare

Changed

  • Changed test model from isaacus/emubert to isaacus/kanon-tokenizer.

Full Changelog: v3.1.1...v3.1.2

v3.1.1

18 Feb 05:02
Compare
Choose a tag to compare

Added

  • Added a note to the quickstart section of the README advising users to deduct the number of special tokens automatically added by their tokenizer from their chunk size. This note had been removed in version 3.0.0 but has been readded as it is unlikely to be obvious to users.

3.1.0

16 Feb 10:14
Compare
Choose a tag to compare

Added

  • Introduced a new cache_maxsize argument to chunkerify() and chunk() that specifies the maximum number of text-token count pairs that can be stored in a token counter's cache. The argument defaults to None, in which case the cache is unbounded.

v3.0.4

13 Feb 23:02
Compare
Choose a tag to compare

Fixed

  • Fixed bug where attempting to chunk only whitespace characters would raise ValueError: not enough values to unpack (expected 2, got 0) (ScrapeGraphAI/Scrapegraph-ai#893).

v3.0.3

13 Feb 05:54
Compare
Choose a tag to compare

Fixed

  • Fixed isaacus/emubert mistakenly being set to isaacus-dev/emubert in the README and tests.

v3.0.2

13 Feb 05:47
Compare
Choose a tag to compare

This release was yanked due to a typo.

Fixed

  • Significantly sped up chunking very long texts with little to no variation in levels of whitespace used (fixing #8) and, in the process, also slightly improved overall performance.

Changed

  • Transferred semchunk to Isaacus.
  • Began formatting with Ruff.