# Patent

## Title
Real-time sentiment analysis for synchronous communication

## Abstract

A lexical annotator that identifies a chunk of a communication and an associated sentiment is created. In real time, while monitoring a communication from a user, the lexical annotator is used to identify the sentiment for the chunk of the communication, and the sentiment for the chunk of the communication is provided.

## Background
FIELD
Embodiments of the invention relate to real-time sentiment analysis for synchronous communication 120.
BACKGROUND
In current technological environments, customers have many ways of influencing others with respect to their experiences with a product or company. Considering the explosive expansion of social media, an individual can easily tarnish the reputation of a company. If one “vocal” customer is dissatisfied with an interaction with a company, the customer may tell others about the interaction such that this may lead to future lost sales for the company.
With the rise of activity on social media networks, blogs, and other technologies, one person's negative opinion may have a cascading effect. Therefore, companies want their customers to be satisfied at the end of any customer interaction made, such as a call into a call center or an encounter in a chat session.
SUMMARY
Provided are a method, computer program product, and system for real time sentiment analysis. A lexical annotator that identifies a chunk of a communication and an associated sentiment is created. In real time, while monitoring a communication from a user, the lexical annotator is used to identify the sentiment for the chunk of the communication, and the sentiment for the chunk of the communication is provided.



BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS
Referring now to the drawings in which like reference numbers represent corresponding parts throughout:
FIG. 1 illustrates a computing architecture in accordance with certain embodiments.
FIG. 2 illustrates, in a flow diagram, operations performed to generate sentiment score 130s in accordance with certain embodiments. FIG. 2 is formed by FIG. 2A and FIG. 2B.
FIG. 3 illustrates, in a flow diagram, operations performed to locate a communication pattern in analytic text in accordance with certain embodiments.
FIG. 4 illustrates, in a flow diagram, operations performed to use an Unstructured Information Management Architecture (UIMA) pipeline in accordance with certain embodiments.
FIG. 5 illustrates a logical representation of a Common Analysis Structure (CAS) after a first UIMA stage in accordance with certain embodiments.
FIG. 6 illustrates a logical representation of a CAS after a second UIMA stage in accordance with certain embodiments.
FIG. 7 illustrates a logical representation of a CAS after a third UIMA stage in accordance with certain embodiments.
FIG. 8 illustrates a logical representation of a CAS after a fourth UIMA stage in accordance with certain embodiments.
FIG. 9 illustrates a cloud computing node in accordance with certain embodiments.
FIG. 10 illustrates a cloud computing environment in accordance with certain embodiments.
FIG. 11 illustrates abstraction model layers in accordance with certain embodiments.



DETAILED DESCRIPTION
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
FIG. 1 illustrates a computing architecture in accordance with certain embodiments. In FIG. 1, a computing device 100 includes a sentiment analysis engine 110, one or more communications 120, and one or more sentiment scores 130. In certain embodiments, the communications 120 are stored in text format for further processing. Each of the one or more sentiment scores 130 is associated with a sentiment. A sentiment may be described as an attitude of a user (e.g., a speaker or a writer) with respect to the conversation. For example, the sentiment may represent the emotional state of the user (e.g., polite, aggressive, neutral, etc.). A specific emotional state (e.g., polite, aggressive, neutral, etc.) may be described as a sentiment type.
The computing device 100 also includes a lexical annotator generator 140 and a parsing rule annotator generator 150. The computing device 100 also includes one or more dictionaries of base patterns 160. The lexical annotator generator 140 enables a user to create and edit one or more lexical annotators 142 by selecting (e.g., entering via an input device or a user interface) a chunk (e.g., a sequence of characters, tokens, words, etc.). The parsing rule annotator generator 150 enables a user to create and edit one or more parsing rule annotators 152 by selecting (e.g., entering via an input device or a user interface) any combination of a chunk, dictionary entries (from the dictionaries of base patterns 440), lexical annotators 142, and/or previously-defined parsing rule annotators 152. A character rule may be described as a type of lexical annotator 142. In certain embodiments, the lexical annotator generator 140 is an editor. In certain embodiments, the parsing rule annotator generator 150 is an editor.
The sentiment analysis engine 110 monitors sentiments of a customer and a company representative during interactions, in real-time (i.e., as the communication 120s between them are occurring), between them and outputs measurements of the sentiments. With the measurements of the sentiments of the customer and the company representative, the company may implement policies to make changes (e.g., changing the representative, routing the customer to a manger, addressing the customer's problem or concern, providing a partial refund, etc.) based on the sentiments to improve the interaction (e.g., when the sentiment of the customer or the company representative is below a certain level to ensure the customer is happy). Monitoring of the company representative also enables checking whether the company representative is in compliance with customer service guidelines.
In certain embodiments, the sentiment analysis engine 110 enables management of communication between the customer and the company representative to determine overall quality of customer satisfaction. The sentiment analysis engine 110 may alert management, in real time, of problematic communications before the communication (occurring in real-time) is escalated (e.g., to a point at which the customer is “yelling” at the company representative or using negative words in a written communication).
In certain embodiments, the level of negative sentiment may be an indicator of priority of calls (especially when management staffing levels may be inadequate).
FIG. 2 illustrates, in a flow diagram, operations performed to generate sentiment score 130s in accordance with certain embodiments. FIG. 2 is formed by FIG. 2A and FIG. 2B. Control begins at block 200 with the sentiment analysis engine 110 receiving a communication 120 from a user (e.g., a customer or company representative). For example, a customer may contact a business, a provider or a service (e.g., customer service) through, for example, a text message (e.g., an “instant message”), a chat message or a phone call.
In block 202, if the communication 120 is not received in text format (e.g., the communication 120 is a voice message via a phone call), the sentiment analysis engine 110 automatically converts the communication 120 to text format.
In block 204, the sentiment analysis engine 110 divides the communication 120 in text format into one or more chunks.
In block 206, the sentiment analysis engine 110 selects a next chunk from the one or more chunks, starting with a first chunk. From block 206 (FIG. 2A), processing continues to block 208 (FIG. 2B).
In certain embodiments, the sentiment analysis engine 110 performs text analytics on the user communication 120 using “chunks” in real time. The size of the chunks may be customized. For example, a chunk may be a set of five words. As additional examples, a chunk may be a set of words that ends after a period (i.e., the punctuation “.”), after a subject, after a verb, after a predicate, etc. In certain embodiments, the chunks are specific word clusters of interest (i.e., logical sections of text in which sentiment indicators are changing). In certain embodiments, a chunk of text is gathered when there is a change in the party that is currently conversing (i.e., when the customer finishes a communication 120 and the company representative starts a communication 120). In certain embodiments, the chunk of text is gathered when there is a pause greater than a configurable threshold. In certain embodiments, the chunk of text is gathered during a regular configurable time interval (e.g., every 5 seconds). In certain embodiments, the chunk of text is gathered when certain words are detected based on dictionary match (e.g., “cancel” or “not happy”).
In block 208, the sentiment analysis engine 110 performs sentiment text analysis on the selected chunk to generate a sentiment score 130 and/or a sentiment for the chunk using a natural language processing framework. In certain embodiments, the sentiment analysis engine 110 associates weights with terms (e.g., in a dictionary) and maintains a running window of summation of equally-weighted positive and negative terms. In certain embodiments, the sentiment analysis engine 110 has a running window of summation of weighted positive and negative terms based on system-configurable word list lookup tables containing scores per word. In certain embodiments, the sentiment analysis engine 110 is trained prior to deployment. During this training, an operator scoring phrases during a conversation, and these scores of phrases are used to create a dictionary and are input into a machine learning system that is used in sentiment analysis engine 110 deployments to automatically score user interactions based on known or learned patterns.
In block 210, the sentiment analysis engine 110, optionally, displays the sentiment score 130 and/or the sentiment. In certain embodiments, the sentiment score 130 of a customer is displayed to the company representative or other person working for the company (e.g., a manager). In certain embodiments, the sentiment score 130 of a company representative may be displayed to the company representative (to enable the company representative to adjust the tone, format, etc. of the communication 120 or to transfer the customer to another company representative) or may be displayed to another person working for the company (e.g., a manager) who may implement company policies (e.g., transfer the customer to another company representative). The sentiment score 130 is displayed so that user sentiment may be visualized in real time.
In block 212, the sentiment analysis engine 110 determines whether all chunks have been selected. If so, processing continues to block 214, otherwise, processing loops back to block 206 (FIG. 2A).
In block 214, the sentiment analysis engine 110 adds the sentiment scores 130 of the one or more chunks to generate a total score. In block 216, the sentiment analysis engine 110 optionally displays the total score and/or the sentiment. The total score is displayed so that user sentiment may be visualized in real time.
Natural Language Processing (NLP) may be described as a field of computer science, artificial intelligence, and linguistics related to interactions between computers and human (natural) languages. In certain embodiments, NLP is used to enable the sentiment analysis engine 110 to derive meaning from natural language input (e.g., text input representing a communication from a user).
Unstructured Information Management Architecture (UIMA) may be described as a software architecture that uses analytics for the analysis of unstructured information. UIMA may be described as an example of an NLP framework. General Architecture for Text Engineering (GATE) may be described as another example of an NLP framework.
In certain embodiments, the sentiment analysis engine 110 includes or uses a UIMA framework to detect sentiment in communications 120. In particular, the sentiment analysis engine 110 uses standard UIMA annotators with parsing rules specifically tailored to detect sentiment in communications 120. The lexical annotator generator 140 and the parsing rule annotator generator 150 are used to build custom text analytics annotators for UIMA pipelines. Text analytics is used in environments in which linguistic grammars, dictionaries, and parsing rules are utilized to help tease meaning from text sources Annotator may be described as a collection of character and/or parsing rules that are related in some way. The UIMA framework uses these annotators to help find matches in the text being analyzed. When a match is found (i.e., when an annotator rule is satisfied), an annotation is recorded in a Common Analysis Structure (CAS) that identifies the match, its location in the text, etc. Thus, the annotator is a tool to help find matches. An annotation may be described as the match that has been found and noted in the CAS.
FIG. 3 illustrates, in a flow diagram, operations performed to locate a communication pattern in analytic text in accordance with certain embodiments. A communication pattern may be described as any pattern of communication (e.g., in text or voice) that matches any of the lexical or parsing rules being performed by the annotator. Control begins at block 300 with creation of one or more lexical annotators that each identify a chunk and an associated sentiment. In certain embodiments, a lexical annotator may be described as a rule for identifying a chunk that associates a sentiment with that chunk. In block 302, one or more parsing rule annotators are created using at least one of (1) one or more of the lexical annotators, (2) one or more dictionary entries, and (3) one or more previously-defined parsing rule annotators. For example, a parsing rule annotator may be created that identifies an object of a sentiment. In this example, the object of the sentiment is the person, item, etc. at which the sentiment is directed. In certain embodiments, a parsing rule annotator indicates an order and a combination of the one or more lexical annotators, the one or more dictionary entries, and other parsing rule annotators relative to each other. In block 304, the one or more lexical annotators and the one or more parsing rule annotators are used to discover one or more chunks, associated sentiments, and additional information (e.g. associated objects of the sentiments, sentiment scores, etc.). For example, in the communication: “I am unhappy with the way the product is operation”, the word “unhappy” may be identified as a negative sentiment, and the words “the product” may be identified as the object of the sentiment.
FIG. 4 illustrates, in a flow diagram, operations performed to use an Unstructured Information Management Architecture (UIMA) pipeline in accordance with certain embodiments. Control begins at block 400, where, in a first stage of the UIMA pipeline, communication in text format found in a Common Analysis Structure (CAS) is parsed to determine language used and to tokenize components of the text. In block 402, in a second stage of the UIMA pipeline, lexical analysis is performed by identifying matches to the one or more lexical annotators to identify sentiments of chunks in the communication in text format and to report one or more sentiment annotations. Reporting an annotation may be described as storing the annotation in the CAS. In block 404, in a third stage of the UIMA pipeline, annotations previously reported (e.g., in block 402) are used to determine whether there are matches to parsing rule annotators and to report one or more new parsing rule annotations. In block 406, in a fourth stage of the UIMA pipeline, cleanup is performed.
Merely to enhance understanding, an example using a UIMA pipeline is illustrated in FIGS. 5-8.
FIG. 5 illustrates a logical representation of a Common Analysis Structure (CAS) 500 after a first UIMA stage in accordance with certain embodiments. The first logical stage of the UIMA pipeline is used to parse the analysis text found in the CAS (Common Analysis Structure) to determine language used, as well as, to tokenize various components of the natural language text. In the example of FIG. 5, the language used defaults to English. This example also assumes that a “change of party chunking technique” is being used (i.e., analyzing a chunk of text each time there has been a change of party during the conversation).
FIG. 6 illustrates a logical representation of a CAS 600 after a second UIMA stage in accordance with certain embodiments. The second logical stage of the UIMA pipeline is to work through the lexical annotators. In the example of FIG. 6, dictionaries of base patterns that have been created are “executed” to determine whether there are any new annotations that can be made against the analysis text being analyzed. A NegativeSentiment annotation is added to the CAS in FIG. 6 to indicate that “unhappy” is a negative sentiment.
FIG. 7 illustrates a logical representation of a CAS 700 after a third UIMA stage in accordance with certain embodiments. The third logical stage of the UIMA pipeline is to work through the parsing rule annotators. In the example of FIG. 7, a simple parsing rule is demonstrated that identifies the object of sentiment, and this is referred to as an “ObjectOfSentiment” parsing rule. Using the one or more annotations already created in the previous stages of the UIMA pipeline, the UIMA framework uses the “ObjectOfSentiment” parsing rule to see whether there are any matches in the analysis text. The terms “the product” matches the “ObjectOfSentiment” parsing rule requirements and is annotated.
FIG. 8 illustrates a logical representation of a CAS 800 after a fourth UIMA stage in accordance with certain embodiments. The UIMA cleanup stage is used to do any cleanup work necessary on the CAS that has been generated and populated thus far in the process. For the example of FIGS. 5-7, nothing is required in this stage (i.e., the CAS remains the same).
In certain embodiments, a “CAS consumer” is any component in the UIMA framework that uses the CAS for information. There are two main consumers of the CAS: each successive stage in the UIMA pipeline and the final consumer at the end of the pipeline.
When the UIMA pipeline is constructed, each successive stage, after the first, uses the CAS to determine whether additional annotations are added or removed from the CAS. Consumers down stream see these modifications and do not need to reparse the natural language text. The final CAS consumer is a computer process that “reads” which annotations have been located in the natural language text and “acts” on the annotations. This can initiate additional processing or it can be as simple as reporting the information to some interface (e.g., a graphical user interface). In addition, the annotations may be used in sentiment scoring by the sentiment analysis engine 110.
Thus, in certain embodiments, the sentiment analysis engine 110 may be considered an outside process that consumes the annotations and adds scores to the annotations. In certain embodiments, the sentiment analysis engine 110 may display the annotations and scores in a User Interface (UI) or interact with a telecommunications device (e.g., in the phone situation, a manager is automatically notified that there is a problem and the manager is allowed to listen in on the conversation).
In certain embodiments, the sentiment analysis engine 110 uses natural language processing to determine real-time sentiments. In certain embodiments, the sentiment analysis engine 110 uses natural language processing to capture topical chunks of each communication 120 and to determine the sentiment of the chunks. This sentiment may then be displayed (e.g., in a user interface).
Using natural language processing, the sentiment analysis engine 110 determines the sentiment of the customer and the company representative at various points during the communication 120s (e.g., via text message, chat or phone call). The sentiment analysis engine 110 calculates both cumulative (i.e., spanning multiple chunks (e.g., spanning a portion of the conversation or the entire length of the conversation)) and instantaneous sentiments based on analysis of the text of the conversation.
Synchronous systems, such as “support chat” (i.e., a chat session between a customer and a company representative) are becoming more common, while traditional voice communication 120 (i.e., telephone) is on the decline. In either case, it is useful to determine the sentiment/meaning/mood of the customer, as well as, the company representative. The sentiment analysis engine 110 provides real time sentiment analysis to help identify sentiments and bridge any gap in communication 120.
Cloud Environment
It is understood in advance that although this disclosure includes a detailed description on cloud computing, implementation of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention are capable of being implemented in conjunction with any other type of computing environment now known or later developed.
Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g. networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal management effort or interaction with a provider of the service. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
Characteristics are as follows:
On-demand self-service: a cloud consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with the service's provider.
Broad network access: capabilities are available over a network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).
Resource pooling: the provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to demand. There is a sense of location independence in that the consumer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state, or datacenter).
Rapid elasticity: capabilities can be rapidly and elastically provisioned, in some cases automatically, to quickly scale out and rapidly released to quickly scale in. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be purchased in any quantity at any time.
Measured service: cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported providing transparency for both the provider and consumer of the utilized service.
Service Models are as follows:
Software as a Service (SaaS): the capability provided to the consumer is to use the provider's applications running on a cloud infrastructure. The applications are accessible from various client devices through a thin client interface such as a web browser (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure including network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.
Platform as a Service (PaaS): the capability provided to the consumer is to deploy onto the cloud infrastructure consumer-created or acquired applications created using programming languages and tools supported by the provider. The consumer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, or storage, but has control over the deployed applications and possibly application hosting environment configurations.
Infrastructure as a Service (IaaS): the capability provided to the consumer is to provision processing, storage, networks, and other fundamental computing resources where the consumer is able to deploy and run arbitrary software, which can include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over operating systems, storage, deployed applications, and possibly limited control of select networking components (e.g., host firewalls).
Deployment Models are as follows:
Private cloud: the cloud infrastructure is operated solely for an organization. It may be managed by the organization or a third party and may exist on-premises or off-premises.
Community cloud: the cloud infrastructure is shared by several organizations and supports a specific community that has shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It may be managed by the organizations or a third party and may exist on-premises or off-premises.
Public cloud: the cloud infrastructure is made available to the general public or a large industry group and is owned by an organization selling cloud services.
Hybrid cloud: the cloud infrastructure is a composition of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technology that enables data and application portability (e.g., cloud bursting for load balancing between clouds).
A cloud computing environment is service oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure comprising a network of interconnected nodes.
Referring now to FIG. 9, a schematic of an example of a cloud computing node is shown. Cloud computing node 910 is only one example of a suitable cloud computing node and is not intended to suggest any limitation as to the scope of use or functionality of embodiments of the invention described herein. Regardless, cloud computing node 910 is capable of being implemented and/or performing any of the functionality set forth hereinabove.
In cloud computing node 910 there is a computer system/server 912, which is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use with computer system/server 912 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems or devices, and the like.
Computer system/server 912 may be described in the general context of computer system executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types. Computer system/server 912 may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communication 920s network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
As shown in FIG. 9, computer system/server 912 in cloud computing node 910 is shown in the form of a general-purpose computing device. The components of computer system/server 912 may include, but are not limited to, one or more processors or processing units 916, a system memory 928, and a bus 918 that couples various system components including system memory 928 to a processor or processing unit 916.
Bus 918 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnects (PCI) bus.
Computer system/server 912 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 912, and it includes both volatile and non-volatile media, removable and non-removable media.
System memory 928 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 930 and/or cache memory 932. Computer system/server 912 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 934 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to bus 918 by one or more data media interfaces. As will be further depicted and described below, memory 928 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program/utility 940, having a set (at least one) of program modules 942, may be stored in memory 928 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data or some combination thereof, may include an implementation of a networking environment. Program modules 942 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
Computer system/server 912 may also communicate with one or more external devices 914 such as a keyboard, a pointing device, a display 924, etc.; one or more devices that enable a user to interact with computer system/server 912; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 912 to communicate with one or more other computing devices. Such communication 920 can occur via Input/Output (I/O) interfaces 922. Still yet, computer system/server 912 can communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) via network adapter 920. As depicted, network adapter 920 communicates with the other components of computer system/server 912 via bus 918. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 912. Examples, include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
Referring now to FIG. 10, illustrative cloud computing environment 1050 is depicted. As shown, cloud computing environment 1050 comprises one or more cloud computing nodes 910 with which local computing devices used by cloud consumers, such as, for example, personal digital assistant (PDA) or cellular telephone 1054A, desktop computer 1054B, laptop computer 1054C, and/or automobile computer system 1054N may communicate. Nodes 910 may communicate with one another. They may be grouped (not shown) physically or virtually, in one or more networks, such as Private, Community, Public, or Hybrid clouds as described hereinabove, or a combination thereof. This allows cloud computing environment 1050 to offer infrastructure, platforms and/or software as services for which a cloud consumer does not need to maintain resources on a local computing device. It is understood that the types of computing devices 1054A-N shown in FIG. 10 are intended to be illustrative only and that computing nodes 910 and cloud computing environment 1050 can communicate with any type of computerized device over any type of network and/or network addressable connection (e.g., using a web browser).
Referring now to FIG. 11, a set of functional abstraction layers provided by cloud computing environment 1050 (FIG. 10) is shown. It should be understood in advance that the components, layers, and functions shown in FIG. 11 are intended to be illustrative only and embodiments of the invention are not limited thereto. As depicted, the following layers and corresponding functions are provided:
Hardware and software layer 1160 includes hardware and software components. Examples of hardware components include mainframes, in one example IBM® zSeries® systems; RISC (Reduced Instruction Set Computer) architecture based servers, in one example IBM pSeries® systems; IBM xSeries® systems; IBM BladeCenter® systems; storage devices; networks and networking components. Examples of software components include network application server software, in one example IBM WebSphere® application server software; and database software, in one example IBM DB2® database software. (IBM, zSeries, pSeries, xSeries, BladeCenter, WebSphere, and DB2 are trademarks of International Business Machines Corporation registered in many jurisdictions worldwide).
Virtualization layer 1162 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers; virtual storage; virtual networks, including virtual private networks; virtual applications and operating systems; and virtual clients.
In one example, management layer 1164 may provide the functions described below. Resource provisioning provides dynamic procurement of computing resources and other resources that are utilized to perform tasks within the cloud computing environment. Metering and Pricing provide cost tracking as resources are utilized within the cloud computing environment, and billing or invoicing for consumption of these resources. In one example, these resources may comprise application software licenses. Security provides identity verification for cloud consumers and tasks, as well as protection for data and other resources. User portal provides access to the cloud computing environment for consumers and system administrators. Service level management provides cloud computing resource allocation and management such that required service levels are met. Service Level Agreement (SLA) planning and fulfillment provide pre-arrangement for, and procurement of, cloud computing resources for which a future requirement is anticipated in accordance with an SLA.
Workloads layer 1166 provides examples of functionality for which the cloud computing environment may be utilized. Examples of workloads and functions which may be provided from this layer include: mapping and navigation; software development and lifecycle management; virtual classroom education delivery; data analytics processing; transaction processing; and sentiment analysis.
Thus, in certain embodiments, software or a program, implementing sentiment analysis in accordance with embodiments described herein, is provided as a service in a cloud environment.
In certain embodiments, the computing device 100 has the architecture of computing node 910. In certain embodiments, the computing device 100 is part of a cloud environment. In certain alternative embodiments, the computing device 100 is not part of a cloud environment.
Additional Embodiment Details
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, solid state memory, magnetic tape or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
Aspects of the embodiments of the invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational processing (e.g., operations or steps) to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The code implementing the described operations may further be implemented in hardware logic or circuitry (e.g., an integrated circuit chip, Programmable Gate Array (PGA), Application Specific Integrated Circuit (ASIC), etc. The hardware logic may be coupled to a processor to perform operations.
Devices that are in communication 120 with each other need not be in continuous communication 120 with each other, unless expressly specified otherwise. In addition, devices that are in communication 120 with each other may communicate directly or indirectly through one or more intermediaries.
A description of an embodiment with several components in communication 120 with each other does not imply that all such components are required. On the contrary a variety of optional components are described to illustrate the wide variety of possible embodiments of the present invention.
Further, although process steps, method steps, algorithms or the like may be described in a sequential order, such processes, methods and algorithms may be configured to work in alternate orders. In other words, any sequence or order of steps that may be described does not necessarily indicate a requirement that the steps be performed in that order. The steps of processes described herein may be performed in any order practical. Further, some steps may be performed simultaneously.
When a single device or article is described herein, it will be readily apparent that more than one device/article (whether or not they cooperate) may be used in place of a single device/article. Similarly, where more than one device or article is described herein (whether or not they cooperate), it will be readily apparent that a single device/article may be used in place of the more than one device or article or a different number of devices/articles may be used instead of the shown number of devices or programs. The functionality and/or the features of a device may be alternatively embodied by one or more other devices which are not explicitly described as having such functionality/features. Thus, other embodiments of the present invention need not include the device itself.
The illustrated operations of the flow diagrams show certain events occurring in a certain order. In alternative embodiments, certain operations may be performed in a different order, modified or removed. Moreover, operations may be added to the above described logic and still conform to the described embodiments. Further, operations described herein may occur sequentially or certain operations may be processed in parallel. Yet further, operations may be performed by a single processing unit or by distributed processing units.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The terms “an embodiment”, “embodiment”, “embodiments”, “the embodiment”, “the embodiments”, “one or more embodiments”, “some embodiments”, and “one embodiment” mean “one or more (but not all) embodiments of the present invention(s)” unless expressly specified otherwise.
The terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless expressly specified otherwise.
The enumerated listing of items does not imply that any or all of the items are mutually exclusive, unless expressly specified otherwise.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of embodiments of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The foregoing description of embodiments of the invention has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the embodiments to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope of the embodiments be limited not by this detailed description, but rather by the claims appended hereto. The above specification, examples and data provide a complete description of the manufacture and use of the composition of the embodiments. Since many embodiments may be made without departing from the spirit and scope of the invention, the embodiments reside in the claims hereinafter appended or any subsequently-filed claims, and their equivalents.

## Claims

1. A method, comprising:
creating, with a processor of a computer, a lexical annotator that is a rule that identifies a chunk of text and associates a sentiment with that chunk, wherein the chunk is made up of a set of words, and wherein the chunk is received via a user interface;
using a combination of multiple items selected from a group of (1) the lexical annotator, (2) a dictionary entry, and (3) a previously-defined parsing rule annotator to create a new parsing rule annotator; and
in real time, while monitoring a communication in text format from a user,
using the lexical annotator to identify a match of a chunk in the communication to the chunk of the lexical annotator and to identify the sentiment for the chunk of the communication;
storing the sentiment and a position of the match in the communication in a structure;
using the new parsing rule annotator with the sentiment and the position stored in the structure to identify an object of the sentiment;
storing the object of the sentiment in the structure;
providing the sentiment for the chunk of the communication and the object of the sentiment in the structure to a consumer; and
providing a sentiment score for the sentiment, that is selected from sentiment scores by a previously trained machine learning system that is used to automatically score interactions based on at least one of known and learned patterns, wherein scores of phrases are input into the previously trained machine learning system.

2. The method of claim 1, further comprising:
generating a new sentiment for multiple chunks of the communication.

3. The method of claim 1, wherein a portion of the communication is selected for sentiment analysis based on a time period.

4. The method of claim 1, wherein a portion of the communication is selected for sentiment analysis based on a logical grouping of word clusters.

5. The method of claim 1, wherein the communication occurs via at least one of a text message, chat, and telephone call.

6. The method of claim 1, further comprising:
using an Unstructured Information Management Architecture (UIMA) pipeline to identify the sentiment of the chunk and additional information.

7. The method of claim 1, wherein a Software as a Service (SaaS) is provided to perform method operations.

8. A computer program product, the computer program product comprising:
a non-transitory computer readable storage medium having computer readable program code embodied therewith, the computer readable program code, executable by at least one processor of a computer, is configured to perform:
creating a lexical annotator that is a rule that identifies a chunk of text and associates a sentiment with that chunk, wherein the chunk is made up of a set of words, and wherein the chunk is received via a user interface;
using a combination of multiple items selected from a group of (1) the lexical annotator, (2) a dictionary entry, and (3) a previously-defined parsing rule annotator to create a new parsing rule annotator; and
in real time, while monitoring a communication in text format from a user,
using the lexical annotator to identify a match of a chunk in the communication to the chunk of the lexical annotator and to identify the sentiment for the chunk of the communication;
storing the sentiment and a position of the match in the communication in a structure;
using the new parsing rule annotator with the sentiment and the position stored in the structure to identify an object of the sentiment;
storing the object of the sentiment in the structure;
providing the sentiment for the chunk of the communication and the object of the sentiment in the structure to a consumer; and
providing a sentiment score for the sentiment, that is selected from sentiment scores by a previously trained machine learning system that is used to automatically score interactions based on at least one of known and learned patterns, wherein scores of phrases are input into the previously trained machine learning system.

9. The computer program product of claim 8, wherein the computer readable program code, executable by the at least one processor of the computer, is configured to perform:
generating a new sentiment for multiple chunks of the communication.

10. The computer program product of claim 8, wherein a portion of the communication is selected for sentiment analysis based on a time period.

11. The computer program product of claim 8, wherein a portion of the communication is selected for sentiment analysis based on a logical grouping of word clusters.

12. The computer program product of claim 8, wherein the communication occurs via at least one of a text message, chat, and telephone call.

13. The computer program product of claim 8, wherein the computer readable program code, executable by the at least one processor of the computer, is configured to perform:
using an Unstructured Information Management Architecture (UIMA) pipeline to identify the sentiment of the chunk and additional information.

14. The computer program product of claim 8, wherein a Software as a Service (SaaS) is configured to perform computer program product operations.

15. A computer system, comprising:
a processor; and
a storage device connected to the processor, wherein the storage device has stored thereon a program, wherein the processor is configured to execute instructions of the program to perform operations, and wherein the operations comprise:
creating a lexical annotator that is a rule that identifies a chunk of text and associates a sentiment with that chunk, wherein the chunk is made up of a set of words, and wherein the chunk is received via a user interface;
using a combination of multiple items selected from a group of (1) the lexical annotator, (2) a dictionary entry, and (3) a previously-defined parsing rule annotator to create a new parsing rule annotator; and
in real time, while monitoring a communication in text format from a user,
using the lexical annotator to identify a match of a chunk in the communication to the chunk of the lexical annotator and to identify the sentiment for the chunk of the communication;
storing the sentiment and a position of the match in the communication in a structure;
using the new parsing rule annotator with the sentiment and the position stored in the structure to identify an object of the sentiment;
storing the object of the sentiment in the structure;
providing the sentiment for the chunk of the communication and the object of the sentiment in the structure to a consumer; and
providing a sentiment score for the sentiment, that is selected from sentiment scores by a previously trained machine learning system that is used to automatically score interactions based on at least one of known and learned patterns, wherein scores of phrases are input into the previously trained machine learning system.

16. The computer system of claim 15, wherein the operations further comprise:
generating a new sentiment for multiple chunks of the communication.

17. The computer system of claim 15, wherein a portion of the communication is selected for sentiment analysis based on a time period.

18. The computer system of claim 15, wherein a portion of the communication is selected for sentiment analysis based on a logical grouping of word clusters.

19. The computer system of claim 15, wherein the communication occurs via at least one of a text message, chat, and telephone call.

20. The computer system of claim 15, wherein the operations further comprising:
using an Unstructured Information Management Architecture (UIMA) pipeline to identify the sentiment of the chunk and additional information.

21. The computer system of claim 15, wherein a Software as a Service (SaaS) is provided to perform system operations.

22. A computer system for processing a data management request, comprising:
at least one processor; and
hardware logic coupled to the processor, wherein the hardware logic performs operations that comprise:
creating a lexical annotator that is a rule that identifies a chunk of text and associates a sentiment with that chunk, wherein the chunk is made up of a set of words, and wherein the chunk is received via a user interface;
using a combination of multiple items selected from a group of (1) the lexical annotator, (2) a dictionary entry, and (3) a previously-defined parsing rule annotator to create a new parsing rule annotator; and
in real time, while monitoring one or more communications in text format from a user,
analyzing a chunk of the communication to determine a sentiment of the user using a natural language processing framework by:
using the lexical annotator to identify a match of a chunk in the communication to the chunk of the lexical annotator and to identify the sentiment for the chunk of the communication;

storing the sentiment and a position of the match in the communication in a structure;
using the new parsing rule annotator with the sentiment and the position stored in the structure to identify an object of the sentiment;
storing the object of the sentiment in the structure;
providing the sentiment for the chunk of the communication and the object of the sentiment in the structure to a consumer; and
providing a sentiment score for the sentiment, that is selected from sentiment scores by a previously trained machine learning system that is used to automatically score interactions based on at least one of known and learned patterns, wherein scores of phrases are input into the previously trained machine learning system.