evo-text-normalize
Text preprocessing for noisy manufacturing defect logs with mixed Chinese-English content.
Key Functions
normalize_width(text)- NFKC normalization + Chinese punctuation mappingpreprocess_text(text)- Full pipeline: width norm, lowercase, whitespace, abbreviationsexpand_abbreviations(text)- Expand common manufacturing abbreviationssplit_mixed_text(text)- Split mixed Chinese/English into contiguous blockssplit_compound_reasons(raw_text)- Split compound reasons by delimiters, preserving spans
Usage
import sys
sys.path.insert(0, '/app/environment/skills/evo-text-normalize/scripts')
from utils import preprocess_text, split_compound_reasons, normalize_width
clean = preprocess_text("PCB Fail")
segments = split_compound_reasons("scratch on panel, button stuck; 屏幕坏了")