cadmium_summarizer

Version, currently master branch1 version
  • master branchlatestJan 5, 2026

github.com/cadmiumcr/summarizer

A collection of summarizer algorithms

3 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  cadmium_summarizer:
    github: cadmiumcr/summarizer
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.31.1
License
MIT
Author
Rémy Marronnier

Dependencies

Runtime Dependencies

  • num*github: crystal-data/num.cr
  • cadmium_stemmer*github: cadmiumcr/stemmer
  • cadmium_lemmatizer*github: cadmiumcr/lemmatizer

Development Dependencies

  • ameba*github: veelenga/amebadev

README

summarizer

Inspired from sumy, summarizer lets you summarize any input text through extraction based algorithms.

As of now, the following algorithms are implemented :

  • Luhn
  • KL divergence based summarizer (WIP)
  • SumBasic
  • TextRank

More are being worked on.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      cadmium_summarizer:
        github: cadmiumcr/summarizer
  2. Run shards install

Usage

require "cadmium_summarizer"

SumBasic.new.summarize(long_text)

Contributing

  1. Fork it (https://github.com/cadmiumcr/summarizer/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors