Category: watson

IBM will begin sunsetting IBM Watson™ Personality Insights on 1 December 2020. For a period of one year from this date, you will still be able to use Personality Insights. However, as of 1 December 2021, the offering will no longer be available.

As an alternative, we encourage you to consider migrating to IBM Watson™ Natural Language Understanding, a service on IBM Cloud that uses deep learning to extract data and insights from text such as keywords, categories, sentiment, emotion, and syntax to provide insights for your business or industry.

More information on this link

watson

I found today this link https://ibmcloud-watson-day.mybluemix.net/.

There are several tutorials about IBM Watson API’s

watson

Today i got the following error when i install watson python sdk on my MAC:

I use the command :  sudo pip install watson-developer-cloud

The exception was:
Traceback (most recent call last):
File “/Library/Python/2.7/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/Library/Python/2.7/site-packages/pip/commands/install.py”, line 342, in run
prefix=options.prefix_path,
File “/Library/Python/2.7/site-packages/pip/req/req_set.py”, line 778, in install
requirement.uninstall(auto_confirm=True)
File “/Library/Python/2.7/site-packages/pip/req/req_install.py”, line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File “/Library/Python/2.7/site-packages/pip/req/req_uninstall.py”, line 115, in remove
renames(path, new_path)
File “/Library/Python/2.7/site-packages/pip/utils/__init__.py”, line 267, in renames
shutil.move(old, new)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”, line 299, in move
copytree(src, real_dst, symlinks=True)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”, line 208, in copytree

Solving the problem:

sudo -H pip install –ignore-installed six watson-developer-cloud

After a few seconds:

Successfully built watson-developer-cloud Twisted zope.interface pycparser
Installing collected packages: six, certifi, chardet, idna, urllib3, requests, python-dateutil, txaio, autobahn, setuptools, zope.interface, constantly, incremental, attrs, Automat, hyperlink, Twisted, pycparser, cffi, enum34, asn1crypto, ipaddress, cryptography, pyOpenSSL, pyasn1, pyasn1-modules, service-identity, watson-developer-cloud

watson

I start a new java project on eclipse using the SDK for Watson.
When i try to connect on any watson service i got the error:

CWPKI0022E: SSL HANDSHAKE FAILURE: A signer with SubjectDN CN=*.watsonplatform.net, O=International Business Machines Corporation,
L=Armonk, ST=New York, C=US was sent from the target host

This error means, that the local Liberty trust store does not have the correct signer certificate from the remote WATSON website where you tries to connect to.
It’s a certificate error. To solve the problem on my MAC i just do the following:

1 – Download the cetificate. The easy way i found was:

openssl s_client -host https://gateway.watsonplatform.net -port 443 -prexit -showcerts

2 – Create a text file with the first certificate

3 – Import the certificate on the truststore

keytool -import -alias watsonsigner -file cert1.pem -keystore /Users/[pathto key.jks]/key.jks -storepass password -storetype jks

watson

Watson™ Explorer Natural Language Querying (NLQ) improves the user search experience by allowing the user to query Watson Explorer using natural language queries such as questions.

This is accomplished through the use of two components: Query Modifier, which modifies user queries before they are executed, and Ontolection Trainer, which provides machine learning tools that can generate ontolections for use in query expansion.

The setup process is not hard you can follow the instructions here.

But how to use it?

If you are using the REST API you must add this to your query:

&query-modification-macros=enhance-query-with-querymodifier

On WEX applications (using projects) the process is a little different and not well documented. The Knowledge center only tell you about the macro and not were to put the macro.

Log on on the administration interface and go to your project and go to:

Project > Advanced > Misc > section “Other” > option “Query modification macro” > Set it to enhance-project-with-querymodifier

watson

If you have used Watson Knowledge Studio (WKS) before, you would know that it is a powerful application to teach Watson how to interpret specific terms in unstructured text using annotation models. Available since July 2016, WKS we are using WKS on several projetcts.

More information on this link

watson

I am using Centos for all IBM Software i work with.   Domino, WebSphere Portal, DB2, ITDS to name a few. The last software was Watson Explorer Enterprise and Advanced.

I know Centos is not supported by IBM but it works

During the setup of analytical components version 11.0.2 the installer was not working with and the error message is bellow:

Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

JRE libraries are missing or not compatible....
Exiting....

I search for a solution and IBM has a technote about the problem on version 11.0.0. To solve just install the 32 bit libraries

- zlib-devel.i686
- libXext.i686
- libXft.i686
- libXi.i686
- libXp.i686
- libXtst.i686

 

Another problem was when i launch the ESAdmin interface http://server:8390/ESAdmin after start the services with the command esadmin service startall
FFQM0142E The system is not running. To start the system, log in as the administrator on any server and enter: esadmin system startall

Again i need to verify all libraries. libstdc++.i686 and libstdc++ was not installed .

For wex fc and analytics component you need the following:

  1. libstdc++33 (compat-libstdc++-33.i686 / libstdc++33-32bit)
  2. libstdc++ (libstdc++.i686 / libstdc++6-32bit)
  3. zlib (zlib.i686 / libz1-32bit / zlib-32bit)
  4. libXext (libXext.i686 / libXext6-32bit / xorg-x11-libXext-32bit)
  5. libXft (libXft.i686 / libXft2-32bit / xorg-x11-libs-32bit)
  6. libXi (libXi.i686 / libXi6-32bit / xorg-x11-libs-32bit)
  7. libXp (libXp.i686 / libXp6-32bit / xorg-x11-libXp-32bit)
  8. libXtst (libXtst.i686 / libXtst6-32bit / xorg-x11-libs-32bit)

watson

I used the steps bellow to run my chatbot servlet application inside of a Docker container.

1 – Download WAS Liberty Docker image:

docker pull websphere-liberty

2 – Create a Docker file with the following lines

FROM websphere-liberty
ADD ChatBot.war /opt/ibm/wlp/usr/servers/defaultServer/dropins/
ADD server.xml /opt/ibm/wlp/usr/servers/defaultServer/
ENV LICENSE accept

ChatBot.war is my chatbot application.
To add features and configuration for your server you need to update the server.xml.
Do not forget to put host=”*” on httpEndpoint or you will not access the server from your browser.

The server.xml is listed below

<server description=”new server”>

<!– Enable features –>
<featureManager>
<feature>javaee-7.0</feature>
<feature>localConnector-1.0</feature>
<feature>distributedMap-1.0</feature>
<feature>webCache-1.0</feature>
</featureManager>
<basicRegistry id=”basic” realm=”BasicRealm”>
<!– <user name=”yourUserName” password=”” />  –>
</basicRegistry>
<!– To access this server from a remote client add a host attribute to the following element, e.g. host=”*” –>
<httpEndpoint host=”*” httpPort=”9080″ httpsPort=”9443″ id=”defaultHttpEndpoint”/>
<!– Automatically expand WAR files and EAR files –>
<applicationManager autoExpand=”true”/>
<applicationMonitor updateTrigger=”mbean”/>
<distributedMap id=”watsoncache” jndiName=”services/cache/watsoncache”>
<diskCache/>
</distributedMap>
<keyStore id=”defaultKeyStore” password=”password”/>
<basicRegistry id=”basic” realm=”BasicRealm”>
<user name=”user” password=”password”/>
</basicRegistry>
</server>

3 – execute docker built -t chatbot .
4 – execute docker run -d -p 80:9080 -p 443:9443 chatbot
5 – Open your browser and access your application using localhost.

docker watson WebSphere