29
Fri, Nov
0 New Articles

TechTip: Watson, APIs, and You, Part 1

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

 

If there’s anything hotter than that new bacon-kale-champagne salad, it’s Watson and its family of APIs. But what is Watson, and what does it mean for you?

Everywhere you look today, you see the little Watson symbolin magazines, in TV ads, everywhere. It has become the Good Housekeeping seal of approval on any product or idea, stamping it with the authority and superiority of artificial intelligence.

But do very many of us really know what that stands for and what’s involved? Over the next few TechTips, we’re going to spend a little time digging into Watson and discovering just what makes Watson so special and how it may impact your life over the coming years. 

As we go through this, we will be looking at two basic entities: Watson itself and the APIs it has spawned. 

What Are API’s?

What a ridiculous question.

We all know what APIs are. They’re these things, little applications, that do stuff, usually stuff that we don’t want to take time to do ourselves. Like calculating the cosine of an angle. 

If you look at Wikipedia, it defines an API as “a set of subroutine definitions, protocols, and tools for building application software.” It goes on about how APIs are used as the building blocks of software routines and as communication modules between different applications. In other words, they’re bit players, doing specialized but not very glamorous functions. And at one time that was a pretty good definition.

But over the years, and particularly in the last few, that definition has undergone some rapid changes. Today, APIs have more to do with encapsulated, larger, more robust applications than they do with being building blocks that do just one thing.  What separates an API from a more general application suite is that the API is not built to just stand on its own. Rather, it can be and is designed to be used as a plug-in to enhance the functionality of an application that you have built.

This was true in the past, but what is different now is the size and scope of what the API is designed to do. As we said, in the olden days, APIs were sort of point solutions, designed to do a very specific thing and nothing more. Today’s APIs are broader in scope and can really be considered application suites in their own right. But they are application suites that are built so that you can plug them into your own custom solution, and that breadth makes all the difference in terms of an API’s power and utility. 

For example, a Watson API that we will look at a bit down the road is Expressive TTS, which evaluates a written passage for emotionally oriented content. This is far more complex and broad-based than the APIs of my youth and is representative of the new breed of APIs that are being released. And, of course, it is Watson and so has a sort of supernatural vibe to it. As I said above, references to Watson are everywhere, but what is it really?

What Is Watson?

First, let’s get rid of the elephant in the room. We all know that IBM screwed up, once more, when they named it. It should have been called Skynet. It would have been a cultural tour de force, but it’s too late now, and the relatively unexciting moniker of “Watson” is what we are stuck with, although I feel it is fitting that Dr. John Watson, late of Her Majesty’s 5th Northumberland Fusiliers, finally received some recognition for his service in the Anglo-Afghan wars. 

If you look it up, Watson is a “cognitive technology that can think like a human,” although if that is true, I am really not sure how useful it will be. In a number of spots, I have seen it described as a “question-answering platform,” often with the qualifier that the questions can be asked in “plain language.” 

Digging into it, Watson is a hardware and software entity that uses powerful parallel processing to simultaneously search for multiple answers to a question and then choose the answer that appears most often.

Hardware -wise, Watson runs on 90 Power 750 servers, each with a 3.5GHz POWER7 eight-core processor with four threads per core for a total of 2,880 POWER7 processor threads and 16 terabytes of RAM. For the Jeopardy! competition, all of the data Watson referenced was kept in RAM as disk access would have been too slow to compete with humans. 

On the software side, Watson is written in a hodgepodge of languages, including C++, Prolog, and Java running on a Linux server with an Apache Hadoop framework.  The key, however, is the use of the IBM DeepQA architecture.

DeepQA is a content analysis approach that takes in questions in a natural rather than a structured language.

The first thing it does with a question is to decompose it, taking each part of it and looking for both the concepts on which each word is based as well as relationships that word (or phrase) may have with other words and phrases in the question.  Using this information, it can then build a “reconstruction” of the initial question that represents the “information need” for that question. A search of Watson’s resources then begins to assemble evidence related to that information need.

Once this process is completed, Watson begins a highly parallel process of constructing a set of answers using a number of different algorithms where each answer has a set of evidence supporting it that can be used to assign a relative confidence level to each answer. 

This is a great leap forward in terms of artificial intelligence (forming multiple answers and evaluating their potential correctness and doing it lickety-split), but it does leave me wondering if Watson is able to come up with anything new or outside of the conventional wisdom. But that’s a small point when you consider how many questions there are that can be answered within the confines of what we know now.

And the Future?

Today, Watson is being groomed for a number of missions as IBM looks for something more important than winning prize money on TV. Cancer research is one area that is being touted, and Watson is already being used to help design treatment plans based on the patient’s history and state.  And business analysis applications are also under study. Over the next few TechTips, we will look at what some of the APIs are that IBM has already constructed and how you might be able to use them.

Obviously, this is just the start of what Watson and DeepQA can do, and by the time the robot police round up all of the survivors and move us to internment camps in Nebraska, today’s Watson will probably look pretty primitive.

David Shirey

David Shirey is president of Shirey Consulting Services, providing technical and business consulting services for the IBM i world. Among the services provided are IBM i technical support, including application design and programming services, ERP installation and support, and EDI setup and maintenance. With experience in a wide range of industries (food and beverage to electronics to hard manufacturing to drugs--the legal kind--to medical devices to fulfillment houses) and a wide range of business sizes served (from very large, like Fresh Express, to much smaller, like Labconco), SCS has the knowledge and experience to assist with your technical or business issues. You may contact Dave by email at This email address is being protected from spambots. You need JavaScript enabled to view it. or by phone at (616) 304-2466.


MC Press books written by David Shirey available now on the MC Press Bookstore.

21st Century RPG: /Free, ILE, and MVC 21st Century RPG: /Free, ILE, and MVC
Boost your productivity, modernize your applications, and upgrade your skills with these powerful coding methods.
List Price $69.95

Now On Sale

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: