Summarize a Text

This task summarizes a text.

Input

Description

This task summarizes a text.

Applications

  • Article summarization
  • Text summarization

How to use the task

Please enter the text you want to summarize. After pressing Run Task the summarized Text is returned.

Privacy

Please do not share sensitive information with this task.

[1.0.0]:
First version
VersionAI ModelCreatedLink
1.0.018.10.2023

API

The REST API allows you to call the task with the same costs as when running the task. Please generate an Personal access token before using the REST API.

Parameters

  • text (Text): The text to summarize
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/u-anysolve-sh-summarize-a-text/1.0.0?text=Mountaineering%2C%20mountain%20climbing%2C%20or%20alpinism%5B2%5D%20is%20a%20set%20of%20outdoor%20activities%20that%20involves%20ascending%20mountains.%20Mountaineering-related%20activities%20include%20traditional%20outdoor%20climbing%2C%20skiing%2C%20and%20traversing%20via%20ferratas%20that%20have%20become%20sports%20in%20their%20own%20right.%5B3%5D%5B4%5D%5B5%5D%5B6%5D%20Indoor%20climbing%2C%20sport%20climbing%2C%20and%20bouldering%20are%20also%20considered%20variants%20of%20mountaineering%20by%20some%2C%5B7%5D%5B8%5D%20but%20are%20part%20of%20a%20wide%20group%20of%20mountain%20sports.%20
  • Install the package with pip
    python3 -m pip install anysolve
  • Run in python3
    import os
    from anysolve import AnySolve
    anysolve_token = os.environ.get('ANYSOLVE_PERSONAL_ACCESS_TOKEN') # Resolve your personal access token here
    client = AnySolve(anysolve_token)
    res = client.run('u-anysolve-sh-summarize-a-text','1.0.0', {'text': 'Mountaineering, mountain climbing, or alpinism[2] is a set of outdoor activities that involves ascending mountains. Mountaineering-related activities include traditional outdoor climbing, skiing, and traversing via ferratas that have become sports in their own right.[3][4][5][6] Indoor climbing, sport climbing, and bouldering are also considered variants of mountaineering by some,[7][8] but are part of a wide group of mountain sports. '})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('u-anysolve-sh-summarize-a-text','1.0.0', text='Mountaineering, mountain climbing, or alpinism[2] is a set of outdoor activities that involves ascending mountains. Mountaineering-related activities include traditional outdoor climbing, skiing, and traversing via ferratas that have become sports in their own right.[3][4][5][6] Indoor climbing, sport climbing, and bouldering are also considered variants of mountaineering by some,[7][8] but are part of a wide group of mountain sports. ')