MediaPipeTasksRetrieval Framework Reference

TextChunker

protocol TextChunker : NSObjectProtocol

A protocol that users can implement to supply their own custom text chunker.

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

    Declaration

    Swift

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