CoolFace
Datasetpublic

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.

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
0likes89downloads
Dockerfile33 linesDownload Raw Back to root
1FROM python:3.8-slim2 3RUN apt-get update && apt-get install -y --no-install-recommends \4    build-essential python3-dev pkg-config curl xz-utils ca-certificates \5    wkhtmltopdf \6 && rm -rf /var/lib/apt/lists/*7 8WORKDIR /app9 10# build exact libs11RUN curl -LO https://download.gnome.org/sources/libxml2/2.11/libxml2-2.11.9.tar.xz \12 && tar -xf libxml2-2.11.9.tar.xz && cd libxml2-2.11.9 \13 && ./configure --prefix=/opt/xml && make -j && make install && cd .. \14 && rm -rf libxml2-2.11.9 libxml2-2.11.9.tar.xz \15 && curl -LO https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.39.tar.xz \16 && tar -xf libxslt-1.1.39.tar.xz && cd libxslt-1.1.39 \17 && PKG_CONFIG_PATH=/opt/xml/lib/pkgconfig ./configure --prefix=/opt/xml \18 && make -j && make install && cd .. \19 && rm -rf libxslt-1.1.39 libxslt-1.1.39.tar.xz20 21ENV CFLAGS="-I/opt/xml/include" \22    LDFLAGS="-L/opt/xml/lib" \23    PKG_CONFIG_PATH="/opt/xml/lib/pkgconfig" \24    LD_LIBRARY_PATH="/opt/xml/lib"25 26COPY requirements.txt .27RUN pip install -U pip setuptools wheel \28 && pip install --no-binary lxml -r requirements.txt29 30RUN playwright install --with-deps chromium31 32COPY . .33