mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-05-08 16:28:53 +00:00
10 lines
367 B
C++
10 lines
367 B
C++
#ifndef __SD_TOKENIZERS_BPE_TOKENIZE_UTIL_H__
|
|
#define __SD_TOKENIZERS_BPE_TOKENIZE_UTIL_H__
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
std::vector<std::string> token_split(const std::string& text);
|
|
std::vector<std::string> split_with_special_tokens(const std::string& text, const std::vector<std::string>& special_tokens);
|
|
|
|
#endif // __SD_TOKENIZERS_BPE_TOKENIZE_UTIL_H__
|