MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / normalize_text

Function normalize_text

app/services/tenvision_adapter.py:61–62  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

59 return [char for char in normalize_text(text) if '\u4e00' <= char <= '\u9fff']
60
61
62def is_prompt_like_text(text):
63 compact = normalize_text(text)
64 if not compact:
65 return False

Callers 7

extract_chinese_charsFunction · 0.85
is_prompt_like_textFunction · 0.85
parse_prompt_charsFunction · 0.85
ocr_itemsFunction · 0.85
recognize_prompt_boxesFunction · 0.85
recognize_yellow_boxesFunction · 0.85
run_pipeline_bytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected