Python: v0.1.0 - Initial Python Binding Release
What's Changed
- Initial Python Bindings by @benbrandt in #13
- Currently only includes a
CharacterTextSplitter
to test the release process.
from text_splitter import CharacterTextSplitter
# Maximum number of characters in a chunk
max_characters = 1000
# Optionally can also have the splitter trim whitespace for you
splitter = CharacterTextSplitter(trim_chunks=True)
chunks = splitter.chunks("your document text", max_characters)