API Documentation

class textteaser.TextTeaser(apikey)
summarize(text, title, kwargs=None)

Summarize the given text.

Args:

text: A string containing the article to summarize.

title: A string containg a title for the article.

kwargs: A dictionary with the following possible strings:
category: A string containing the category of the
article.
blog: A string containing the blog or source of the
article.
Raises:

textteaser.exceptions.APIKeyError

textteaser.exceptions.ServerError

requests.exceptions.HTTPError

Returns:
A list of strings, each being a sentence of the summary.

Project Versions

Previous topic

Summarizing Text

Next topic

Development

This Page