Keyword Extraction

Zia Keyword Extraction is a part of Text Analytics that processes textual content and extracts the highlights of the text. The extracted terms are grouped into two categories: Keywords and Keyphrases. These highlights deliver a concise summary of the text and provide an abstraction of the whole text.

The response contains an array of the key words, and another array of the key phrases that are extracted from the text.

You can pass a block of text as the input of upto 1500 characters in a single request, as shown below. The text is passed to getKeywordExtraction(). The keywords and keyphrases are then fetched as individual lists.

The zia reference used below is defined in the component instance page.

zia.getKeywordExtraction(['Zoho Corporation, is an Indian multinational technology company that makes web-based business tools. It is best known for Zoho Office Suite. The company was founded by Sridhar Vembu and Tony Thomas and has a presence in seven locations with its global headquarters in Chennai, India, and corporate headquarters in Pleasanton, California.']) //Pass the input text to be processed .then((result) => console.log(result)) .catch((error) => console.log(error.toString()));

A sample response that you will receive is shown below. The response is the same for both versions of Node.js.

Node js

"keyword_extractor": { "keywords": [ "Chennai", "company", "India", "Indian", "presence", "locations", "Pleasanton", "California" ], "keyphrases": [ "corporate headquarters", "multinational technology company", "Zoho Corporation", "Zoho Office Suite", "global headquarters", "Tony Thomas", "web-based business tools", "Sridhar Vembu" ] }

Last Updated 2023-09-03 01:06:41 +0530 +0530