metadata
license: apache-2.0
pretty_name: SEC Filings Dataset Parser
tags:
- sec
- edgar
- financial-documents
- document-parsing
- markdown
SEC Filings Dataset Parser
This repository contains the core parser used to convert SEC EDGAR filings into layout-faithful Markdown-style text for downstream dataset construction and evaluation.
Contents
sec_parser/sec_parser.py: main parser implementationsec_parser/special_chars.py: special-character normalization tablessec_parser/hardcodes.py: filing cleanup hardcodessec_parser/config.py: parser configurationpdf_table_fastpath.py,table_ocr_backends.py,mistral_pdf_ocr_overlay.py: PDF/table OCR helper codetest_sec_parser.py: smoke/regression testsDockerfile,Dockerfile.linux,requirements.txt: reproducible environment files
Quick Start
pip install -r requirements.txt
python -m unittest test_sec_parser.py
python sec_parser/sec_parser.py path/to/filing.txt
Some PDF/OCR paths require external OCR credentials and browser rendering dependencies.