MCPcopy Create free account
hub / github.com/KnowledgeXLab/LeanRAG / custom_lower_fast

Function custom_lower_fast

tools/utils.py:54–56  ·  view source on GitHub ↗

中英文兼容的小写转换

(s)

Source from the content-addressed store, hash-verified

52
53
54def custom_lower_fast(s):
55 """中英文兼容的小写转换"""
56 return s.lower() if s.isascii() else s # 中文保持原样
57
58
59def is_word_boundary(text, start, end):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected