Event extraction

From aifinlab/FinClaw · View interactive version

Event extraction is an AI agent skill from the GitHub repository aifinlab/FinClaw. 用于风险/市场事件抽取的事件抽取原子 skill,适用于通用行业信息抽取场景。

How to use this skill

Skill file

事件抽取 Skill

数据来源

本 Skill 支持多种金融文本数据输入格式,核心数据来源包括:

1. 金融文档类型

2. 文本数据格式

3. 事件类型

4. 数据格式要求

说明:本 Skill 不包含数据采集功能,需要用户提供清洗后的文本数据。建议文档包含完整的事件描述,以便进行准确的事件抽取。


功能

本 Skill 提供全面的事件抽取能力,涵盖多种抽取功能:

1. 事件类型识别

2. 事件要素抽取

3. 事件属性抽取

4. 事件关系抽取

5. 实体关联

6. 高级处理功能


使用示例

输出示例

{
  "source_info": {
    "document_id": "DOC001",
    "document_type": "announcement",
    "source_file": "announcement.pdf",
    "publish_date": "2024-03-15"
  },
  "events": [
    {
      "event_id": "EVT001",
      "event_type": "risk_event",
      "event_subtype": "default",
      "event_description": "公司发生债务违约事件",
      "timestamp": "2024-03-10",
      "time_expression": "2024年3月10日",
      "confidence": 0.95,
      "severity": "high",
      "entities": [
        {"type": "company", "name": "示例公司", "role": "subject"},
        {"type": "amount", "value": 50000000, "currency": "CNY"}
      ],
      "location": null,
      "status": "ongoing",
      "impact": {
        "scope": "company",
        "description": "可能影响公司信用评级和融资能力"
      }
    },
    {
      "event_id": "EVT002",
      "event_type": "regulatory_event",
      "event_subtype": "penalty",
      "event_description": "收到监管部门的行政处罚",
      "timestamp": "2024-03-12",
      "time_expression": "2024年3月12日",
      "confidence": 0.92,
      "severity": "medium",
      "entities": [
        {"type": "company", "name": "示例公司", "role": "subject"},
        {"type": "organization", "name": "证监会", "role": "regulator"}
      ],
      "location": null,
      "status": "completed",
      "impact": {
        "scope": "company",
        "description": "可能影响公司声誉和合规评级"
      }
    }
  ],
  "event_relations": [
    {
      "source_event": "EVT001",
      "target_event": "EVT002",
      "relation_type": "related",
      "description": "债务违约可能导致监管关注"
    }
  ],
  "statistics": {
    "total_events": 2,
    "event_types": ["risk_event", "regulatory_event"],
    "high_severity_count": 1,
    "medium_severity_count": 1
  }
}

注意事项与限制

1. 数据质量要求

2. 事件识别准确性

3. 事件类型分类

4. 事件关系分析

5. 使用限制


参考资料

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.