| 787 | }; |
| 788 | |
| 789 | int32_t mtmd_tokenize(mtmd_context * ctx, |
| 790 | mtmd_input_chunks * output, |
| 791 | const mtmd_input_text * text, |
| 792 | const mtmd_bitmap ** bitmaps, |
| 793 | size_t n_bitmaps) { |
| 794 | mtmd_tokenizer tokenizer(ctx, text, bitmaps, n_bitmaps); |
| 795 | return tokenizer.tokenize(output); |
| 796 | } |
| 797 | |
| 798 | int32_t mtmd_encode_chunk(mtmd_context * ctx, const mtmd_input_chunk * chunk) { |
| 799 | if (chunk->type == MTMD_INPUT_CHUNK_TYPE_TEXT) { |
no test coverage detected