MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / join_units

Function join_units

src/framework/text/chunking.cpp:178–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 }
177 // A CJK punctuation token forms a word of its own (attached to nothing),
178 // so a subsequent run never absorbs it and boundaries can land on it.
179 if (is_cjk_punctuation_delimiter(spans[span_pos].text)) {
180 words.push_back({
181 span_pos,
182 span_pos + 1,
183 spans[span_pos].start,
184 spans[span_pos].end,
185 is_sentence_break(spans[span_pos].text),
186 is_clause_break(spans[span_pos].text),
187 });
188 span_pos += 1;
189 continue;
190 }
191 const size_t word_start = span_pos;

Callers 2

append_piece_chunksFunction · 0.85
split_tag_aware_bodyFunction · 0.85

Calls 1

trim_ascii_whitespaceFunction · 0.85

Tested by

no test coverage detected