You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

Keyword Extraction

language/keyword-extraction@1.0.0
1 provider

Extract Keywords

Identify and extract the most important words or phrases from a text document

Input
Text
Text Language
Result
keywords

1.Choose a provider

2.Use ExtractKeywords with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk

Structure details

Input (object)

text
The text you wish to extract the keywords from. Note that most providers require the text to be less than 1000 characters
languageCode
Optionally specify the exact language of the text. Useful for phrases that might be ambigous. Uses ISO 639-1 format (e.g. `en`, `fr`, `es`)

Example

Result (object)

keywords
text
The keyword or phrase extracted from the given text.
importance
A number between 0 and 1 indicating importance of the keyword within the given text.

Example

Implementation details

Provider
mock
Use case
ExtractKeywords
Author
@superface
Source
Verified