Damian Chojna is a developer in the CAE and has implemented another cool sample. The text below is from him.
The Smart Assistant sample application demonstrates a composite application that takes advantage of LanguageWare's text analysis libraries and displays information from an external information system, such as SAP.
There are three core components in the application. The user's mailbox, the language analysis component; called Smart Assistant and the Payroll component; a front end for an external information system.
When a user selects an email message header, the URL of that message is published to the Property Broker and the Smart Assistant component is wired for this property.
Smart Assistant reads the body of the selected message and using LanguageWare libraries, analyzes the text and extracts any entities that it can identify, displaying them in a tree-like fashion. Entities are arbitrary concepts such as people, places, tone of email, organizations etc. These libraries are quite neat, for example, they can disambiguate which person is being referred to in the email body based on the context of the email. The screen shot shows how the name 'Chris' was identified as Christopher Lambert, an employee managed by Mattew Paulson.
When a user selects a person from that tree, the person's ID is published as a property to the Property Broker.
The Payroll component, another Eclipse-based component is wired to respond to the person's ID and fetch that person's payroll information from an external system and display the information to the user. In this demonstration we used SAP as the external system.
More information about LanguageWare can be found at http://www.alphaworks.ibm.com/tech/lrw.