Sentiment

Learn the implied sentiment of a given text
//

Sentiment analysis is a process of identifying and extracting subjective information from text. It is used to determine the overall sentiment of a piece of text, whether it is positive, negative, or neutral. Sentiment analysis is useful for a variety of applications, including identifying customer sentiment towards a company or product, detecting social media trends, and identifying the sentiment of news articles.

//

The Sentiment Detection Skill detects and labels parts of texts that have positive or negative sentiment. Large-scale sentiment analysis can be done to discover trends, understand the perception of a subject in social media, etc.

Try the API

// See our sentiment analysis API, along other Language AI abilities, in action. Visit the Studio to try with your text.

01 / Insert Text
Alan Mathison Turing OBE FRS (23 June 1912 – 7 June 1954) was an English mathematician, computer scientist, logician, cryptanalyst, philosopher, and theoretical biologist. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. He is widely considered to be the father of theoretical computer science and artificial intelligence. Born in Maida Vale, London, Turing was raised in southern England. He graduated at King's College, Cambridge, with a degree in mathematics. Whilst he was a fellow at Cambridge, he published a proof demonstrating that some purely mathematical yes–no questions can never be answered by computation and defined a Turing machine, and went on to prove the halting problem for Turing machines is undecidable. In 1938, he obtained his PhD from the Department of Mathematics at Princeton University. During the Second World War, Turing worked for the Government Code and Cypher School (GC&CS) at Bletchley Park, Britain's codebreaking centre that produced Ultra intelligence. For a time he led Hut 8, the section that was responsible for German naval cryptanalysis. Here, he devised a number of techniques for speeding the breaking of German ciphers, including improvements to the pre-war Polish bombe method, an electromechanical machine that could find settings for the Enigma machine. Turing played a crucial role in cracking intercepted coded messages that enabled the Allies to defeat the Axis powers in many crucial engagements, including the Battle of the Atlantic. After the war, Turing worked at the National Physical Laboratory, where he designed the Automatic Computing Engine (ACE), one of the first designs for a stored-program computer. In 1948, Turing joined Max Newman's Computing Machine Laboratory, at the Victoria University of Manchester, where he helped develop the Manchester computers and became interested in mathematical biology. He wrote a paper on the chemical basis of morphogenesis and predicted oscillating chemical reactions such as the Belousov–Zhabotinsky reaction, first observed in the 1960s. Despite these accomplishments, Turing was never fully recognised in Britain during his lifetime because much of his work was covered by the Official Secrets Act. Turing was prosecuted in 1952 for homosexual acts. He accepted hormone treatment with DES, a procedure commonly referred to as chemical castration, as an alternative to prison. Turing died on 7 June 1954, 16 days before his 42nd birthday, from cyanide poisoning. An inquest determined his death as a suicide, but it has been noted that the known evidence is also consistent with accidental poisoning. Following a public campaign in 2009, the British Prime Minister Gordon Brown made an official public apology on behalf of the British government for ’’the appalling way [Turing] was treated’’. Queen Elizabeth II granted a posthumous pardon in 2013. The term ’’Alan Turing law’’ is now used informally to refer to a 2017 law in the United Kingdom that retroactively pardoned men cautioned or convicted under historical legislation that outlawed homosexual acts. Turing has an extensive legacy with statues of him and many things named after him, including an annual award for computer science innovations. He appears on the current Bank of England £50 note, which was released on 23 June 2021, to coincide with his birthday. A 2019 BBC series, as voted by the audience, named him the greatest person of the 20th century.
02 / Output
Alan Turing was an English mathematician, computer scientist, logician, cryptanalyst, philosopher, and theoretical biologist. He was widely considered to be the father of theoretical computer science and artificial intelligence. Turing played a crucial role in cracking intercepted coded messages that enabled the Allies to defeat the Axis powers.
#INTELLIGENCE #COMPUTER_SCIENCE #ARTIFICIAL_INTELLIGENCE #WAR
Tab 3
Tab 4
Click the buttons below to analyze the input text
03 / Add the Code
import oneai oneai.api_key = "CLICK_TO_GET_YOUR_API_KEY" pipeline = oneai.Pipeline(steps=[ oneai.skills.Names(), oneai.skills.Topics(), oneai.skills.Sentiments(), oneai.skills.Summarize(), ]) output = pipeline.run("your_input_here") print(output)
Copy
import OneAI from 'oneai'; const oneai = new OneAI({apiKey: 'CLICK_TO_GET_YOUR_API_KEY'}); const pipeline = new oneai.Pipeline( oneai.skills.names(), oneai.skills.topics(), oneai.skills.sentiments(), oneai.skills.summarize(), ); const output = await pipeline.run('your_input_here'); console.log(output);
Copy
curl -X POST \ 'https://api.oneai.com/api/v0/pipeline' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H 'api-key: CLICK_TO_GET_YOUR_API_KEY' \ -d '{ "input": "your_input_here", "steps": [ { "skill": "names" }, { "skill": "article-topics" }, { "skill": "sentiments" }, { "skill": "summarize" } ] }'
Copy

Setup

Request

Perform a sentiment analysis by making a POST request to the following URL: api.oneai.com/api/v0/pipeline { "input": "your input text here", "steps": [{ "skill": "sentiments" }] }

Response

Returns detected sentiment labels in the text