_split_cjk_chars_legacy#
- scikitplot.corpus._split_cjk_chars_legacy(text)[source]#
Legacy codepoint-level CJK splitting (pre-Layer-0 implementation).
Kept as a fallback when the
regexlibrary is not installed. Identical behaviour to the originalsplit_cjk_chars— iterates raw codepoints and is NOT grapheme-cluster-safe.- Parameters:
- textstr
Input text.
- Returns:
- list[str]
Mixed token list (CJK chars + non-CJK words).
- Parameters:
text (str)
- Return type:
Notes
Developer note: Do not call this directly in new code.
split_cjk_charsdispatches here automatically whenregexis unavailable.