failure.yaml 1.1 KB

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