unicode : improve naming style (#10838)
* unicode : improve naming style ggml-ci * cont [no ci]
This commit is contained in:
parent
644fd71b44
commit
08ea539df2
3 changed files with 61 additions and 62 deletions
|
@ -738,7 +738,7 @@ struct llm_tokenizer_wpm_session {
|
|||
std::vector<std::string> words(1, "");
|
||||
|
||||
for (const uint32_t cpt : cpts_nfd) {
|
||||
const auto flags = unicode_cpt_flags(cpt);
|
||||
const auto flags = unicode_cpt_flags_from_cpt(cpt);
|
||||
|
||||
if (flags.is_whitespace) {
|
||||
if (words.back().size()) { // finish previous word if any
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue