TextChunker.ChunkerBehaviour behaviour (TextChunker v0.7.0)

Copy Markdown View Source

Defines the contract that must be implemented for all text splitting strategies.

Summary

Callbacks

split(text, opts)

@callback split(text :: binary(), opts :: keyword()) :: [TextChunker.Chunk.t()]