Summarizer

No algorithm description given

Table of Content Introduction Examples Credits Introduction Automatic summarization is the process of reducing a text document with a computer program in order to create a summary that retains the most important points of the original document. This algorithm takes in large blocks of unstructured text, and extracts key topic sentences based on frequency of topics and key terms. Input: (Required): Large block of text. (Optional) : Number of sentences (default=3) Output: Summarized block of text. Examples Example 1. Parameter 1: Long Wikipedia text "In the history of artificial intelligence, an AI winter is a period of reduced funding and interest in artificial intelligence research. The term was coined by analogy to the idea of a nuclear winter. The field has experienced several hype cycles, followed by disappointment and criticism, followed by funding cuts, followed by renewed interest years or decades later. The term first appeared in 1984 as the topic of a public debate at the annual meeting of AAAI (then called the \"American Association of Artificial Intelligence\"). It is a chain reaction that begins with pessimism in the AI community, followed by pessimism in the press, followed by a severe cutback in funding, followed by the end of serious research. At the meeting, Roger Schank and Marvin Minsky—two leading AI researchers who had survived the \"winter\" of the 1970s—warned the business community that enthusiasm for AI had spiraled out of control in the '80s and that disappointment would certainly follow. Three years later, the billion-dollar AI industry began to collapse. Hypes are common in many emerging technologies, such as the railway mania or the dot-com bubble. An AI winter is primarily a collapse in the perception of AI by government bureaucrats and venture capitalists. Despite the rise and fall of AI's reputation, it has continued to develop new and successful technologies. AI researcher Rodney Brooks would complain in 2002 that \"there's this stupid myth out there that AI has failed, but AI is around you every second of the day.\" In 2005, Ray Kurzweil agreed: \"Many observers still think that the AI winter was the end of the story and that nothing since has come of the AI field. Yet today many thousands of AI applications are deeply embedded in the infrastructure of every industry.\" He added: \"the AI winter is long since over.\"" Output: "In the history of artificial intelligence, an AI winter is a period of reduced funding and interest in artificial intelligence research. The term was coined by analogy to the idea of a nuclear winter. The field has experienced several hype cycles, followed by disappointment and criticism, followed by funding cuts, followed by renewed interest years or decades later." Example 2. Parameter 1: Long Wikipedia text. Parameter 2: Number of sentences in the summarized text. [
 "De jure (/dᵻ ˈdʒʊəriː/, /deɪ-/; Classical Latin: de iure [deː ˈjuːrɛ]) is an expression that means \"of right, by right, according to law\" (literally \"from law\"), as contrasted with de facto, which means \"in fact, in reality\" (literally \"from fact\"). The terms de jure and de facto are used instead of \"in law\" and \"in practice\", respectively, when one is describing political or legal situations. In a legal context, de jure is contrasted to de facto practices, where, for example, the people obey a contract as though there were a law enforcing it, yet there is no such law. A process known as \"desuetude\" may allow (de facto) practices to replace (de jure) laws that have fallen out of favor, locally. It is possible to have multiple simultaneous conflicting (de jure) legalities, possibly none of which is in force (de facto). After seizing power in 1526, Ahmad ibn Ibrahim al-Ghazi made his brother, Umar Din, the lawful (de jure) Sultan of Adal. Ahmad, however, was in practice (de facto) the actual Sultan, and his brother was a figurehead. Between 1805 and 1914, the ruling dynasty of Egypt ruled as de jure viceroys of the Ottoman Empire, but acted as de facto independent rulers who maintained a polite fiction of Ottoman suzerainty. However, from about 1882, the rulers had only de jure rule over Egypt, as it had by then become a British puppet state. Thus, Egypt was by Ottoman law de jure a province of the Ottoman Empire, but de facto was part of the British Empire. In American law, particularly after Brown v. Board of Education (1954), the difference between de facto segregation (segregation that existed because of the voluntary associations and neighborhoods) and de jure segregation (segregation that existed because of local laws that mandated the segregation), became important distinctions for court-mandated remedial purposes. In Canada, cannabis is illegal in law, but there is widespread use in practice, especially in British Columbia. It is strikingly similar to the existence of speakeasies during prohibition, wherein enforcement of laws departed from the letter, because of widespread and popular practice.",
 4
] Output: "De jure (/dᵻ ˈdʒʊəriː/, /deɪ-/; Classical Latin: de iure [deː ˈjuːrɛ]) is an expression that means "of right, by right, according to law" (literally "from law"), as contrasted with de facto, which means "in fact, in reality" (literally "from fact"). The terms de jure and de facto are used instead of "in law" and "in practice", respectively, when one is describing political or legal situations. Board of Education (1954), the difference between de facto segregation (segregation that existed because of the voluntary associations and neighborhoods) and de jure segregation (segregation that existed because of local laws that mandated the segregation), became important distinctions for court-mandated remedial purposes." Credits This algorithm uses the built-in summarizer implementation provided in the  Classifier4J Library .

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/nlp/Summarizer/0.1.3
View cURL Docs
algo auth
# Enter API Key: YOUR_API_KEY
algo run algo://nlp/Summarizer/0.1.3 -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://nlp/Summarizer/0.1.3");
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://nlp/Summarizer/0.1.3")
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://nlp/Summarizer/0.1.3")
           .pipe(input)
           .then(function(output) {
             console.log(output);
           });
View Javascript Docs
var input = {{input | formatInput:"javascript"}};
Algorithmia.client("YOUR_API_KEY")
           .algo("algo://nlp/Summarizer/0.1.3")
           .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('nlp/Summarizer/0.1.3')
print algo.pipe(input)
View Python Docs
library(algorithmia)

input <- {{input | formatInput:"r"}}
client <- getAlgorithmiaClient("YOUR_API_KEY")
algo <- client$algo("nlp/Summarizer/0.1.3")
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('nlp/Summarizer/0.1.3')
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('nlp/Summarizer/0.1.3');
let response = algo.pipe(input);
View Rust Docs
Discussion
  • {{comment.username}}