v0.0.1
NationalSecurityAgency/ghidrav0.0.1Jun 27, 2026by chonknick
Upgrading?
AI Summary
The first public release of pulpie, a fast CPU-friendly web content extractor that classifies HTML blocks with small encoder models. It returns clean HTML or markdown and achieves byte-faithful parity with MinerU-HTML's simplification pipeline. The release ships three Orange model sizes, from 210M to 2.1B parameters.
Key Highlights
- Encoder-based HTML block classification reaching autoregressive-extractor quality at a fraction of the cost
- Byte-parity with MinerU-HTML: 65/65 offline tests across 13 real-page fixtures
- End-to-end ROUGE-5 F1 of 0.8625 on WebMainBench English, matching the MinerU reference exactly
- Three-model zoo: Orange Small (210M, default), Base (610M), and Large (2.1B)
- Simple `Extractor().extract(html)` API returning markdown, HTML, and block counts
New Features
- `Extractor` class with automatic model download on first use
- Clean markdown and clean HTML output modes
- `pulpie[markdown]` optional extra for markdown output
- MinerU-HTML-compatible `simplify_html` / `map_to_main` segmentation format
- Block statistics via `n_main` and `n_other` result fields
Full Release Notes
First public release of **pulpie** — fast, CPU-friendly web content extraction from HTML using encoder models. ## Install ```bash pip install pulpie # core pip install pulpie[markdown] # + markdown output ``` ## What it does pulpie extracts the main content from raw HTML and returns clean HTML or markdown. It classifies HTML blocks with small encoder models (the **Orange** family), reaching autoregressive-extractor quality at a fraction of the cost. ```python from pulpie import Extractor extractor = Extractor() # downloads pulpie-orange-small (210M) on first use result = extractor.extract(html) print(result.markdown) # clean markdown print(result.html) # clean HTML print(result.n_main, result.n_other) ``` ## MinerU-HTML parity pulpie's `simplify`/`reconstruct` faithfully reproduce MinerU-HTML's `simplify_html` / `map_to_main` (Apache-2.0), the segmentation format the Orange models were distilled on. Verified two ways: - **Offline byte-parity:** 65/65 tests reproduce MinerU's exact output across 13 real-page fixtures. - **End-to-end ROUGE-5** on full WebMainBench English (6,647 pages, orange-small): | Simplification | ROUGE-5 F1 | |----------------|-----------| | MinerU-HTML (reference) | 0.8625 | | **pulpie (this release)** | **0.8625** | Byte-faithful end-to-end (Δ vs MinerU = +0.0000), a +0.14 improvement over the prior simplification. ## Model zoo | Name | HF repo | Size | Notes | |------|---------|------|-------| | Orange Small | `chonkie-ai/pulpie-orange-small` | 210M | Best value; default | | Orange Base | `chonkie-ai/pulpie-orange-base` | 610M | Distilled | | Orange Large | `chonkie-ai/pulpie-orange-large` | 2.1B | Highest quality | ## Credits Built on MinerU-HTML / Dripper (Ma et al., 2025) — their `simplify_html` preprocessing, block-annotation scheme, and the WebMainBench benchmark are foundational. Thank you for releasing your tools and data.
Related Repositories
《Hello 算法》:动画图解、一键运行的数据结构与算法教程。支持简中、繁中、English、日本語,提供 Python, Java, C++, C, C#, JS, Go, Swift, Rust, Ruby, Kotlin, TS, Dart 等代码实现
Design patterns implemented in Java
Chat2DB is a free, cross-platform, local-first database client and SQL workspace for developers, DBAs, analysts, and data teams. Connect to 40+ databases, manage data, edit and run SQL, and use your own AI model to generate, explain, and optimize queries. Available on desktop, web, Docker, and CLI, with MCP support.