Financial report layout parsing

From aifinlab/FinClaw · View interactive version

Financial report layout parsing 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": "annual_report",
    "report_period": "2024",
    "source_file": "annual_report.pdf",
    "page_count": 200
  },
  "report_structure": {
    "sections": [
      {
        "section_id": "SEC001",
        "section_name": "利润表",
        "section_type": "income_statement",
        "start_page": 50,
        "end_page": 52,
        "tables": [
          {
            "table_id": "TBL001",
            "table_type": "income_statement",
            "position": {
              "page": 50,
              "bbox": [100, 200, 500, 600]
            },
            "row_count": 30,
            "column_count": 5
          }
        ]
      },
      {
        "section_id": "SEC002",
        "section_name": "资产负债表",
        "section_type": "balance_sheet",
        "start_page": 53,
        "end_page": 55,
        "tables": [
          {
            "table_id": "TBL002",
            "table_type": "balance_sheet",
            "position": {
              "page": 53,
              "bbox": [100, 200, 500, 700]
            },
            "row_count": 50,
            "column_count": 5
          }
        ]
      },
      {
        "section_id": "SEC003",
        "section_name": "现金流量表",
        "section_type": "cash_flow_statement",
        "start_page": 56,
        "end_page": 58,
        "tables": [
          {
            "table_id": "TBL003",
            "table_type": "cash_flow_statement",
            "position": {
              "page": 56,
              "bbox": [100, 200, 500, 600]
            },
            "row_count": 25,
            "column_count": 5
          }
        ]
      },
      {
        "section_id": "SEC004",
        "section_name": "财务报表附注",
        "section_type": "notes",
        "start_page": 59,
        "end_page": 200,
        "subsections": [
          {
            "subsection_name": "一、公司基本情况",
            "start_page": 59,
            "end_page": 65
          },
          {
            "subsection_name": "二、财务报表编制基础",
            "start_page": 66,
            "end_page": 70
          }
        ]
      }
    ]
  },
  "statistics": {
    "total_sections": 4,
    "total_tables": 3,
    "total_pages": 200,
    "parsing_confidence": 0.95
  }
}

注意事项与限制

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.