Financial field extraction

From aifinlab/FinClaw · View interactive version

Financial field 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": "financial_report",
    "report_type": "annual_report",
    "report_period": "2024",
    "source_file": "financial_report.pdf"
  },
  "income_statement": {
    "fields": [
      {
        "field_name": "营业收入",
        "standard_name": "revenue",
        "field_type": "amount",
        "value": 1000000000,
        "unit": "CNY",
        "period": "2024",
        "confidence": 0.98,
        "position": {
          "page": 5,
          "row": 3,
          "column": 2
        }
      },
      {
        "field_name": "营业成本",
        "standard_name": "cost_of_revenue",
        "field_type": "amount",
        "value": 600000000,
        "unit": "CNY",
        "period": "2024",
        "confidence": 0.97,
        "position": {
          "page": 5,
          "row": 4,
          "column": 2
        }
      },
      {
        "field_name": "净利润",
        "standard_name": "net_income",
        "field_type": "amount",
        "value": 200000000,
        "unit": "CNY",
        "period": "2024",
        "confidence": 0.99,
        "position": {
          "page": 5,
          "row": 15,
          "column": 2
        }
      }
    ]
  },
  "balance_sheet": {
    "fields": [
      {
        "field_name": "资产总额",
        "standard_name": "total_assets",
        "field_type": "amount",
        "value": 5000000000,
        "unit": "CNY",
        "period": "2024",
        "confidence": 0.98,
        "position": {
          "page": 6,
          "row": 20,
          "column": 2
        }
      }
    ]
  },
  "cash_flow_statement": {
    "fields": [
      {
        "field_name": "经营活动产生的现金流量净额",
        "standard_name": "operating_cash_flow",
        "field_type": "amount",
        "value": 300000000,
        "unit": "CNY",
        "period": "2024",
        "confidence": 0.97,
        "position": {
          "page": 7,
          "row": 10,
          "column": 2
        }
      }
    ]
  },
  "statistics": {
    "total_fields": 50,
    "extracted_fields": 48,
    "missing_fields": 2,
    "average_confidence": 0.97
  }
}

注意事项与限制

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.