API Documentation¶
Summarize the given text.
- Args:
- text: A string containing the article to summarize. If
- empty, url is required. (Default: ‘’)
- title: A string containg a title for the article. If empty,
- url is required. (Default: ‘’)
- url: A string containing the URL whose content you want to
- summarize. If empty, text and title are required. (Default: ‘’)
- 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.