We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
semchunk.chunk()
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memoization is destorying semchunk.chunk()'s signature as described in this issue. A fix is to run:
def chunk(text: str, chunk_size: int, token_counter: callable, memoize: bool=True, _recursion_depth: int = 0) -> list[str]: ... chunk = functools.wraps(chunk)(functools.cache(chunk))
Instead of:
@functools.cache def chunk(text: str, chunk_size: int, token_counter: callable, memoize: bool=True, _recursion_depth: int = 0) -> list[str]: ...
The text was updated successfully, but these errors were encountered:
This bug has been fixed in v0.2.3.
Sorry, something went wrong.
umarbutler
No branches or pull requests
Memoization is destorying
semchunk.chunk()
's signature as described in this issue. A fix is to run:Instead of:
The text was updated successfully, but these errors were encountered: