sfd-anonymous/sec-parser
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 implementation sec_parser/special_chars.py: special-character normalization tables sec_parser/hardcodes.py: filing cleanup hardcodes sec_parser/config.py: parser configuration pdf_table_fastpath.py, table_ocr_backends.py… See the full description on the dataset page: https://huggingface.co/datasets/sfd-anonymous/sec-parser.
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.txtSome PDF/OCR paths require external OCR credentials and browser rendering dependencies.
