Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

wkallhof/js-summarize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS Summarize

JS Summarize is a Natural Language Processing utility used to summarize large bodies of text down into a small subset of sentences.

JS Summarize borrows heavily from the summarizing algorithm used in PyTeaser

Demo

Click here for a demo

How To Use

Include the js-summarize file in your page and reference all of the necessary library items. Then:

var summarizer = new JsSummarize();
var summary = summarizer.summarize("Text title here","Full text here");
/*
	output summary array:

	[
		"Best summarizing sentence here.",
		"Second best summarizing sentence here.",
		"Third best summarizing article here.",
		                     ...
	]
*/

To Do

  • Create a better tokenizer to parse out correct sentences. Right now there are a lot of problems parsing initials properly (ex. U.S.A. )
  • Remove dependencies on other libraries (jquery, lodash, and sugar)
  • Clean up and comment code
  • Research and re-evaluate score calculating algorithms

About

An NLP Summarizer built with Javascript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages