JsTeaser
Creates a brief four line summary of an article, constructued from sentences within the article. Relies on an algorithm that ranks article body sentences on relation to header, and other sentences.
About
A port of the PyTeaser project (https://github.com/xiaoxu193/PyTeaser) to Javascript. PyTeaser was a port of the TextTeaser project (https://github.com/MojoJolo/textteaser) to Python from Scala.
Installation
npm install jsteaser
Example
var JsTeaser = ; var article = title: 'This is the article title' text: 'This is the article body.' var jsteaser = article;var summary = jsteaser; console;
API
Constructor JsTeaser() takes an article object with two fields - title and text. Call method summarize() to get the summarization
Limitations
Needs to be further tweaked to get better results.
License
(The MIT License)
Copyright (c) 2013 Abdulla Faraz abdulla.faraz@gmail.com
Test Case, stop words and algorithm from the PyTeaser Project
(The MIT License)
Copyright (c) 2013 Xiao Xu
Refer to included License file