The Watson Natural Language Processing Concepts block extracts general DBPedia concepts (concepts drawn from language-specific Wikipedia versions) that are directly referenced or alluded to, but not directly referenced, in the input text.
Block name
concepts_alchemy_<language>_stock
Supported languages
The Concepts block is available for the following languages. For a list of the language codes and the corresponding language, see Language codes.
de, en, es, fr, it, ja, ko, pt
Capabilities
Use this block to assign concepts from DBPedia (2016 edition). The output types are based on DBPedia.
Dependencies on other blocks
The following block must run before you can run the Concepts extraction block:
syntax_izumo_<language>_stock
Code sample
import watson_nlp
# Load Syntax and a Concepts model for English
syntax_model = watson_nlp.load('syntax_izumo_en_stock')
concepts_model = watson_nlp.load('concepts_alchemy_en_stock')
# Run the syntax model on the input text
syntax_prediction = syntax_model.run('IBM announced new advances in quantum computing')
# Run the concepts model on the result of syntax
concepts = concepts_model.run(syntax_prediction)
print(concepts)
About cookies on this siteOur websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising.For more information, please review your cookie preferences options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.