We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 240433c commit 3c0b813Copy full SHA for 3c0b813
src/semchunk/semchunk.py
@@ -58,7 +58,7 @@ def merge_splits(splits: list[str], chunk_size: int, splitter: str, token_counte
58
low = 0
59
high = len(splits) + 1
60
cumulative_lengths = list(accumulate([len(split) for split in splits], initial=0))
61
- cumulative_lengths.append(cumulative_lengths[-1],)
+ cumulative_lengths.append(cumulative_lengths[-1])
62
63
while low < high:
64
i = bisect_left(cumulative_lengths[low : high + 1], chunk_size * average)
0 commit comments