Summarizer

No algorithm description given

Summarizer is an algorithm that takes in data and json format and returns a summary and key terms from the text. The json object the algorithm takes needs 4 fields: text: a string containing the text you want summarized summaryLength: a floating point number, less than or equal to one, which represents a percentage of the text length you want the summary to be keyTermsWanted: a boolean, with true meaning you want the key terms from the algorithm, and false meaning you don't numKeyTerms: an integer, representing the number of key terms you want from the text. The output returns a json object with 1 or two fields, depending on if you want the key terms. The object contains: summary: a list, containing the strings that make up the summary. The sentences are ranked in order of importance; the first sentence is the most important. This is guaranteed to be part of the returned object. keyTerms: a list, containing the number of key terms requested, if they are requested. The key terms are ranked in order of importance; the first term is the most important. This is only part of the returned json object if 'keyTermsWanted' is true in the input json object. Below is an easy to use json object that you only need to paste the variables into to use. "{\"text\": \"<TEXT>\", \"summaryLength\": <floatingPointPercentage>, \"keyTermsWanted\": <boolean>, \"numKeyTerms\": <numberOfKeyTerms>}"

Tags
(no tags)

Cost Breakdown

0 cr
royalty per call
1 cr
usage per second
avg duration

Cost Calculator

API call duration (sec)
×
API calls
=
Estimated cost
per calls
for large volume discounts
For additional details on how pricing works, see Algorithmia pricing.

No permissions required

This algorithm does not require any special permissions.


To understand more about how algorithm permissions work, see the permissions documentation.

1. Type your input

2. See the result

Running algorithm...

3. Use this algorithm

curl -X POST -d '{{input | formatInput:"curl"}}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/kasandell/Summarizer/0.2.0
View cURL Docs
algo auth
# Enter API Key: YOUR_API_KEY
algo run algo://kasandell/Summarizer/0.2.0 -d '{{input | formatInput:"cli"}}'
View CLI Docs
import com.algorithmia.*;
import com.algorithmia.algo.*;

String input = "{{input | formatInput:"java"}}";
AlgorithmiaClient client = Algorithmia.client("YOUR_API_KEY");
Algorithm algo = client.algo("algo://kasandell/Summarizer/0.2.0");
AlgoResponse result = algo.pipeJson(input);
System.out.println(result.asJsonString());
View Java Docs
import com.algorithmia._
import com.algorithmia.algo._

val input = {{input | formatInput:"scala"}}
val client = Algorithmia.client("YOUR_API_KEY")
val algo = client.algo("algo://kasandell/Summarizer/0.2.0")
val result = algo.pipeJson(input)
System.out.println(result.asJsonString)
View Scala Docs
var input = {{input | formatInput:"javascript"}};
Algorithmia.client("YOUR_API_KEY")
           .algo("algo://kasandell/Summarizer/0.2.0")
           .pipe(input)
           .then(function(output) {
             console.log(output);
           });
View Javascript Docs
var input = {{input | formatInput:"javascript"}};
Algorithmia.client("YOUR_API_KEY")
           .algo("algo://kasandell/Summarizer/0.2.0")
           .pipe(input)
           .then(function(response) {
             console.log(response.get());
           });
View NodeJS Docs
import Algorithmia

input = {{input | formatInput:"python"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('kasandell/Summarizer/0.2.0')
print algo.pipe(input)
View Python Docs
library(algorithmia)

input <- {{input | formatInput:"r"}}
client <- getAlgorithmiaClient("YOUR_API_KEY")
algo <- client$algo("kasandell/Summarizer/0.2.0")
result <- algo$pipe(input)$result
print(result)
View R Docs
require 'algorithmia'

input = {{input | formatInput:"ruby"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('kasandell/Summarizer/0.2.0')
puts algo.pipe(input).result
View Ruby Docs
use algorithmia::*;

let input = {{input | formatInput:"rust"}};
let client = Algorithmia::client("YOUR_API_KEY");
let algo = client.algo('kasandell/Summarizer/0.2.0');
let response = algo.pipe(input);
View Rust Docs
Discussion
  • {{comment.username}}