{"id":37178223,"url":"https://github.com/didasy/tldr","last_synced_at":"2026-01-14T20:46:24.754Z","repository":{"id":25976478,"uuid":"29418534","full_name":"didasy/tldr","owner":"didasy","description":"Text summarizer for golang using LexRank","archived":false,"fork":false,"pushed_at":"2025-10-03T16:23:58.000Z","size":76,"stargazers_count":137,"open_issues_count":1,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-14T11:37:12.676Z","etag":null,"topics":["go","golang","lexrank","nlp","pagerank","summarization","summarizer","tldr"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/didasy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-01-18T06:57:06.000Z","updated_at":"2025-11-19T01:12:26.000Z","dependencies_parsed_at":"2024-05-10T06:59:30.884Z","dependency_job_id":null,"html_url":"https://github.com/didasy/tldr","commit_stats":null,"previous_names":["didasy/tldr","jesusislam/tldr"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/didasy/tldr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didasy%2Ftldr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didasy%2Ftldr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didasy%2Ftldr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didasy%2Ftldr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/didasy","download_url":"https://codeload.github.com/didasy/tldr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didasy%2Ftldr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","lexrank","nlp","pagerank","summarization","summarizer","tldr"],"created_at":"2026-01-14T20:46:24.184Z","updated_at":"2026-01-14T20:46:24.741Z","avatar_url":"https://github.com/didasy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tldr\n### When you are too lazy to read the entire text\n------------------------------------------------------\n[![Coverage Status](https://coveralls.io/repos/github/didasy/tldr/badge.svg?branch=master)](https://coveralls.io/github/didasy/tldr?branch=master)\n[![GoDoc](https://godoc.org/github.com/didasy/tldr?status.svg)](https://godoc.org/github.com/didasy/tldr)\n[![Go Report Card](https://goreportcard.com/badge/github.com/didasy/tldr)](https://goreportcard.com/report/github.com/didasy/tldr)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fdidasy%2Ftldr.svg?type=small)](https://app.fossa.io/projects/git%2Bgithub.com%2Fdidasy%2Ftldr?ref=badge_small)\n\n\n### What?\ntldr is a golang package to summarize a text automatically using [lexrank](http://www.cs.cmu.edu/afs/cs/project/jair/pub/volume22/erkan04a-html/erkan04a.html) algorithm.\n\n### How?\nThere 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.\n\n### Is This Fast?\n```\n$ go test -bench . -benchmem -benchtime 5s -cpu 4\nRunning Suite: Tldr Suite\n=========================\nRandom Seed: 1759506557\nWill run 8 of 8 specs\n\n••••••••\nRan 8 of 8 Specs in 0.012 seconds\nSUCCESS! -- 8 Passed | 0 Failed | 0 Pending | 0 Skipped\ngoos: linux\ngoarch: amd64\npkg: github.com/didasy/tldr\ncpu: AMD Ryzen 5 5600G with Radeon Graphics\nBenchmarkSummarizeCentralityHamming-4               5877            896338 ns/op          177320 B/op       1898 allocs/op\nBenchmarkSummarizeCentralityJaccard-4               6562            885374 ns/op          177221 B/op       1898 allocs/op\nBenchmarkSummarizePagerankHamming-4                 5832            962000 ns/op          200830 B/op       2086 allocs/op\nBenchmarkSummarizePagerankJaccard-4                 5949            962579 ns/op          200865 B/op       2086 allocs/op\nPASS\nok      github.com/didasy/tldr  22.840s\n```\nSo, not bad huh?\n\n### Installation\n`go get github.com/didasy/tldr`\n\n### Example\n\n```\npackage main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"github.com/didasy/tldr\"\n)\n\nfunc main() {\n\tintoSentences := 3\n\ttextB, _ := ioutil.ReadFile(\"./sample.txt\")\n\ttext := string(textB)\n\tbag := tldr.New()\n\tresult, _ := bag.Summarize(text, intoSentences)\n\tfmt.Println(result)\n}\n```\n### Testing\nTo test, just run `go test`, but you need to have [gomega](http://github.com/onsi/gomega) and [ginkgo](http://github.com/onsi/ginkgo) installed.\n\n### Dependencies?\ntldr depends on [pagerank](https://github.com/alixaxel/pagerank) package, and you can install it with `go get github.com/alixaxel/pagerank`.\n\n### License?\nCheck the LICENSE file. tldr: MIT.\n\n## Have fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidasy%2Ftldr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdidasy%2Ftldr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidasy%2Ftldr/lists"}