keypoints.in

How it chooses

TextRank, a method published in 2004, told in plain words.

What is a key point here?

A sentence of your own text that the rest of the text keeps returning to.

  • The paper calls the task sentence extraction. No new sentence is ever written. source

How are two sentences compared?

By the words they share, set against their lengths.

  • Each sentence is one unit, and two are linked when their content overlaps. source

  • Small words such as “the” and “of” are left out, plurals are folded, and a long sentence gets no credit for its length. source

How does a sentence get its score?

By votes, counted again and again until the scores stop moving.

  • A link is a recommendation, and a vote from a sentence that stands high counts for more. source

  • Each round a sentence keeps 0.15 and takes 0.85 of what its neighbours pass on. The rounds end when nothing moves by 0.0001. source

Which sentences are taken?

The highest, as many as you ask for, in the order of your text.

  • The paper sorts the sentences by score and takes the top ones. source

  • One rule is ours: a sentence that repeats a chosen point, sharing over half of its carrying words, is passed over.

Does it do what the paper does?

On the paper’s own example it chooses the same four lines.

  • The paper prints an article line by line and names the lines its method takes: 9, 15, 16 and 18. source

  • This page’s code is run on those lines before every release. It must choose the same four.

How is a text cut into sentences?

At full stops, question marks, exclamation marks and the Hindi full stop.

  • “Dr.”, an initial, “Rs. 500” and “2 a.m. Sunday” do not end a sentence.

  • Lines broken by a PDF or an e-mail are joined again. Headings and list items stand alone.

What does it get wrong?

It favours what is said often and can miss what is said once.

  • It needs no grammar and no training on a language, which is why it runs in a browser. source

  • It reads up to 3,000 sentences at a time.

Try it on a text

Open the tool