• Stars
    star
    153
  • Rank 243,368 (Top 5 %)
  • Language
    HTML
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

automatic sentence highlights based on their significance to the document

salience

In short, a graph-based ranking algorithm is a way of deciding on the importance of a vertex within a graph, by taking into account global information recursively computed from the entire graph, rather than relying only on local vertex-specific information ... In this paper, we introduced TextRank โ€“ a graph-based ranking model for text processing.

(Rada Mihalcea and Paul Tarau, "TextRank: Bringing Order into Texts", 2004)

Extractive summarization should be preferred over abstractive summarization when nuance is essential and when the summary is meant as a companion to the source text. LLMs are effective at abstractive summarization, but they can also be leveraged in extractive summarization. Rather than solve this with a prompt, LLM embeddings can be combined with the TextRank algorithm to reliably yield high-quality extractive summaries.

In other words, embeddings can be used to automatically generate highlights. The internal representation is an affinity matrix between sentences that can be used to find the most salient sentences in a text.

Preview

Screenshot of Salience Output

How to Run

$ poetry install
$ poetry run flask --app salience run

This will kick off a flask server. You can access the output at http://127.0.0.1:5000/static/index.html

More Repositories

1

jeannie

gpt for bash: your wish is the command
Shell
13
star
2

Mimesis

Screencast from the command line
Shell
9
star
3

command-t

a chrome extension that makes open tabs searchable on the New Tab page
JavaScript
7
star
4

AnInterpreter

An APL interpreter
JavaScript
4
star
5

Tarpits-Abstraction

A book on computation from first principles
TeX
4
star
6

Typical

Run-time type checking for JavaScript
JavaScript
3
star
7

TeXode

Markdown to LaTeX transpiler, for books and code blocks.
Ruby
3
star
8

Lampas

A lisp
Haskell
3
star
9

Quizzical

Test and document APIs painlessly
Shell
3
star
10

Rene

An APL-driven grapher.
JavaScript
2
star
11

Quarantine

A proxy to limit internet usage temporarily.
JavaScript
2
star
12

concrete

Bare minimum parsing for free
JavaScript
2
star
13

Thunctor

Safe recursion with monads
Python
1
star
14

longjump

Cross-process buffer jumping for vim.
Shell
1
star
15

Elastic

Pull to refresh for the browser.
JavaScript
1
star
16

TombRaider

An iOS backup extractor.
Ruby
1
star
17

Artillery

A programmable, controllable tank simulation.
JavaScript
1
star
18

Bonds.io

A bond diagram renderer for any compound.
JavaScript
1
star
19

zTest

Statistical Benchmarking for JavaScript
JavaScript
1
star
20

LetterEleven

An interpreter of Lambda Calculus.
JavaScript
1
star
21

GenerationY

Automaton drawing in Haskell
Haskell
1
star
22

UIKit

JavaScript that thinks it's Objective-C
JavaScript
1
star
23

Turing

A Turing Machine simulator.
Ruby
1
star
24

tex-repl

Instantly view the results of a LaTeX fragment.
Shell
1
star
25

Hypercube

Rubik's cube manipulation for Ruby.
Ruby
1
star
26

spectacle

.stl viewer for the web
JavaScript
1
star
27

tmplrun

executable templates with a shebang
C
1
star
28

Haskella

A Haskell dialect
OCaml
1
star
29

iSpeedometer

A simple GPS-based speedometer for iPhone.
Objective-C
1
star
30

skua

Text processing in the order of awk
Haskell
1
star
31

FlightControl

Chainable routing and middleware for Node.
JavaScript
1
star
32

binary-ios

binary websocket streaming made easy for iOS
Objective-C
1
star