filedfact-100k
收藏资源简介:
FiledFact-100K 是一个包含 100,000 对数据的样本集,旨在将 SEC(美国证券交易委员会)财务文件中 XBRL(可扩展商业报告语言)标注的结构化财务事实,与文件中实际显示这些事实的精确文本片段进行关联和验证。该数据集的核心特点是确保每个记录都满足文本跨度精确匹配(`text[text_start:text_end] == displayed_text`)和数值验证,并提供可直接在原始 SEC 文件中高亮定位到具体数字的证据链接(`evidence_url`)以及官方文件 URL(`source_url`),实现了事实级别的可追溯性。每个数据记录包含一个经过清理的 SEC 文件文本段落(源自财务报表表格、附注、管理层讨论与分析等),以及一个对应的财务事实。事实信息详细记录了 XBRL 概念、报告期间、数值、单位、解码后的维度段(例如业务部门、地理区域),以及在文本段落中定位显示值的精确字符起始和结束位置(`text_start`, `text_end`)。此外,数据还包含呈现层信息,如数值缩放比例(`scale`,用于处理“以千计”等表述)、文本中的符号表示(`sign_in_text`,如括号表示的负数)等。数据集规模为 100,000 条记录,每条记录对应一个已验证的、有据可查的独立事实。数据来源于 5,668 家不同的公司,涵盖 54,452 份 SEC 文件(如 10-K、10-Q、20-F 等),涉及 2016 至 2027 财年,并包含遵循 US GAAP 和 IFRS 准则的申报者。数据以 Parquet 格式提供,按公司不重叠的原则划分为训练集(94,084 条)和验证集(5,916 条)。该数据集专为支持金融自然语言处理和文档理解研究而设计,特别适用于以下任务:1) **跨度定位**:根据给定的文本和事实身份信息,在文本中定位显示该事实的确切字符串。2) **数值归一化**:根据上下文和显示的文本,预测标准化的数值、单位、缩放比例和符号。3) **XBRL 语义基础**:根据文本和显示值,预测其对应的 XBRL 概念、报告期间和维度信息。此外,它也适用于微调信息提取模型、进行可验证来源的检索增强生成评估、表格理解研究以及构建金融 NLP 基准测试。数据质量方面,所有记录均通过了数值验证。一项针对 1,000 对随机数据的独立审计显示,语义标签错误率(如错误的概念、期间、符号或缩放比例)上界约为 2%。数据集中还保留了极少数(约 0.01%)申报者自身的 XBRL 标记错误,以忠实反映原始文件情况。需要注意的是,此公开样本是用于演示和研究的子集,其抽样偏向于在文本中清晰、明确呈现的事实,并非每个文本段落都包含其所有事实的完整集合。
FiledFact-100K is a sample set containing 100,000 data pairs, designed to associate and validate structured financial facts annotated with XBRL (eXtensible Business Reporting Language) in SEC (U.S. Securities and Exchange Commission) financial documents with the exact text snippets in the documents that display these facts. The core feature of this dataset is ensuring that each record satisfies precise text span matching (`text[text_start:text_end] == displayed_text`) and numerical validation, providing evidence links (`evidence_url`) that allow direct highlighting of specific numbers in the original SEC files, as well as official document URLs (`source_url`), achieving fact-level traceability. Each data record includes a cleaned text paragraph from SEC documents (derived from financial statement tables, footnotes, management discussion and analysis, etc.) and a corresponding financial fact. Fact information details XBRL concepts, reporting periods, values, units, decoded dimension segments (e.g., business segments, geographic regions), and precise character start and end positions (`text_start`, `text_end`) for locating displayed values in the text paragraph. Additionally, the data includes presentation layer information, such as numerical scaling (`scale`, for handling expressions like in thousands), sign representation in text (`sign_in_text`, e.g., parentheses for negative numbers), etc. The dataset size is 100,000 records, each corresponding to a verified, well-documented independent fact. Data is sourced from 5,668 different companies, covering 54,452 SEC documents (e.g., 10-K, 10-Q, 20-F) from fiscal years 2016 to 2027, and includes filers following US GAAP and IFRS standards. Data is provided in Parquet format, divided into training (94,084 records) and validation (5,916 records) sets based on a non-overlapping company principle. The dataset is specifically designed to support financial natural language processing and document understanding research, particularly suitable for tasks such as: 1) **Span Localization**: Locating the exact string displaying a fact in text based on given text and fact identity information. 2) **Numerical Normalization**: Predicting standardized values, units, scaling, and signs based on context and displayed text. 3) **XBRL Semantic Grounding**: Predicting corresponding XBRL concepts, reporting periods, and dimension information based on text and displayed values. Furthermore, it is applicable for fine-tuning information extraction models, conducting verifiable source-based retrieval-augmented generation evaluation, table understanding research, and building financial NLP benchmarks. In terms of data quality, all records have passed numerical validation. An independent audit of 1,000 random data pairs shows an upper bound of approximately 2% for semantic label error rates (e.g., incorrect concepts, periods, signs, or scaling). The dataset also retains a very small number (about 0.01%) of XBRL tagging errors from the filers themselves to faithfully reflect the original document conditions. Note that this public sample is a subset for demonstration and research purposes, with sampling biased towards facts that are clearly and explicitly presented in the text, and not every text paragraph includes a complete set of all its facts.
数据集概述
FiledFact-100K 是一个面向金融自然语言处理(NLP)的 span-grounded(跨度定位)和 value-verified(数值验证)数据集,包含 100,000 对将 XBRL(可扩展商业报告语言)财务事实与 SEC(美国证券交易委员会)文件中显示这些事实的确切字符位置相关联的记录。
核心特性
- 精确跨度:每条记录都保证
text[text_start:text_end] == displayed_text成立。 - 验证数值:每个标签都经过与文件自身机器可读数据的交叉验证,并公布了测量的错误率。
- 事实级出处:每条记录都包含
evidence_url(可以直接打开文件并滚动到相应数值高亮位置)和source_url(sec.gov 上的官方文档链接)。 - 呈现层标签:提供
scale(如“千”为单位)、sign_in_text(如括号表示负数)等字段。 - 解码后的段维度:45% 的记录包含维度信息(如业务部门、地理区域、产品),并带有人工可读的轴/成员标签。
- 包含扩展概念:16.9% 的记录包含公司特定的概念(
ext-*),这些信息在大多数结构化金融数据集中被丢弃。
数据集规模与组成
- 记录数:100,000 对(训练集 94,084,验证集 5,916)。
- 公司数:5,668 家。
- 文件数:54,452 份。
- 时间跨度:财年 2016-2027。
- 文件类型:涵盖 10-K/Q、20-F、40-F、6-K 及其修订版。
- 会计准则:包含 US GAAP(美国通用会计准则)和 IFRS(国际财务报告准则,针对 20-F 文件)。
- 货币:支持多种货币。
数据格式与模式
数据集采用 parquet 格式,包含 train 和 validation 两个拆分。每条记录是一个扁平的 JSON-like 结构,包含以下关键字段:
| 字段 | 类型 | 说明/覆盖率 |
|---|---|---|
id |
string | 稳定的 pair ID |
ticker / company_name |
string | 99.4% / 99.99% |
form_type / filed_at |
string/date | 文件身份标识 |
source_url |
string | 100% — sec.gov 官方文档链接 |
evidence_url |
string | 100% — StockAlloy 解析器链接,可直接定位到数值 |
text |
string | 清理后的文件段落(表格已线性化,用 ` |
pre_context |
string | 段落前的可见文本(99.2%),通常包含表格标题和规模线索 |
concept / concept_label |
string | XBRL 概念及其人工可读标签(100%) |
period |
string | 规范的报告期间格式 |
value / value_num |
string/double | 事实的数值(保留精度)和方便分析的数值字段 |
unit / unit_class / currency |
string | 单位信息 |
displayed_text / text_start / text_end |
string/int | 在段落中显示的文本及其精确字符位置(100% 经过验证) |
scale / sign_in_text |
int32/bool | 显示值的缩放比例(99.8%)和符号是否在文本中显示为负数 |
dimensions / dims_count |
JSON/int | 解码后的维度信息 |
confidence |
float | 文本↔事实配对的置信度(0.75-0.99) |
支持的任务
该数据集支持以下三个主要任务,针对每条事实进行建模:
- Span Grounding(跨度定位):给定
text和事实身份(concept、period、dimensions),预测displayed_text在text中的起始位置text_start和结束位置text_end。 - Value Normalization(数值规范化):给定
pre_context、text、displayed_text,预测value_num、unit、scale和符号。 - XBRL Semantic Grounding(XBRL语义定位):给定
pre_context、text、displayed_text,预测concept、period、dimensions。
数据质量与已知限制
- 标签错误率:独立审计发现,约 2% 的记录存在语义错误,包括错误的概念(~1%)、错误的期间(~0.5%)等。
- 文件忠实数值:所有数值、规模和单位均忠实复现文件编制者自己的 iXBRL 标签。约有 11 行(~0.01%)保留了文件编制者自身的错误标签。
- 符号约定:约 8% 的配对中,括号显示为负数而实际数值为正(源自 XBRL 的流出/流入约定)。
- 采样偏差:该样本仅保留了在段落中唯一出现的显示值,可能低估了重复值(如基本每股收益等于稀释每股收益)的情况。
- 文本清洁度:不到 1% 的行的
text字段中可能残留少量 HTML 片段。
许可与联系
- 许可协议:CC BY-NC 4.0。
- 商业访问:可通过 stockalloy.com/developer 获取免费 API 密钥(每月 500 次调用),或通过 data@stockalloy.com 获取完整语料库和商业许可。
- 引用: bibtex @dataset{stockalloy_filedfact_2026, title = {FiledFact-100K: Span-Grounded, Value-Verified SEC Financial Facts}, author = {StockAlloy Research}, year = {2026}, url = {https://huggingface.co/datasets/stockalloy/filedfact-100k} }




