AboutWhat I doProjectsLabContact
  • NLP
  • SUMMARIZATION
  • TRANSFORMERS

Text Summarizer

Text Summarizer

An abstractive text summariser with chunking for long documents: package, CLI and live demo. Code at github.com/delcenjo/text-summarizer.

Abstractive summarisation that does not fall apart on long text: paste a whole article and get back a readable summary instead of a truncated one. It runs as a Python package, a CLI and a hosted web demo.

  • Chunking700 words
  • ModeldistilBART
  • DemoHF Spaces

The real problem is long text

Summarisation models have a context limit, so the work is in the chunking: split on sentences, group into chunks of up to 700 words so each reads on its own, summarise each chunk with distilBART, and if the joined result is still long, re-summarise hierarchically.

Keeping logic away from the model

All the text wrangling — sentence splitting, chunk grouping, joining summaries — is pure code without the model, so it tests without a GPU and in milliseconds. The model only enters at the last step. That separation kept the project maintainable.

Try it live

There is a HuggingFace Spaces demo to try it by pasting text, and a Colab quickstart notebook to use it as a library. Three ways to consume the same package: web, CLI and import.

Text Summarizer

Interactive demo hosted on HuggingFace Spaces

Shall we connect?

Let's talk: feedback, collaboration or an opportunity.

You can write to me about a project, a technical question, to give me feedback, or about an internship or a first junior role. I always reply.

Write to me

Next projects:

Built with

PythonPyTorchscikit-learnpandasNumPyJupyterHugging FaceLangChainFastAPIPydanticDockerGitHub ActionsPrometheusGrafanaMLflowPostgreSQLGitGitHubLinuxStreamlitSQLiteAnthropicBashPyPIOllamaPythonPyTorchscikit-learnpandasNumPyJupyterHugging FaceLangChainFastAPIPydanticDockerGitHub ActionsPrometheusGrafanaMLflowPostgreSQLGitGitHubLinuxStreamlitSQLiteAnthropicBashPyPIOllama
hola@jmwebsoluciones.com