File size: 1,064 Bytes
62787e2
 
8949c8f
62787e2
 
 
 
 
 
 
 
8949c8f
62787e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
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 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`, `mistral_pdf_ocr_overlay.py`: PDF/table OCR helper code
- `test_sec_parser.py`: smoke/regression tests
- `Dockerfile`, `Dockerfile.linux`, `requirements.txt`: reproducible environment files

## Quick Start

```bash
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.