数据集:

JanosAudran/financial-reports-sec

英文

[financial-reports-sec] 数据集卡片

数据集概要

该数据集包含1993年至2020年期间在SEC EDGAR系统中提交的美国公共公司的年度报告。每份年度报告(10K申报)分为20个部分,每个部分又被分成单个句子。情感标签是基于股票市场对申报日期附近的3个不同时间窗口[t-1,t+1],[t-1,t+5]和[t-1,t+30]反应而提供的。数据集还包含每个申报的附加元数据。

数据集配置

提供四个配置:

  • large_lite:
    • 只包含所需的基本特征,省略了额外的元数据。
    • 特征列表:
      • cik
      • 句子
      • 部分
      • 标签
      • 报告日期
      • 文档ID
      • 句子ID
      • 句子计数
  • large_full:
    • 包含所有特征。
    • 特征列表(不包括上述lite版本中的特征):
      • 名称
      • 股票代码
      • 交易所
      • 实体类型
      • sic
      • 注册状态
      • 股票计数
      • 预计接受日期时间
      • 表格
      • 报告日期
      • 返回
  • small_lite:
    • 与large_lite版本相同,只是为训练/测试/验证拆分加载了(200,000/20,000/20,000)个句子。
  • small_full:
    • 与large_full版本相同,只是为训练/测试/验证拆分加载了(200,000/20,000/20,000)个句子。

使用方法

import datasets

# Load the lite configuration of the dataset
raw_dataset = datasets.load_dataset("JanosAudran/financial-reports-sec", "large_lite")

# Load a specific split
raw_dataset = datasets.load_dataset("JanosAudran/financial-reports-sec", "small_full", split="train")

支持的任务

该数据集可直接用于以下任务:

  • 掩码语言建模
    • 可以在这个财务文本语料库上微调类似BERT的模型。
  • 情感分析
    • 对于每份年度报告,根据申报日期附近的市场反应(参考注释),提供一个标签["positive", "negative"]。
  • 下一句预测/句子顺序预测
    • 从申报中提取的句子按其原始顺序排列,因此该数据集可以很容易地适应这些任务中的任何一个。

语言

所有句子均为英文。

数据集结构

数据实例

请参阅数据集预览。

数据字段

特征名称

  • 描述
  • 数据类型
  • 示例/结构

cik

  • SEC用于标识公司的10位数字标识符。
  • 字符串
  • '0000001750'

句子

  • 来自10-K申报的单个句子。
  • 字符串
  • 'The finance agreement is secured by a first priority security interest in all insurance policies, all unearned premium, return premiums, dividend payments and loss payments thereof.'

部分

  • 句子所在的10-K申报部分。
  • ClassLabel
  • ClassLabel(names=['section_1', 'section_10', 'section_11', 'section_12', 'section_13', 'section_14', 'section_15', 'section_1A', 'section_1B', 'section_2','section_3', 'section_4', 'section_5', 'section_6', 'section_7', 'section_7A','section_8', 'section_9', 'section_9A', 'section_9B'], id=None)
    

标签

  • 整个申报的情感标签(正面或负面),基于不同的时间窗口。
  • 类别标签的字典
  • {
      '1d': ClassLabel(names=['positive', 'negative'], id=None),
      '5d': ClassLabel(names=['positive', 'negative'], id=None),
      '30d': ClassLabel(names=['positive', 'negative'], id=None)
    }
    

报告日期

  • 10-K报告提交给SEC的日期。
  • 字符串
  • '2021-03-10'

文档ID

  • 用于唯一标识具体的10-K申报的ID。在所有配置和拆分中唯一。可用于标识句子所来自的文档。
  • 字符串
  • '0000001750_10-K_2020'

句子ID

  • 用于唯一标识具体句子的ID。在所有配置和拆分中唯一。
  • 字符串
  • '0000001750_10-K_2020_section_1_100'

句子计数

  • 用于标识句子的连续计数。仅对于给定的配置和拆分唯一。
  • 字符串
  • 123

名称

  • 申报实体的名称
  • 字符串
  • 'Investar Holding Corp'

股票代码

  • 申报实体的股票代码列表。
  • 字符串列表
  • ['ISTR']

交易所

  • 申报实体的交易所列表。
  • 字符串列表
  • ['Nasdaq']

实体类型

  • 在10-K申报中标识的实体类型。
  • 字符串
  • 'operating'

sic

  • 申报实体的四位SIC代码。
  • 字符串
  • '6022'

注册状态

  • 申报实体的注册状态的两位字符代码。
  • 字符串
  • 'LA'

股票计数

  • 用于内部使用。股票代码的计数。始终为1。
  • 整数
  • 1

预计接受日期时间

  • 申报被接受到SEC EDGAR系统的完整时间戳。
  • 字符串
  • '2021-03-10T14:26:11.000Z'

表格

  • 申报类型。在数据集中始终为10-K。
  • 字符串
  • '10-K'

报告日期

  • 实体提交报告的财年最后日期。
  • 字符串
  • '2020-12-31'

返回

  • 内部使用。用于计算情感标签的价格和时间戳。
  • 字典
  • {'1d': {
      'closePriceEndDate': 21.45746421813965,
      'closePriceStartDate': 20.64960479736328,
      'endDate': '2021-03-11T00:00:00-05:00',
      'startDate': '2021-03-09T00:00:00-05:00',
      'ret': 0.03912226855754852
      },
    '5d': {
      'closePriceEndDate': 21.743167877197266,
      'closePriceStartDate': 20.64960479736328,
      'endDate': '2021-03-15T00:00:00-04:00',
      'startDate': '2021-03-09T00:00:00-05:00',
      'ret': 0.052958063781261444
      },
    '30d': {
      'closePriceEndDate': 20.63919448852539,
      'closePriceStartDate': 20.64960479736328,
      'endDate': '2021-04-09T00:00:00-04:00',
      'startDate': '2021-03-09T00:00:00-05:00',
      'ret': -0.0005041408003307879}}
    

数据拆分

Config train validation test
large_full 67,316,227 1,585,561 2,965,174
large_lite 67,316,227 1,585,561 2,965,174
small_full 200,000 20,000 20,000
small_lite 200,000 20,000 20,000

数据集统计摘要

Variable count mean std min 1% 25% 50% 75% 99% max
Unique Firm Count 4,677
Filings Count 55,349
Sentence Count 71,866,962
Filings per Firm 4,677 12 9 1 1 4 11 19 27 28
Return per Filing - 1d 55,349 0.008 0.394 -0.973 -0.253 -0.023 0 0.02 0.367 77.977
Return per Filing - 5d 55,349 0.013 0.584 -0.99 -0.333 -0.034 0 0.031 0.5 100
Return per Filing - 30d 55,349 0.191 22.924 -0.999 -0.548 -0.068 0.001 0.074 1 5,002.748
Sentences per Filing 55,349 1,299 654 0 110 839 1,268 1,681 3,135 8,286
Sentences by Section - section_1 55,349 221 183 0 0 97 180 293 852 2,724
Sentences by Section - section_10 55,349 24 40 0 0 4 6 20 173 1,594
Sentences by Section - section_11 55,349 16 47 0 0 3 3 4 243 808
Sentences by Section - section_12 55,349 9 14 0 0 3 4 8 56 1,287
Sentences by Section - section_13 55,349 8 20 0 0 3 3 4 79 837
Sentences by Section - section_14 55,349 22 93 0 0 3 3 8 413 3,536
Sentences by Section - section_15 55,349 177 267 0 0 9 26 315 1104 4,140
Sentences by Section - section_1A 55,349 197 204 0 0 3 158 292 885 2,106
Sentences by Section - section_1B 55,349 4 31 0 0 1 3 3 13 2,414
Sentences by Section - section_2 55,349 16 45 0 0 6 8 13 169 1,903
Sentences by Section - section_3 55,349 14 36 0 0 4 5 12 121 2,326
Sentences by Section - section_4 55,349 7 17 0 0 3 3 4 66 991
Sentences by Section - section_5 55,349 20 41 0 0 10 15 21 87 3,816
Sentences by Section - section_6 55,349 8 29 0 0 3 4 7 43 2,156
Sentences by Section - section_7 55,349 265 198 0 0 121 246 373 856 4,539
Sentences by Section - section_7A 55,349 18 52 0 0 3 9 21 102 3,596
Sentences by Section - section_8 55,349 257 296 0 0 3 182 454 1105 4,431
Sentences by Section - section_9 55,349 5 33 0 0 3 3 4 18 2,330
Sentences by Section - section_9A 55,349 17 16 0 0 8 15 23 50 794
Sentences by Section - section_9B 55,349 4 18 0 0 2 3 4 23 813
Word count per Sentence 71,866,962 28 22 1 2 16 24 34 98 8,675

数据集创建

策划理由

为了创建这个数据集,需要清理和处理多个信息源以进行数据合并。从原始申报开始:

  • 添加了有用的申报和公司的元数据。
  • 仔细创建了围绕申报日期的时间窗口。
  • 然后添加了股票价格数据。
  • 去除了模棱两可/重复的记录。

源数据

初始数据收集和规范化

初始数据由研究论文《EDGAR-CORPUS: Billions of Tokens Make The World Go Round》的作者收集和处理。市场价格和回报数据来自Yahoo Finance。其他元数据来自SEC。

谁是源语言的生产者?

美国公开公司在SEC提交的报告。

注释

注释过程

情感分类的标签基于公开数据的申报日期周围固定时间窗口内的买入持有回报率。选择回报率是因为它反映了解读文件中新信息时的综合市场情报。对于每个申报日期 t,使用 t-1 和 t+W 处的股票价格计算回报率。如果回报率为正,分配正面标签;否则,分配负面标签。使用三个不同的窗口分配标签:

  • 1天:[t-1,t+1]
  • 5天:[t-1,t+5]
  • 30天:[t-1,t+30]

窗口基于历书日,并且对周末和节假日进行了调整。使用3个窗口的理由如下:

  • 非常短的窗口可能不足以让申报中包含的所有信息在股票价格中反映出来。
  • 非常长的窗口可能捕捉到推动该公司股票价格的其他事件。
谁是注释者?

金融市场参与者。

个人和敏感信息

该数据集包含来自SEC的公开申报数据。市场回报数据来自Yahoo Finance。

使用数据的注意事项

数据集的社会影响

较低或没有社会影响。

偏见讨论

该数据集涉及公共公司的财务信息,因此文本的语气和风格与财务文献一致。

其他已知限制

NA

附加信息

数据集策划者

Aman Khan

许可信息

该数据集使用 Apache 2.0 许可。

参考文献

引用信息

请使用以下信息引用此数据集:

@ONLINE{financial-reports-sec,
author = "Aman Khan",
title = "Financial Reports SEC",
url = "https://huggingface.co/datasets/JanosAudran/financial-reports-sec"
}