Timeline extraction

From aifinlab/FinClaw · View interactive version

Timeline 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": "legal_case",
    "source_file": "case_document.pdf"
  },
  "timeline": {
    "events": [
      {
        "event_id": "EVT001",
        "event_type": "case_filing",
        "event_description": "案件立案",
        "timestamp": "2024-01-15",
        "time_expression": "2024年1月15日",
        "confidence": 0.95,
        "entities": [
          {"type": "person", "name": "张三"},
          {"type": "organization", "name": "法院A"}
        ],
        "location": "法院A"
      },
      {
        "event_id": "EVT002",
        "event_type": "hearing",
        "event_description": "开庭审理",
        "timestamp": "2024-03-20",
        "time_expression": "2024年3月20日",
        "confidence": 0.92,
        "entities": [
          {"type": "person", "name": "李四"},
          {"type": "organization", "name": "法院A"}
        ],
        "location": "法院A"
      },
      {
        "event_id": "EVT003",
        "event_type": "judgment",
        "event_description": "判决结果",
        "timestamp": "2024-05-10",
        "time_expression": "2024年5月10日",
        "confidence": 0.98,
        "entities": [
          {"type": "organization", "name": "法院A"}
        ],
        "location": "法院A"
      }
    ],
    "time_span": {
      "start": "2024-01-15",
      "end": "2024-05-10",
      "duration_days": 116
    }
  },
  "time_relations": [
    {
      "source_event": "EVT001",
      "target_event": "EVT002",
      "relation_type": "before",
      "time_interval": 65
    },
    {
      "source_event": "EVT002",
      "target_event": "EVT003",
      "relation_type": "before",
      "time_interval": 51
    }
  ],
  "statistics": {
    "total_events": 3,
    "event_types": ["case_filing", "hearing", "judgment"],
    "time_span_days": 116
  }
}

注意事项与限制

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.