diff --git a/deploy/services/classify.py b/deploy/services/classify.py index 531f32a..b9d4a70 100644 --- a/deploy/services/classify.py +++ b/deploy/services/classify.py @@ -125,6 +125,9 @@ def _safe_json_parse(raw): text = _re.sub(r',\s*]', ']', text) return json.loads(text) + + +def _smart_extract(elements_json): """ Умная выжимка текста для классификации (решение Q3 от Opus).