Skip to content

Shyam-Patel/text-summarizer-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Summarization API

Web API for the text summarization project written in Python and utilizing the lightweight Flask framework.

Setup


The following are the main packages used in the development of this API:

  • Python 3.7
  • Flask, Flask-Cors, Flask-RESTful
  • gensim
  • sumy

The full list is contained in requirements.txt. Running the following command will install them:

$ pip install -r requirements.txt

API Guide


All requests must be in JSON format. Currently, the API will validate the request object and it will reject the request if it doesn't meet the following format:

{
"text" : "string",
"url" : "string",
"ratio" : "number"
}

  • the ratio must be between 0 and 1 ( [percent/100] reduction of the text )
  • you must supply either the text or the url

API Endpoints:

/textrank/text
The API request must have the "text" property populated

/textrank/url
The API request must have the "url" property populated

/luhn/text
The API request must have the "text" property populated

/luhn/url
The API request must have the "url" property populated

About

Web API for the text summarization project written in Python and utilizing Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages