In this example, we will use Watson Discovery News in order to query articles and then we use Watson Natural Language Understanding to obtain extra enrichments for each article.
This could act as a baseline for integrating Watson Discovery into your own application. The use cases are endless, with Watson Discovery, and especially the "news" collection, you can harness the power of advanced queries in order to gain many insights.
- User creates an instance of Watson Discovery and Natural Language Understanding.
- User run the provided Jupyter notebook with IBM Cloud Pak for Data.
- The Jupyter notebook leverages Watson Discovery News to retrieve data and Watson Natural Language Understanding for sentiment and keyword extraction.
Sign up for IBM's IBM Cloud Pak for Data. After signing in, create a new, basic project – give it a name, and create a new object storage service if prompted (the lite option will work fine).
Head over to IBM Cloud, if prompted, login with the same credentials as above. From the dashboard, click Create Resource and search for "Discovery" in the catalog. Click on the Discovery card, and click Create.
Head over to IBM Cloud, if prompted, login with the same credentials as above. From the dashboard, click Create Resource and search for "Natural Language Understanding" in the catalog. Click on the Natural Language Understanding card, and click Create.
From Watson Studio, navigate to the project you created previously.
- In the
Assets
tab, select theCreate notebook
option. - Select the
From URL
tab. - Enter a name for the notebook.
- Optionally, enter a description for the notebook.
- Enter this Notebook URL: https://raw.githubusercontent.com/Fedacc/notebook-discovery-news-nlu-analysis/master/notebooks/discovery-news-nlu-sentiment.ipynb
Once the notebook has been created, navigate to the cell with Watson Discovery credentials and enter your own. To find your credentials, navigate to your Discovery service, click on the menu item labeled Credentials, generate a new set if none exists yet. Now, you can run the notebook and analyze the results.
- Data Analytics Code Patterns: Enjoyed this Code Pattern? Check out our other Data Analytics Code Patterns
- With Watson: Want to take your Watson app to the next level? Looking to utilize Watson Brand assets? Join the With Watson program to leverage exclusive brand, marketing, and tech resources to amplify and accelerate your Watson embedded commercial solution.
- Watson Studio: Master the art of data science with IBM's Watson Studio
This code pattern is licensed under the Apache Software License, Version 2. Separate third party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 (DCO) and the Apache Software License, Version 2.