Ok so sliding chunking was discarding annotations less than 0.45 because 0.45 + (0.4 margin) + (0.4 margin) < 1.25 which is less than half of chunk_length * (1-overlap) = 2.5 so it was getting discarded by the round function. This hotfix fixes that by diverting the chunking method to just center on short annotations when only_slide=True.
Ok so sliding chunking was discarding annotations less than 0.45 because
0.45 + (0.4 margin) + (0.4 margin) < 1.25
which is less than half ofchunk_length * (1-overlap) = 2.5
so it was getting discarded by the round function. This hotfix fixes that by diverting the chunking method to just center on short annotations whenonly_slide=True
.