3.0.0 • Published 3 years ago

lexrank.js v3.0.0

Weekly downloads
39
License
MIT
Repository
github
Last release
3 years ago

lexrank.js

Build Coverage Downloads Size

Unsupervised text summarization using the Lexrank algorithm.

Usage

Install from npm

npm i --save lexrank.js

In your script:

import lexrank from 'lexrank.js'

const result = lexrank(text)

Returns

Nested arrays of paragraphs containing sentences with ranked results.

// paragraphs array
[
  // sentences array
  [{
    weight: <Number(0-1)>    // relevance score
    text: <String>           // original sentence string
    index: <Number>          // global sentence index
  }],
  [ ... ]
]

Tests

Run npm test to run tests.

Run npm run coverage to produce a test coverage report.

License

MIT © Goran Spasojevic

3.0.0

3 years ago

2.0.3

3 years ago

1.4.1

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.4.0

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago