AI tools, scored for your job
Get paid to train AI
🤝 You're in the Free & Open Source library — community-built tools you can use without paying. A different concept from our scored AI directory.
Home › Free & Open Source › Government › textsum
✦ Free & open sourceGovernment

textsum

CLI and Python API to summarize long text documents using HuggingFace transformer models.

Automated text summarization via Python and CLI

Process arbitrary-length text documents locally using open-source transformer models.

Free forever · open source · Apache-2.0
✓ Light setup✓ Browser-based✓ Real-time collaboration
6.4
ZEKAI
Local transformer summarizer
Free & open source · Government
Ease of setup7
Usefulness8
Maintenance5.5
Community5
★ 134
GITHUB
Nov 2025
UPDATED
Apache-2.0
LICENSE
🛠 Don't want to self-host? We can set it up →
⚡ Quick answer

textsum is a Python package and command-line tool for summarizing long text documents using HuggingFace transformers. It is designed for analysts and developers who need to process batches of public records, policy documents, or municipal reports without sending data to third-party APIs.

Runs on
Cross-platform
Hosting
Self-host
Languages
Python
License
Apache-2.0

What it is

The tool wraps HuggingFace transformer models into simple Python code, a terminal interface, and an optional Gradio web UI. It handles document chunking, batch processing, and memory optimizations like 8-bit quantization and ONNX runtime integration.

Who it's for

It suits data engineers, civic tech researchers, and IT staff who require local document processing for sensitive records. It is less suitable for non-technical staff who expect a fully managed SaaS interface without managing Python environments or GPU drivers.

Key features

Batch directory summarization

Summarize entire directories of text files via a single CLI command with options to skip completed items.

Memory optimization support

Reduce GPU VRAM consumption using 8-bit quantization, TensorFloat32, or Optimum ONNX runtime.

HuggingFace model compatibility

Load any compatible text-to-text or summarization model directly from the HuggingFace Hub.

Built-in Gradio interface

Launch a local web application to test models interactively in your browser.

How to start

Up and running in 3 steps

1
Install textsum in a Python virtual environment using pip install textsum.
2
Run textsum-dir /path/to/text/files in your terminal to process a directory of text files.
3
Instantiate the Summarizer class in Python to adjust inference parameters or load specific HuggingFace models.
Real talk

Our honest verdict

What's great

  • Supports processing long-form documents of arbitrary length through automatic batching and chunking.
  • Includes a dedicated command-line tool for batch-processing text directories without writing code.
  • Provides optional performance tweaks like 8-bit precision and ONNX runtime execution.
  • Runs entirely offline or locally, protecting sensitive municipal and public sector data.

Where it falls short

  • Summarization models require dedicated GPU hardware or high VRAM for acceptable performance on large inputs.
  • Setting up hardware acceleration such as CUDA drivers, 8-bit libraries, and ONNX requires technical Python sysadmin knowledge.
  • The local Gradio web UI is minimal and designed for local testing rather than multi-user enterprise deployment.
Cost

Pricing & license

textsum is free and open source under the Apache-2.0 license. The primary cost involved is the computing infrastructure required to host and execute large transformer models on local GPUs or cloud servers.

Paid work

Open remote AI-training roles

879 open remote AI-training roles, updated November 15, 2026; most pay $20–$175 an hour. Zekai lists them free; the application goes to the employer’s platform.

See all open roles →
Compare

Alternatives

🎁 Free & open-source alternatives
Get more

Use it, or have us set it up

📄 Free PDF: textsum for Government
A plain-language guide to getting your first result. Sent to your inbox.
🔔 64 people want a full video tutorial — add your vote
🛠 Don't want to set it up yourself?
We'll install, host & configure textsum for you — and train your team.
Get it done for you ↗
Questions

FAQ

Can I use textsum with custom HuggingFace models?

Yes, you can pass any HuggingFace text-to-text or summarization model path to the Summarizer class or CLI flag.

Does textsum require an active internet connection?

Initial execution downloads HuggingFace models to local cache, after which subsequent runs operate completely offline.

Radar

Latest AI news

✉️ The weekly free toolkit
The best new free & open-source tools for Government — one short email a week, in your language.
Free · 1 email/week · unsubscribe anytime
Get paid to train AI →

See Zekai first in Google