# -*- coding: utf-8 -*- # 规则文件:失败/流标/废标检测 # 源:template_extract/template_extractor.py is_fail() 第 80 行 # 迁移日期:2026-08-12 Phase 7 version: 1 category: FAILURE description: | 失败/流标/废标检测。原 template_extractor.is_fail() 函数, 使用单一关键词或运算匹配。迁移后 is_fail() 改为调用 RuleLoader.get_pattern("failure_keywords").search(text)。 patterns: - id: failure_keywords description: 采购失败/流标/废标/异常/撤销关键词 pattern: '(采购|招标)失败|人数不足|无效|中止|终止|废标|流标|失败|作废|异常|撤销|另行公告|另行公示' method: search golden_examples: - input: "本次招标失败" should_match: true - input: "本项目因人数不足而废标" should_match: true - input: "采购终止公告" should_match: true - input: "另行公告" should_match: true - input: "项目正常进行中" should_match: false - input: "中标结果公示" should_match: false - input: "成功中标" should_match: false