v1.1.0 #210
Replies: 2 comments 2 replies
-
|
Why we want to simplify life for mypy but not for users? Texts option was handy, moreover it's breaking change that will crash almost every app that uses chonkie. Also, moving to character tokenizer may cause unnoticed problems. |
Beta Was this translation helpful? Give feedback.
-
|
Hey @dantetemplar, I hear you on the breaking changes. That's never ideal, unfortunately sometimes unavoidable. Regarding the texts option: We removed this to simplify the package and improve type safety. The same result is easily achievable with Regarding the character tokenizer: This change makes the tokenizers package optional, significantly reducing installation size. Existing code will work unchanged if you have tokenizers installed and specify The benefits are a lighter, cleaner package with better type safety. We think this package will be easier to work with for users in the long run |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What's Changed
charactertype to make thetokenizersoptional by @chonknick in Feat: Shift the tokenizer to becharactertype to make thetokenizersoptional #205chunksto simplify mypy static typing by @chonknick in Fix: return_type is removed for returning onlychunksto simplify mypy static typing #206return_type='texts'to increase type consistency and resolve complex mypy issues by @chonknick in Fix: Removereturn_type='texts'to increase type consistency and resolve complex mypy issues #207__init__.pyby @chonknick in Update version to 1.1.0 in__init__.py#209Full Changelog: v1.0.10...v1.1.0
This discussion was created from the release v1.1.0.
Beta Was this translation helpful? Give feedback.
All reactions