All Projects → JesusIslam → Tldr

JesusIslam / Tldr

Licence: mit
Text summarizer for golang using LexRank

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Tldr

Statsbase.jl
Basic statistics for Julia
Stars: ✭ 326 (+254.35%)
Mutual labels:  summarization
Tldr
fast and interactive tldr client written with go
Stars: ✭ 984 (+969.57%)
Mutual labels:  tldr
Potara
Multi-document summarization tool relying on ILP and sentence fusion
Stars: ✭ 72 (-21.74%)
Mutual labels:  summarization
Headlines
Automatically generate headlines to short articles
Stars: ✭ 516 (+460.87%)
Mutual labels:  summarization
Summary loop
Codebase for the Summary Loop paper at ACL2020
Stars: ✭ 26 (-71.74%)
Mutual labels:  summarization
Lexrankr
LexRank for Korean.
Stars: ✭ 50 (-45.65%)
Mutual labels:  summarization
Seq2seq Summarizer
Pointer-generator reinforced seq2seq summarization in PyTorch
Stars: ✭ 306 (+232.61%)
Mutual labels:  summarization
Crd3
The repo containing the Critical Role Dungeons and Dragons Dataset.
Stars: ✭ 83 (-9.78%)
Mutual labels:  summarization
Tldr
📚 Collaborative cheatsheets for console commands
Stars: ✭ 36,408 (+39473.91%)
Mutual labels:  tldr
Tldr Alfred
Alfred workflow for TLDR
Stars: ✭ 70 (-23.91%)
Mutual labels:  tldr
Tldr Sh Client
Simplified and community-driven man pages
Stars: ✭ 583 (+533.7%)
Mutual labels:  tldr
Cheat.sh
the only cheat sheet you need
Stars: ✭ 27,798 (+30115.22%)
Mutual labels:  tldr
Tl
tldr for R!
Stars: ✭ 52 (-43.48%)
Mutual labels:  tldr
Abstractive Summarization With Transfer Learning
Abstractive summarisation using Bert as encoder and Transformer Decoder
Stars: ✭ 358 (+289.13%)
Mutual labels:  summarization
Sotawhat
Returns latest research results by crawling arxiv papers and summarizing abstracts. Helps you stay afloat with so many new papers everyday.
Stars: ✭ 1,181 (+1183.7%)
Mutual labels:  summarization
Tldr Python Client
Python command-line client for tldr pages
Stars: ✭ 317 (+244.57%)
Mutual labels:  tldr
Textrank
TextRank implementation for Python 3.
Stars: ✭ 1,008 (+995.65%)
Mutual labels:  summarization
Summarus
Models for automatic abstractive summarization
Stars: ✭ 83 (-9.78%)
Mutual labels:  summarization
Tealdeer
A very fast implementation of tldr in Rust.
Stars: ✭ 1,189 (+1192.39%)
Mutual labels:  tldr
Awesome machine learning solutions
A curated list of repositories for my book Machine Learning Solutions.
Stars: ✭ 65 (-29.35%)
Mutual labels:  summarization

tldr

When you are too lazy to read the entire text


Build Status Coverage Status GoDoc Go Report Card FOSSA Status

What?

tldr is a golang package to summarize a text automatically using lexrank algorithm.

How?

There are two main steps in lexrank, weighing, and ranking. tldr have two weighing and two ranking algorithm included, they are Jaccard coeficient and Hamming distance, then PageRank and centrality, respectively. The default settings use Hamming distance and pagerank.

Is This Fast?

Test it yourself, my system is [email protected] with single channel 4GB RAM using Ubuntu 15.10 with kernel 4.5.0

$ go test -bench . -benchmem -benchtime 5s -cpu 4
BenchmarkSummarizeCentralityHamming-4	    2000	   6429340 ns/op	  401204 B/op	    3551 allocs/op
BenchmarkSummarizeCentralityJaccard-4	     200	  30036357 ns/op	 3449461 B/op	   12543 allocs/op
BenchmarkSummarizePagerankHamming-4  	    1000	   7015008 ns/op	  420665 B/op	    3731 allocs/op
BenchmarkSummarizePagerankJaccard-4  	     200	  31066764 ns/op	 3469629 B/op	   12737 allocs/op

So, not bad huh?

Installation

go get github.com/JesusIslam/tldr

Example

package main

import (
	"fmt"
	"io/ioutil"
	"github.com/JesusIslam/tldr"
)

func main() {
	intoSentences := 3
	textB, _ := ioutil.ReadFile("./sample.txt")
	text := string(textB)
	bag := tldr.New()
	result, _ := bag.Summarize(text, intoSentences)
	fmt.Println(result)
}

Testing

To test, just run go test, but you need to have gomega and ginkgo installed.

Dependencies?

tldr depends on pagerank package, and you can install it with go get github.com/alixaxel/pagerank.

License?

Check the LICENSE file. tldr: MIT.

Have fun!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].