# TextChunker

    protocol TextChunker: NSObjectProtocol

A protocol that users can implement to supply their own custom text chunker.
- `
  ### [chunkText(_:)](https://developers.google.com/edge/api/mediapipe/swift/retrieval/Protocols/TextChunker.md.txt#/c:objc(pl)MPPTextChunker(im)chunkText:error:)

  ` Splits the given text into an array of text chunks.

  #### Declaration

  Swift

      func chunkText(_ text: String) throws -> [String]