CoolFace
Apppublic

krishna0506/Document_Intelligence

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
chunking.py5 linesDownload Raw Back to root
1def fixed_chunk(text, size=500, overlap=50):
2    chunks = []
3    for i in range(0, len(text), size - overlap):
4        chunks.append(text[i:i + size])
5    return chunks