Topics

Generate topic-labels representing the input text.
Can be used for categorization and hash-tag creation.

#SPEECH RECOGNITION #ARTIFICIAL INTELLIGENCE #NLP #TRENDS #ABSTRACT #LINGUISTICS #NATURAL LANGUAGE #FUTURE #COMPUTER SCIENCE
Natural language processing (NLP) is a subfield of linguistics, computer science, and artificial intelligence concerned with the interactions between computers and human language, in particular how to program computers to process and analyze large amounts of natural language data. The goal is a computer capable of "understanding" the contents of documents, including the contextual nuances of the language within them. The technology can then accurately extract information and insights contained in the documents as well as categorize and organize the documents themselves. Challenges in natural language processing frequently involve speech recognition, natural language understanding, and natural language generation. Based on long-standing trends in the field, it is possible to extrapolate future directions of NLP. As of 2020, three trends among the topics of the long-standing series of CoNLL Shared Tasks can be observed: Interest on increasingly abstract, "cognitive" aspects of natural language, Increasing interest in multilinguality and Elimination of symbolic representations.

📘

Use Topics Skill to extract:

👍

Benchmarks

Coming soon...

Output labels

Type

Value

topic

the determined topic

Parameters

None.

Example

Request

curl -X POST \
'https://api.oneai.com/api/v0/pipeline' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'api-key: <YOUR-API-KEY-HERE>' \
-d '{
    "input": "After permanently banning parties and events on all Airbnb listings in June, the company is hardening its anti-party stance by launching new screening tools in the U.S. and Canada.",
    "steps": [
      {
        "skill": "article-topics"
      }   
    ]
}'
const OneAI = require("oneai");

const oneai = new OneAI("<YOUR-API-KEY-HERE>");
const text = "After permanently banning parties and events on all Airbnb listings in June, the company is hardening its anti-party stance by launching new screening tools in the U.S. and Canada.";
const pipeline = new oneai.Pipeline(
    oneai.skills.topics(),
);

pipeline.run(text).then(console.log);
import oneai

oneai.api_key = "<YOUR-API-KEY-HERE>"
text = "After permanently banning parties and events on all Airbnb listings in June, the company is hardening its anti-party stance by launching new screening tools in the U.S. and Canada."
pipeline = oneai.Pipeline(
  steps = [
        oneai.skills.Topics(),
  ]
)

output = pipeline.run(text)

Response

{
  "input_text": "After permanently banning parties and events on all Airbnb listings in June, the company is hardening its anti-party stance by launching new screening tools in the U.S. and Canada.",
  "status": "success",
  "output": [
    {
      "text_generated_by_step_name": "input",
      "text_generated_by_step_id": 0,
      "text": "After permanently banning parties and events on all Airbnb listings in June, the company is hardening its anti-party stance by launching new screening tools in the U.S. and Canada.",
      "labels": [
        {
          "type": "topic",
          "skill": "article-topics",
          "value": "Listings"
        },
        {
          "type": "topic",
          "skill": "article-topics",
          "value": "Tools"
        },
        {
          "type": "topic",
          "skill": "article-topics",
          "value": "Airbnb"
        }
      ]
    }
  ],
  "stats": {
    "concurrency_wait_time": 0,
    "total_running_jobs": 1,
    "total_waiting_jobs": 0
  }
}
{
  text: 'After permanently banning parties and events on all Airbnb listings in June, the company is hardening its anti-party stance by launching new screening tools in the U.S. and Canada.',
  topics: [
    { type: 'topic', skill: 'article-topics', value: 'Tools' },
    { type: 'topic', skill: 'article-topics', value: 'Airbnb' },
    { type: 'topic', skill: 'article-topics', value: 'Listings' }
  ]
}

Did this page help you?