Integration of contextual tags with named entity recognition models

CN118657149APending Publication Date: 2024-09-17ORACLE INT CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410760033.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2021-01-20
Filing Date
2022-01-19
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

[0006]然而,聊天机器人很难构建,因为它们需要可能只在专业开发人员的能力范围内的某些领域中的特定知识和某些技术的应用

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657149A
    Figure CN118657149A
Patent Text Reader

Abstract

The invention relates to contextual tag and named entity recognition model integration. Techniques are provided for using contextual tags in a Named Entity Recognition (NER) model. In one particular aspect, a method is provided that includes receiving an utterance; generating an embedding of a word for the utterance; generating a regular expression for the utterance and a place name dictionary feature vector; generating a context tag distribution feature vector for the utterance; the embedding and regular expression, the place name dictionary feature vector and the context label distribution feature vector are connected in series or interpolated to generate a set of feature vectors; generating an encoded form of the utterance based on the set of feature vectors; generating a logarithmic probability based on the encoding form of the utterance; and identifying one or more constraints for the utterance.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with application number 202280010945.4, application date January 19, 2022, and name “Integration of contextual tags and named entity recognition model”.

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS

[0003] This application claims the benefit of and priority to U.S. Provisional Application No. 63 / 139,569, filed on January 20, 2021, the entire contents of which are incorporated herein by reference for all purposes. Technical Field

[0004] The present disclosure relates generally to chatbot systems, and more particularly to techniques for adding contextual tags to named entity recognition (NER) models. Background Art

[0005] In order to get instant responses, people around the world use instant messaging or chat platforms. Organizations often use these instant messaging or chat platforms to conduct real-time conversations with customers (or end users). However, hiring service personnel to communicate with customers or end users in real time can be very expensive for organizations. Chatbots or robots have been developed to simulate conversations with end users, especially over the Internet. End users can communicate with such robots through messaging applications. Intelligent robots (usually robots powered by artificial intelligence (AI)) can communicate intelligently and contextually in real-time conversations with end users, which allows the conversation to be more natural and improves the conversation experience. Instead of relying on a fixed set of keywords or commands, intelligent robots can be able to receive utterances expressed by end users in natural language, understand their intent, and respond accordingly.

[0006] However, chatbots are difficult to build because they require specific knowledge in certain areas and the application of certain techniques that may only be within the capabilities of professional developers. In order to build these chatbots, developers seek to understand the needs of end users and build one or more machine learning (ML) models that suit their needs. The task of building one or more ML models typically involves developing and testing multiple models using solutions based on unsupervised and / or supervised learning. In some cases, building ML models involves a training phase, an application (i.e., reasoning) phase, and an iterative cycle between the training phase and the application phase. In some cases, accurate training data is required to enable the algorithm to understand and learn certain patterns or features so that the trained one or more ML models can predict the desired results (e.g., infer intent from utterances). Summary of the invention

[0007] Techniques for adding contextual tags to NER models are disclosed.

[0008] In various embodiments, a computer-implemented method includes: receiving at least one utterance including one or more words at a chatbot system including a processor; generating multiple embeddings for one or more words of the at least one utterance by a transformer-based model of the chatbot system; generating at least one regular expression and gazetteer feature vector for the at least one utterance by a first vectorizer of the chatbot system; generating at least one context label distribution feature vector for the at least one utterance by a second vectorizer of the chatbot system; concatenating or interpolating the multiple embeddings with the at least one regular expression and gazetteer feature vector and the at least one context label distribution feature vector to generate a first set of feature vectors; generating an encoded form of the at least one utterance based on the first set of feature vectors by a main sequence model of the chatbot system; generating multiple log-probabilities of candidate entities based on the encoded form of the at least one utterance by a discriminative model of the chatbot system; and identifying one or more constraints for the at least one utterance based on the candidate entities using the multiple log-probabilities.

[0009] In some embodiments, at least one utterance includes at least one of: one or more queries to the chatbot system, one or more queries input to the chatbot system by a user, one or more responses provided by the user in response to one or more queries to the chatbot system, or a combination thereof.

[0010] In some embodiments, the transformer-based model of the chatbot system includes a transformer-based bidirectional encoder representation model.

[0011] In some embodiments, the first vectorizer generates at least one regular expression and gazetteer feature vector based on one or more regular expression patterns and one or more gazetteers.

[0012] In some embodiments, the second vectorizer generates at least one contextual label distribution feature vector based on the context of at least one of: one or more queries of the chatbot system, one or more queries input by a user to the chatbot system, one or more responses provided by the user in response to one or more queries of the chatbot system, or a combination thereof.

[0013] In some embodiments, the main sequence model of the chatbot system includes a combined convolutional neural network / bidirectional long short-term memory model.

[0014] In some embodiments, the discriminative model of the chatbot system includes a conditional random field model.

[0015] Some embodiments of the present disclosure include a system comprising one or more data processors and a non-transitory computer-readable storage medium containing instructions that, when executed on the one or more data processors, cause the one or more data processors to perform part or all of one or more methods and / or part or all of one or more processes disclosed herein.

[0016] Some embodiments of the present disclosure include a computer program product tangibly embodied in a non-transitory machine-readable storage medium, the computer program product comprising instructions configured to cause one or more data processors to perform part or all of one or more methods and / or part or all of one or more processes disclosed herein.

[0017] The technology described above and below can be implemented in a variety of ways and in a variety of contexts. As described in more detail below, a variety of example implementations and contexts are provided with reference to the following figures. However, the following implementations and contexts are only some of many implementations and contexts. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a simplified block diagram of a distributed environment incorporating an exemplary embodiment.

[0019] Figure 2 is a simplified block diagram of a computing system implementing a master robot according to some embodiments.

[0020] Figure 3 is a simplified block diagram of a computing system that implements a skill robot in accordance with certain embodiments.

[0021] Figure 4A is a simplified block diagram of a chatbot training and deployment system according to various embodiments.

[0022] Figure 4B is a simplified block diagram of a named entity recognition (NER) architecture according to various embodiments.

[0023] Figure 5 A process flow for entity recognition taking context into account according to various embodiments is illustrated.

[0024] Figure 6 Depicted is a simplified diagram of a distributed system for implementing various embodiments.

[0025] Figure 7 is a simplified block diagram of one or more components of a system environment according to various embodiments by which services provided by one or more components of an embodiment system may be provided as a cloud service.

[0026] Figure 8 An example computer system is illustrated that can be used to implement the various embodiments. DETAILED DESCRIPTION

[0027] In the following description, for the purpose of explanation, specific details are set forth in order to provide a thorough understanding of certain embodiments. However, it will be apparent that various embodiments can be practiced without these specific details. The drawings and descriptions are not intended to be limiting. The word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any embodiment or design described herein as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments or designs.

[0028] introduction

[0029] A digital assistant is an artificial intelligence-driven interface that helps users complete various tasks in a natural language conversation. For each digital assistant, customers can assemble one or more skills. Skills (also described herein as chatbots, robots, or skillbots) are individual robots that focus on specific types of tasks such as tracking inventory, submitting time cards, and creating expense reports. When an end user engages with a digital assistant, the digital assistant evaluates the end user input and routes the conversation to and from the appropriate chatbot. This can be accomplished through Messenger (Instant Messenger), SKYPE Various channels such as messenger or short message service (SMS) make digital assistants available to end users. Channels carry chats back and forth between end users on various messaging platforms and digital assistants and their various chatbots. Channels can also support user agent escalation, event-initiated sessions, and testing.

[0030] Intent allows the chatbot to understand what the user wants the chatbot to do. Intent is the intention that the user conveys to the chatbot via user requests and statements, which are also referred to as discourse (e.g., obtaining an account balance, making a purchase, etc.). As used herein, discourse or messages may refer to a set of words (e.g., one or more sentences) exchanged during a conversation with the chatbot. Intent can be created by providing a name that describes a certain user action (e.g., ordering pizza) and compiling a set of real-life user statements or discourses that are usually associated with the triggering action. Because the cognition of the chatbot is derived from these intentions, each intention can be created and varied from a robust data set (one to two dozen discourses) so that the chatbot can interpret ambiguous user input. A rich set of discourses enables the chatbot to understand what the user wants when it receives messages such as "Forget this order! (ignore this order!)" or "Cancel delivery! (cancel delivery!)" (messages that mean the same thing but are expressed in different ways). In short, intent and discourse belonging to intent constitute the training corpus of the chatbot. By training the algorithm with the corpus, the customer turns the algorithm into a model used as a reference tool for parsing one or more end-user inputs into a single intent. Customers can improve the cognitive acumen of their chatbots through multiple rounds of intent testing and intent training.

[0031] However, building a chatbot that can determine the end user's intent based on the end user's utterances is a challenging task, at least due to the subtlety and ambiguity of natural language and the dimensionality of the input / output space (e.g., the number of possible user utterances, intents, etc.). Illustrative examples of this difficulty come from the characteristics of natural language, such as the use of euphemisms, synonyms, or ungrammatical speech to express intent. For example, an utterance may express the intention to order a pizza without mentioning the words: pizza, ordering, or delivery. These characteristics of natural language produce uncertainty and cause the chatbot to use confidence as a parameter for predicting user intent. Thus, in order to improve the performance of the chatbot and the user experience with the chatbot, it may be necessary to train, monitor, debug, and retrain the chatbot. In traditional spoken language understanding (SLU) and natural language processing (NLP) systems, training mechanisms are provided for training and retraining the machine learning algorithms of the digital assistants or chatbots included therein. Traditionally, these algorithms are trained using utterances "made" for any intent. For example, the utterance "Do you do price changes?" can be used to train the classification algorithm of the chatbot system to classify this type of utterance as the intent "Do you offer a price match." Training the algorithm with manufactured utterances helps to initially train the chatbot system to provide a service, and to retrain the chatbot system once the chatbot system is deployed and receives utterances from users.

[0032] User utterances can contain named entities. In addition to intent, named entities further allow the chatbot to understand the meaning of user utterances. Named entities modify one or more intents. For example, if a user types "show me yesterday's financial news", the named entities "yesterday" and "financial" help the chatbot understand the user's request. Entities can be classified according to what they represent. For example, "yesterday" can be classified as "dateTime", and "financial" can be classified as "newsType". Entities are sometimes called slots. Named entity recognition (NER) is a tool used by chatbot systems to automatically identify and extract entities. NER generally involves named entity resolution and named entity disambiguation. Named entity resolution involves identifying named entities in a word sequence, and named entity disambiguation involves identifying the exact referent of each named entity in a word sequence. For example, about place names: "Paris". Since the French city of Paris is well known, people will generally assume that the referent of this entity is the French city of Paris. However, there are other possible referents for the place name "Paris" (e.g., referents may include Paris, Texas, United States; Paris, Ontario, Canada; Paris, Panama; Paris, Togo, etc.). In addition, referents may include a person named Paris or a business entity or commercial enterprise named Paris. Because the referents of named entities may not always correspond to obvious or popular referents, identifying the intended referent is challenging.

[0033] To overcome these challenges and other challenges to correctly identify the intended referent of a particular named entity, the methods described herein take into account the context of the intended referent. In various embodiments, a method is provided, the method comprising: receiving at least one utterance; generating an embedding for one or more words of the at least one utterance; generating at least one regular expression and gazetteer feature vector for the at least one utterance; generating at least one context label distribution feature vector for the at least one utterance; concatenating or interpolating the embedding with the at least one regular expression and gazetteer feature vector and the at least one context label distribution feature vector to generate a first set of feature vectors; generating an encoded form of the at least one utterance based on the first set of feature vectors; generating multiple log probabilities of candidate entities based on the encoded form of the at least one utterance; and identifying one or more constraints for the at least one utterance based on the candidate entities using the multiple log probabilities. Other features and advantages of various embodiments are apparent in the present disclosure.

[0034] Robotic system

[0035] A robot (also known as a skill, chatbot, conversational robot, or talkbot) is a computer program that can perform a conversation with an end user. A robot can typically respond to a natural language message (e.g., a question or comment) through a messaging application that uses natural language messages. An enterprise can use one or more robots to communicate with end users through a messaging application. Messaging applications may include, for example, over-the-top (OTT) messaging channels (such as Facebook Messenger, Facebook WhatsApp, WeChat, Line, Kik, Telegram, Talk, Skype, Slack, or SMS), virtual personal assistants (such as Amazon Dot, Echo or Show, Google Home, Apple HomePod, etc.), native or hybrid extended mobile and web application extensions / responsive mobile applications or web applications with chat capabilities, or voice-based input (such as a device or application with an interface using Siri, Microsoft Cortana, Google Voice, or other voice input for interaction).

[0036] In some examples, a robot can be associated with a uniform resource identifier (URI). A URI can identify a robot using a string of characters. A URI can be used as a webhook for one or more messaging application systems. A URI can include, for example, a uniform resource locator (URL) or a uniform resource name (URN). A robot system can be designed to receive messages (e.g., hypertext transfer protocol (HTTP) post call messages) from a messaging application system. An HTTP post call message can point to a URI from a messaging application system. In some examples, a message can be different from an HTTP post call message. For example, a robot can receive a message from a short message service (SMS). Although the discussion herein refers to communications received by a robot as messages, it should be understood that a message can be an HTTP post call message, an SMS message, or any other type of communication between two systems.

[0037] End users interact with robots through conversational interactions (sometimes called conversational user interfaces (UIs)) just as they interact with other people. In some cases, a conversational interaction can include an end user saying "Hello" to a robot and the robot responding with "Hi" and asking the end user how the robot can help. End users also interact with robots through other types of interactions, such as transactional interactions (e.g., transactional interactions with a banking robot that is at least trained to transfer funds from one account to another), informational interactions (e.g., informational interactions with a human resources robot that is at least trained to check a user's remaining vacation time), and / or retail interactions (e.g., retail interactions with a retail robot that is at least trained to discuss returning a purchase or seeking technical support).

[0038] In some examples, the robot can intelligently handle end-user interactions without intervention by the robot's administrator or developer. For example, the end user can send one or more messages to the robot in order to achieve a desired goal. The message can include some content, such as text, emoticons, audio, images, videos, or other methods of conveying messages. In some examples, the robot can automatically convert the content into a standardized form and generate a natural language response. The robot can also automatically prompt the end user for additional input parameters or request other additional information. In some examples, the robot can also initiate communication with the end user instead of passively responding to the end user's speech.

[0039] A conversation with a robot can follow a specific conversation flow including multiple states. The flow can define what will happen next based on input. In some examples, a state machine including user-defined states (e.g., end-user intent) and actions to be taken in or between states can be used to implement the robot. The conversation can take different paths based on the end-user input, which may affect the decision made by the robot for the flow. For example, in each state, based on the end-user input or speech, the robot can determine the end-user's intent in order to determine the next appropriate action to be taken. As used herein and in the context of speech, the term "intent" refers to the intention of the user who provides the speech. For example, a user may intend to allow the robot to participate in a conversation for ordering pizza, wherein the user's intent will be represented by the speech "Order pizza". User intent can point to a specific task that the user wants the robot to perform on behalf of the user. Therefore, the speech that reflects the user's intent can be expressed as a question, command, request, etc.

[0040] In the context of the configuration of the robot, the term "intent" used herein also refers to configuration information for mapping the user's speech to a specific task / action or a specific type of task / action that the robot can perform. In order to distinguish the intent of the speech (i.e., the user's intent) from the intent of the robot, the latter is sometimes referred to as "robot intent" herein. The robot intent may include a set of one or more utterances associated with the intent. For example, the intent of ordering pizza may have various permutations of utterances expressing the expectation of placing an order to buy pizza. These associated utterances may be used to train the robot's intent classifier so that the intent classifier can then determine whether the input utterance from the user matches the intent of ordering pizza. The robot intent may be associated with one or more dialogue flows for initiating a session with the user and in a certain state. For example, the first message for the intent of ordering pizza may be the question "What kind of pizza would you like?" In addition to the associated utterances, the robot intent may further include named entities related to the intent. For example, the intent of ordering pizza may include variables or parameters for performing the task of ordering pizza, such as filling 1, filling 2, pizza type, pizza size, pizza quantity, etc. The value of the entity is usually obtained by talking to the user.

[0041] Figure 1 1 is a simplified block diagram of an environment 100 incorporating a chatbot system according to some embodiments. The environment 100 includes a digital assistant builder platform (DABP) 102 that enables users 104 of the DABP 102 to create and deploy digital assistants or chatbot systems. The DABP 102 can be used to create one or more digital assistants (or DAs) or chatbot systems. For example, Figure 1 As shown, a user 104 representing a particular business can use DABP 102 to create and deploy a digital assistant 106 for the users of the particular business. For example, DABP 102 can be used by a bank to create one or more digital assistants for use by the bank's customers. Multiple businesses can use the same DABP 102 platform to create digital assistants. As another example, the owner of a restaurant (e.g., a pizza shop) can use DABP 102 to create and deploy a digital assistant that enables customers of the restaurant to order food (e.g., order pizza).

[0042] For purposes of this disclosure, a "digital assistant" is a tool that assists the user of the digital assistant in completing various tasks through natural language conversation. A digital assistant may be implemented using software alone (e.g., a digital assistant is a digital entity implemented using a program, code, or instructions executable by one or more processors), using hardware, or using a combination of hardware and software. A digital assistant may be embodied or implemented in a variety of physical systems or devices such as computers, mobile phones, watches, appliances, vehicles, and the like. A digital assistant is also sometimes referred to as a chatbot system. Therefore, for purposes of this disclosure, the terms digital assistant and chatbot system are interchangeable.

[0043] A digital assistant, such as a digital assistant 106 built using DABP 102, can be used to perform various tasks via a natural language-based conversation between the digital assistant and its user 108. As part of the conversation, the user can provide one or more user inputs 110 to the digital assistant 106 and obtain responses 112 in return from the digital assistant 106. The conversation can include one or more of the inputs 110 and the responses 112. Via these conversations, the user can request one or more tasks to be performed by the digital assistant, and in response, the digital assistant is configured to perform the tasks requested by the user and respond to the user with appropriate responses.

[0044] User input 110 is usually in the form of natural language and is referred to as utterance. User utterance 110 can be in text form, such as when a user types a sentence, question, text snippet, or even a single word and provides it as input to the digital assistant 106. In some examples, user utterance 110 can be in the form of audio input or speech, such as when a user speaks or says something that is provided as input to the digital assistant 106. The utterance is usually in the form of a language spoken by the user. For example, the utterance can be English or some other language. When the utterance is in the form of speech, the speech input is converted into a textual utterance in the particular language, and then the text utterance is processed by the digital assistant 106. Various speech-to-text processing techniques can be used to convert the speech or audio input into a textual utterance, which is then processed by the digital assistant 106. In some examples, the conversion of speech to text can be done by the digital assistant 106 itself.

[0045] An utterance (which may be a text utterance or a voice utterance) may be a fragment, a sentence, multiple sentences, one or more words, one or more questions, a combination of the above types, and the like. The digital assistant 106 is configured to apply natural language understanding (NLU) technology to the utterance to understand the meaning of the user input. As part of the NLU processing for the utterance, the digital assistant 106 is configured to perform processing for understanding the meaning of the utterance, which involves identifying one or more intents and one or more entities corresponding to the utterance. After understanding the meaning of the utterance, the digital assistant 106 may perform one or more actions or operations in response to the understood meaning or intent. For the purposes of this disclosure, it is assumed that these utterances are text utterances that have been directly provided by the user of the digital assistant 106, or are the result of converting the input voice utterance into text form. However, this is not intended to be limiting or restrictive in any way.

[0046] For example, user input can request to order pizza by providing an utterance such as "I want to order a pizza". After receiving such an utterance, the digital assistant 106 is configured to understand the meaning of the utterance and take appropriate actions. Appropriate actions may involve, for example, responding to the user with questions requesting user input about the type of pizza that the user desires to order, the size of the pizza, and any toppings of the pizza. The response provided by the digital assistant 106 may also be in natural language form, and is typically in the same language as the input utterance. As part of generating these responses, the digital assistant 106 may perform natural language generation (NLG). In order for the user to order pizza via a conversation between the user and the digital assistant 106, the digital assistant may guide the user to provide all the necessary information for pizza ordering, and then order the pizza at the end of the conversation. The digital assistant 106 may end the conversation by outputting information indicating that pizza has been ordered to the user.

[0047] At a conceptual level, the digital assistant 106 performs various processing in response to an utterance received from a user. In some examples, the processing involves a series of processing steps or a pipeline of processing steps, including, for example, understanding the meaning of an input utterance, determining an action to be performed in response to the utterance, causing the action to be performed where appropriate, generating a response to be output to the user in response to the user utterance, outputting the response to the user, and the like. NLU processing can include grammatical analysis of the received input utterance to understand the structure and meaning of the utterance, refining and reformulating the utterance to develop a better understandable form (e.g., logical form) or structure for the utterance. Generating a response can include using NLG techniques.

[0048] The NLU processing performed by a digital assistant (such as digital assistant 106) may include various NLP-related tasks such as sentence grammatical analysis (e.g., tokenization, classification by inflectional form, identification of part-of-speech tags of sentences, identification of named entities in sentences, generation of dependency trees to represent sentence structure, division of sentences into clauses, analysis of separate clauses, resolution of references, execution of chunks, etc.). In some examples, the NLU processing is performed by the digital assistant 106 itself. In some other examples, the digital assistant 106 may use other resources to perform part of the NLU processing. For example, the syntax and structure of the input utterance sentence can be identified by using a grammatical analyzer, a part-of-speech tagger, and / or NER processing sentences. In one embodiment, for the English language, a grammatical analyzer, a part-of-speech tagger, and a named entity recognizer such as provided by the Stanford NLP group are used to analyze sentence structure and syntax. These are provided as part of the Stanford CoreNLP toolkit.

[0049] Although the various examples provided in this disclosure show utterances in the English language, this is meant only as an example. In some examples, the digital assistant 106 is also capable of processing utterances in languages ​​other than English. The digital assistant 106 may provide subsystems (e.g., components that implement NLU functionality) configured to perform processing for different languages. These subsystems may be implemented as pluggable units that may be called from an NLU core server using service calls. This makes NLU processing flexible and extensible for each language, including allowing different processing orders. Language packs may be provided for separate languages, wherein the language pack may register a list of subsystems that may provide services from an NLU core server.

[0050] A digital assistant (such as a cellular phone) may be enabled through a variety of different channels (such as, but not limited to, via certain applications, via social media platforms, via various messaging services and applications, and other applications or channels). Figure 1 106) is available or accessible to its user 108. A single digital assistant can configure multiple channels for itself, so that a single digital assistant can run on and be accessed through different services at the same time.

[0051] A digital assistant or chatbot system typically contains or is associated with one or more skills. In some embodiments, these skills are individual chatbots (called skill bots) that are configured to interact with a user and complete specific types of tasks (such as tracking inventory, submitting time cards, creating expense reports, ordering food, checking bank accounts, making appointments, purchasing widgets, etc.). For example, Figure 1In the depicted embodiment, the digital assistant or chatbot system 106 includes skills 116 - 1 , 116 - 2 , 116 - 3 , etc. For purposes of this disclosure, the terms “skill” and “skills” are used synonymously with the terms “skill bot” and “skill bots,” respectively.

[0052] Each skill associated with the digital assistant helps the user of the digital assistant complete tasks through a conversation with the user, where the conversation can include a combination of text or audio input provided by the user and responses provided by the skill bot. These responses can be in the form of text or audio messages to the user and / or using simple user interface elements (e.g., a list of choices) presented to the user for selection by the user.

[0053] There are various methods to associate skills or skill robots with digital assistants or add them to digital assistants. In some instances, skill robots can be developed by enterprises and then added to digital assistants using DABP 102. In other instances, skill robots can be developed and created using DABP 102 and then added to digital assistants created using DABP 102. In yet other instances, DABP 102 provides an online digital store (referred to as a "skill store") that provides multiple skills directed to a variety of tasks. The skills provided by the skill store can also expose various cloud services. In order to add skills to a digital assistant being generated using DABP 102, a user of DABP 102 can access the skill store via DABP 102, select the desired skills, and indicate that the selected skills will be added to the digital assistant created using DABP 102. Skills from the skill store can be added to the digital assistant as is or in modified form (e.g., a user of DABP 102 can select and copy a particular skill bot provided by the skill store, customize or modify the selected skill bot, and then add the modified skill bot to a digital assistant created using DABP 102).

[0054] A digital assistant or chatbot system may be implemented using a variety of different architectures. For example, in some embodiments, a digital assistant created and deployed using DABP 102 may be implemented using a master robot / secondary (or child) robot paradigm or architecture. According to this paradigm, a digital assistant is implemented as a master robot that interacts with one or more secondary robots that are skill robots. For example, in Figure 1 In the depicted embodiment, the digital assistant 106 includes a master robot 114 and skill robots 116-1, 116-2, etc. that are secondary robots to the master robot 114. In some examples, the digital assistant 106 itself is considered to act as the master robot.

[0055] A digital assistant implemented according to a master-sub robot architecture enables a user of the digital assistant to interact with multiple skills through a unified user interface (i.e., via a master robot). When a user engages with the digital assistant, the master robot receives the user input. The master robot then performs processing for determining the meaning of the user input speech. The master robot then determines whether the task requested by the user in the speech can be handled by the master robot itself, otherwise the master robot selects an appropriate skill robot to handle the user request and routes the conversation to the selected skill robot. This enables users to have a conversation with the digital assistant through a public single interface, and still provides the ability to use multiple skill robots configured to perform specific tasks. For example, for a digital assistant developed for an enterprise, the master robot of the digital assistant can be connected to a skill robot interface with a specific function, for example, a customer relationship management (CRM) robot for performing functions related to customer relationship management, an enterprise resource planning (ERP) robot for performing functions related to enterprise resource planning, a human capital management (HCM) robot for performing functions related to human capital management, etc. In this way, the end user or consumer of the digital assistant only needs to know how to access the digital assistant through a public master robot interface, and multiple skill robots are provided in the background to handle user requests.

[0056] In some examples, in the master robot / secondary robot infrastructure, the master robot is configured to understand the list of available skill robots. The master robot can access metadata identifying various available skill robots, and for each skill robot, access the capabilities of the skill robot including tasks that can be performed by the skill robot. Upon receiving a user request in the form of an utterance, the master robot is configured to identify or predict a specific skill robot that can best serve or process the user request from multiple available skill robots. The master robot then routes the utterance (or part of the utterance) to the specific skill robot for further processing. Thus, control flows from the master robot to the skill robot. The master robot can support multiple input channels and output channels. In some examples, routing can be performed with the aid of processing performed by one or more available skill robots. For example, as discussed below, a skill robot can be trained to infer the intent of an utterance and determine whether the inferred intent matches the intent configured for the skill robot. Therefore, routing performed by the master robot can involve the skill robot transmitting to the master robot an indication of whether the skill robot has been configured with an intent suitable for processing the utterance.

[0057] Although Figure 1The embodiment of the digital assistant 106 is shown to include a master robot 114 and skill robots 116-1, 116-2, and 116-3, but this is not intended to be limiting. The digital assistant may include various other components (e.g., other systems and subsystems) that provide the functionality of the digital assistant. These systems and subsystems may be implemented solely in software (e.g., code, instructions stored on a computer-readable medium and executable by one or more processors), solely in hardware, or in an embodiment using a combination of software and hardware.

[0058] DABP 102 provides an infrastructure and various services and features that enable users of DABP 102 to create digital assistants (including one or more skill robots associated with the digital assistant). In some instances, skill robots can be created by cloning existing skill robots, for example, cloning skill robots provided by a skill store. As previously described, DABP 102 provides a skill store or skill catalog that provides multiple skill robots for performing various tasks. Users of DABP 102 can clone skill robots from the skill store. The cloned skill robots can be modified or customized as needed. In some other instances, users of DABP 102 create skill robots from scratch using the tools and services provided by DABP 102. As previously described, the skill store or skill catalog provided by DABP 102 can provide multiple skill robots for performing various tasks.

[0059] In some examples, at a high level, creating or customizing a skill bot involves the following steps:

[0060] (1) Configuring settings for new skill robots

[0061] (2) Configure one or more intents for the skill robot

[0062] (3) Configure one or more entities for one or more intents

[0063] (4) Training Skill Robots

[0064] (5) Create a dialogue flow for the skill bot

[0065] (6) Add custom parts to skill robots as needed

[0066] (7) Test and deploy skill robots

[0067] Each of these steps is briefly described below.

[0068] (1) Configuring settings for a new skill bot - Various settings can be configured for a skill bot. For example, a skill bot designer can specify one or more invocation names for the skill bot being created. These invocation names can then be used by users of the digital assistant to explicitly invoke the skill bot. For example, a user can enter an invocation name in a user utterance to explicitly invoke the corresponding skill bot.

[0069] (2) Configuring one or more intents and associated example utterances for the skill robot - The skill robot designer specifies one or more intents (also called robot intents) for the skill robot being created. The skill robot is then trained based on these specified intents. These intents represent the categories or classifications that the skill robot is trained to infer for the input utterance. Upon receiving an utterance, the trained skill robot infers the intent of the utterance, wherein the inferred intent is selected from a predefined set of intents used to train the skill robot. The skill robot then takes appropriate actions in response to the utterance based on the intent inferred for the utterance. In some instances, the intent of the skill robot represents the tasks that the skill robot can perform for the user of the digital assistant. Each intent is assigned an intent identifier or intent name. For example, for a skill robot trained for a bank, the intents specified for the skill robot may include "CheckBalance", "TransferMoney", "DepositCheck", etc.

[0070] For each intent defined for the skill robot, the skill robot designer can also provide one or more example utterances that represent and illustrate the intent. These example utterances are intended to represent the utterances that a user can enter into the skill robot for that intent. For example, for the CheckBalance intent, example utterances can include "What's my savings account balance?", "How much is in my checking account?", "How much money do I have in my account?", etc. Therefore, various arrangements of typical user utterances can be specified as example utterances for intents.

[0071] These intents and their associated example utterances are used as training data for training the skill robot. A variety of different training techniques can be used. As a result of the training, a prediction model is generated that is configured to take an utterance as input and output an intent inferred by the prediction model for the utterance. In some instances, the input utterance is provided to an intent analysis engine that is configured to use the trained model to predict or infer the intent of the input utterance. The skill robot can then take one or more actions based on the inferred intent.

[0072] (3) Configuring entities for one or more intents of a skill robot - In some instances, additional context may be required to enable a skill robot to respond appropriately to user utterances. For example, there may be situations where user input utterances resolve to the same intent in a skill robot. For example, in the above example, the utterances "What's my savings account balance?" and "How much is in my checking account?" both resolve to the same CheckBalance intent, but these utterances are different requests for different things. To clarify such requests, one or more entities are added to the intent. Using the example of a banking skill robot, an entity called AccountType (which defines values ​​called "checking" and "saving") can enable the skill robot to parse the user request and respond appropriately. In the above example, although these utterances resolve to the same intent, the values ​​associated with the AccountType entity for the two utterances are different. This enables the skill robot to perform potentially different actions for the two utterances, even though the two utterances resolve to the same intent. One or more entities can be specified for certain intents configured for a skill robot. Thus, entities are used to add context to the intent itself. Entities help more fully describe intent and enable skill bots to complete user requests.

[0073] In some examples, there are two types of entities: (a) built-in entities provided by DABP 102; and (2) custom entities that can be specified by a skill bot designer. Built-in entities are general entities that can be used with a variety of bots. Examples of built-in entities include, but are not limited to, entities related to time, date, address, number, email address, duration, recurring time period, currency, phone number, URL, etc. Custom entities are used for more customized applications. For example, for a banking skill, an AccountType entity can be defined by a skill bot designer to implement various banking transactions by checking user input for keywords such as checking account, savings, credit card, etc.

[0074] (4) Training a Skill Robot - A skill robot is configured to receive user input in the form of utterances, parse or otherwise process the received input and identify or select intents associated with the received user input. As indicated above, the skill robot must be trained for this purpose. In some embodiments, the skill robot is trained based on intents configured for the skill robot and example utterances associated with the intents (collectively referred to as training data) so that the skill robot can parse the user input utterance into one of the intents configured for it. In some examples, the skill robot uses a predictive model that is trained using the training data and allows the skill robot to discern what the user has said (or in some cases, is attempting to say). DABP 102 provides a variety of different training techniques that can be used by skill robot designers to train skill robots, including various machine learning-based training techniques, rule-based training techniques, and / or combinations thereof. In some examples, a portion (e.g., 80%) of the training data is used to train the skill robot model and another portion (e.g., the remaining 20%) is used to test or validate the model. Once trained, the trained model (sometimes also referred to as a trained skill robot) can be used to process and respond to the user's utterances. In some cases, the user's utterance may be a question that requires only a single answer and no additional conversation is required. To handle this situation, a Q&A (question and answer) intent can be defined for the skill bot. This enables the skill bot to output a reply to the user's request without having to update the dialog definition. A Q&A intent is created in a similar manner to a regular intent. The dialog flow for a Q&A intent may be different from the dialog flow for a regular intent.

[0075] (5) Create a dialog flow for the skill robot - The dialog flow specified for the skill robot describes how the skill robot reacts when parsing different intents of the skill robot in response to received user input. The dialog flow defines the operations or actions that the skill robot will take, for example, how the skill robot responds to user utterances, how the skill robot prompts the user for input, and how the skill robot returns data. The dialog flow is like a flowchart followed by the skill robot. The skill robot designer specifies the dialog flow using a language such as the markdown language. In some embodiments, a version of YAML called OBotML can be used to specify the dialog flow of the skill robot. The dialog flow definition for the skill robot acts as a model for the conversation itself, which is a model that enables the skill robot designer to choreograph the interaction between the skill robot and the user served by the skill robot.

[0076] In some examples, the dialog flow definition for a skill bot consists of three parts:

[0077] (a) Context

[0078] (b) Default Transformation Section

[0079] (c) Status section

[0080] Context section - The skill bot designer can define variables used in the conversation flow in the context section. Other variables that can be named in the context section include, but are not limited to: variables for error handling, variables for built-in or custom entities, user variables that enable the skill bot to recognize and save user preferences, etc.

[0081] Default Transitions Section - Transitions for a skill bot can be defined in the Dialog Flow States section or in the Default Transitions section. Transitions defined in the Default Transitions section act as fallbacks and are triggered when no applicable transitions are defined within a state or when the conditions required to trigger a state transition cannot be met. The Default Transitions section can be used to define routes that allow a skill bot to gracefully handle unexpected user actions.

[0082] State Part - A dialog flow and its related operations are defined as a sequence of transient states that manage the logic within the dialog flow. Each state node within a dialog flow definition names a component that provides the functionality required at that point in the dialog. Thus, states are built around components. States contain properties specific to a component and define transitions to other states that are triggered after the component executes.

[0083] The state section can be used to handle special case scenarios. For example, you may sometimes want to provide the user with the option to temporarily let the first skill with which the user is engaged do something in a second skill within the digital assistant. For example, if the user is busy in a conversation with a shopping skill (e.g., the user has made some choices for a purchase), the user may want to jump to the banking skill (e.g., the user may want to make sure he / she has enough money for the purchase) and then return to the shopping skill to complete the user's order. To address this, an action in the first skill can be configured to initiate an interaction with a different second skill in the same digital assistant and then return to the original flow.

[0084] (6) Adding custom components to a skill bot - As described above, the states specified in the skill bot's dialog flow name the components that provide the required functionality corresponding to the state. Components enable the skill bot to perform functions. In some embodiments, DABP 102 provides a set of preconfigured components for performing a variety of functions. The skill bot designer can select one or more of these preconfigured components and associate them with states in the skill bot's dialog flow. The skill bot designer can also use the tools provided by DABP 102 to create customized or new components and associate the customized components with one or more states in the skill bot's dialog flow.

[0085] (7) Testing and deploying skill bots - DABP 102 provides several features that enable skill bot designers to test the skill bots they are developing. The skill bots can then be deployed and included in a digital assistant.

[0086] Although the above description describes how to create a skill robot, similar techniques can also be used to create a digital assistant (or master robot). At the master robot or digital assistant level, built-in system intents can be configured for the digital assistant. These built-in system intents are used to identify general tasks that the digital assistant itself (i.e., the master robot) can handle without invoking the skill robot associated with the digital assistant. Examples of system intents defined for the master robot include: (1) Exit: Applicable when the user signals that they want to exit the current session or context in the digital assistant; (2) Help: Applicable when the user requests help or directions; and (3) Unresolved Intent: Applicable to user input that does not quite match the exit intent and help intent. The digital assistant also stores information about one or more skill robots associated with the digital assistant. This information enables the master robot to select a specific skill robot to process the utterance.

[0087] At the master robot or digital assistant level, when a user inputs a phrase or utterance into the digital assistant, the digital assistant is configured to perform processing to determine how to route the utterance and the associated conversation. The digital assistant determines this using a routing model, which can be rule-based, AI-based, or a combination thereof. The digital assistant uses the routing model to determine whether the conversation corresponding to the user input utterance is to be routed to a specific skill for processing, to be processed by the digital assistant or master robot itself according to a built-in system intent, or to be processed as a different state in the current conversation flow.

[0088] In some embodiments, as part of this processing, the digital assistant determines whether the user input utterance explicitly identifies a skill robot using its invocation name. If the invocation name is present in the user input, the invocation name is considered to be an explicit invocation of the skill robot corresponding to the invocation name. In this scenario, the digital assistant can route the user input to the explicitly invoked skill robot for further processing. In some embodiments, if there is no specific invocation or explicit invocation, the digital assistant evaluates the received user input utterance and calculates a confidence score for the system intent and skill robot associated with the digital assistant. The score calculated for the skill robot or system intent indicates how likely it is that the user input represents the task that the skill robot is configured to perform or represents the system intent. Any system intent or skill robot whose associated calculated confidence score exceeds a threshold (e.g., a confidence threshold routing parameter) is selected as a candidate for further evaluation. The digital assistant then selects a specific system intent or skill robot from the identified candidates for further processing of the user input utterance. In some embodiments, after one or more skill robots are identified as candidates, the intents associated with those candidate skills are evaluated (according to the intent model for each skill), and a confidence score for each intent is determined. Typically, any intent with a confidence score exceeding a threshold (e.g., 70%) is considered a candidate intent. If a specific skill robot is selected, the user utterance is routed to that skill robot for further processing. If a system intent is selected, one or more actions are performed by the main robot itself based on the selected system intent.

[0089] Figure 2 2 is a simplified block diagram of a master robot (MB) system 200 according to some embodiments. The MB system 200 can be implemented in software only, hardware only, or a combination of hardware and software. The MB system 200 includes a pre-processing subsystem 210, a multiple intent subsystem (MIS) 220, an explicit invocation subsystem (EIS) 230, a skill robot invoker 240, and a data store 250. Figure 2 The MB system 200 depicted in FIG. 1 is merely an example of the arrangement of components in the master robot. Those skilled in the art will recognize many possible variations, alternatives, and modifications. For example, in some embodiments, the MB system 200 may have more Figure 2 More or fewer systems or components than those shown, may combine two or more subsystems, or may have a different configuration or arrangement of subsystems.

[0090] The pre-processing subsystem 210 receives an utterance "A" 202 from a user and processes the utterance through a language detector 212 and a language grammar analyzer 214. As indicated above, the utterance can be provided in various ways including audio or text. The utterance 202 can be a sentence fragment, a complete sentence, multiple sentences, etc. The utterance 202 can include punctuation. For example, if the utterance 202 is provided as audio, the pre-processing subsystem 210 can convert the audio to text using a speech-to-text converter (not shown) that inserts punctuation (e.g., commas, semicolons, periods, etc.) into the resulting text.

[0091] Language detector 212 detects the language of utterance 202 based on the text of utterance 202. The way utterance 202 is processed depends on the language, as each language has its own grammar and semantics. Differences between languages ​​are taken into account when analyzing the syntax and structure of an utterance.

[0092] The language parser 214 performs grammatical analysis on the utterance 202 to extract part-of-speech (POS) tags for various language units (e.g., words) in the utterance 202. POS tags include, for example, noun (NN), pronoun (PN), verb (VB), etc. The language parser 214 may also tokenize the language units of the utterance 202 (e.g., convert each word into a separate token) and classify the words by inflected form. A lemma is the primary form of a group of words as represented in a dictionary (e.g., "run" is a lemma of run, runs, ran, running, etc.). Other types of preprocessing that the language parser 214 may perform include chunking of compound expressions, e.g., combining "credit" and "card" into a single expression "credit_card". The language parser 214 may also identify relationships between words in the utterance 202. For example, in some embodiments, the language parser 214 generates a dependency tree that indicates which part of the utterance (e.g., a particular noun) is a direct object, which part of the utterance is a preposition, etc. The results of the processing performed by the language parser 214 form the extracted information 205 and are provided as input to the MIS 220 along with the utterance 202 itself.

[0093] As indicated above, the utterance 202 may include more than one sentence. For the purpose of detecting multiple intents and explicit calls, the utterance 202 may be treated as a single unit even if it includes multiple sentences. However, in some embodiments, pre-processing may be performed, for example by the pre-processing subsystem 210, to identify a single sentence among the multiple sentences for multiple intent analysis and explicit call analysis. In general, the results produced by the MIS 220 and the EIS 230 are substantially the same regardless of whether the utterance 202 is processed at the level of a single sentence or as a single unit including multiple sentences.

[0094] MIS 220 determines whether utterance 202 indicates multiple intents. Although MIS 220 can detect the presence of multiple intents in utterance 202, the processing performed by MIS 220 does not involve determining whether the intent of utterance 202 matches any intent that has been configured for the robot. Instead, the processing of determining whether the intent of utterance 202 matches the robot's intent can be performed by intent classifier 242 of MB system 200 or by an intent classifier of a skill robot (e.g., Figure 3 The processing performed by MIS 220 assumes that there is a robot (e.g., a particular skill robot or the master robot itself) that can process utterance 202. Therefore, the processing performed by MIS 220 does not need to know which robots are in the chatbot system (e.g., the identity of the skill robots registered with the master robot) or what intents have been configured for a particular robot.

[0095] To determine that the utterance 202 includes multiple intents, the MIS 220 applies one or more rules from a set of rules 252 in the data store 250. The rules applied to the utterance 202 depend on the language of the utterance 202 and may include sentence patterns that indicate the presence of multiple intents. For example, a sentence pattern may include a coordinating conjunction that connects two parts of a sentence (e.g., a conjunction), where the two parts correspond to different intents. If the utterance 202 matches the sentence pattern, it can be inferred that the utterance 202 represents multiple intents. It should be noted that an utterance with multiple intents does not necessarily have different intents (e.g., intents directed to different robots or to different intents within the same robot). Instead, an utterance can have different instances of the same intent, such as "Place a pizza order using payment account X, then place a pizza order using payment account Y".

[0096] As part of determining that utterance 202 represents multiple intents, MIS 220 also determines which portion of utterance 202 is associated with each intent. MIS 220 constructs a new utterance for separate processing for each intent represented in an utterance containing multiple intents to replace the original utterance (e.g., utterance "B" 206 and utterance "C" 208, as shown in FIG. Figure 2). Thus, the original utterance 202 may be split into two or more separate utterances that are processed one at a time. The MIS 220 determines which of the two or more utterances should be processed first using the extracted information 205 and / or based on an analysis of the utterance 202 itself. For example, the MIS 220 may determine that the utterance 202 contains a marker word indicating that a particular intent should be processed first. The newly formed utterance corresponding to the particular intent (e.g., one of the utterances 206 or 208) will be sent first for further processing by the EIS 230. After the conversation triggered by the first utterance has ended (or has been temporarily paused), the next highest priority utterance (e.g., the other of the utterances 206 or 208) may then be sent to the EIS 230 for processing.

[0097] EIS230 determines whether the utterance it receives (e.g., utterance 206 or utterance 208) contains a call name for a skill robot. In some embodiments, each skill robot in the chatbot system is assigned a unique call name that distinguishes the skill robot from other skill robots in the chatbot system. A list of call names can be stored in the data store 250 as part of the skill robot information 254. When a utterance contains a word that matches the call name, the utterance is considered an explicit call. If the robot is not explicitly called, the utterance received by EIS230 is considered a non-explicit call utterance 234 and is input to the intent classifier of the main robot (e.g., intent classifier 242) to determine which robot to use to process the utterance. In some instances, the intent classifier 342 will determine that the main robot should process the non-explicit call utterance. In other instances, the intent classifier 242 will determine the skill robot to which the utterance is routed for processing.

[0098] The explicit call functionality provided by EIS 230 has several advantages. It can reduce the amount of processing that the master robot must perform. For example, when there is an explicit call, the master robot may not have to perform any intent classification analysis (e.g., using intent classifier 242), or may have to perform a simplified intent classification analysis to select a skill robot. Thus, the explicit call analysis can enable the selection of a specific skill robot without resorting to intent classification analysis.

[0099] Furthermore, there may be cases where there is functional overlap between multiple skill robots. This may occur, for example, if the intents handled by two skill robots overlap or are very close to each other. In this case, it may be difficult for the master robot to identify which of the multiple skill robots to select based solely on intent classification analysis. In this scenario, explicit calls make it so that there is no ambiguity as to the specific skill robot to use.

[0100] In addition to determining that the utterance is an explicit call, EIS230 is also responsible for determining whether any part of the utterance should be used as input to the skill robot that is explicitly called. Specifically, EIS230 can determine whether a part of the utterance is irrelevant to the call. EIS230 can perform this determination by analyzing the utterance and / or analyzing the extracted information 205. EIS230 can send the part of the utterance that is irrelevant to the call to the called skill robot instead of sending the entire utterance received by EIS230. In some instances, the input of the called skill robot is simply formed by deleting any part of the utterance that is associated with the call. For example, "I want to order pizza using Pizza Bot" can be shortened to "I want to order pizza" because "using PizzaBot" is related to calling the pizza robot, but is not related to any processing to be performed by the pizza robot. In some instances, EIS230 can reformat the part to be sent to the called robot, for example, to form a complete sentence. Thus, EIS 230 not only determines that there is an explicit call, but also determines what to send to the skill robot when there is an explicit call. In some instances, there may not be any text to be input to the robot being called. For example, if the utterance is "Pizza Bot", EIS 230 may determine that the pizza robot is being called, but there is no text to be processed by the pizza robot. In such a scenario, EIS 230 may indicate to skill robot caller 240 that there is nothing to send.

[0101] The skill robot invoker 240 invokes a skill robot in various ways. For example, the skill robot invoker 240 may invoke the robot in response to receiving an indication 235 that a particular skill robot has been selected as a result of an explicit invocation. The indication 235 may be sent by the EIS 230 along with the input of the explicitly invoked skill robot. In this scenario, the skill robot invoker 240 hands control of the session to the explicitly invoked skill robot. The explicitly invoked skill robot will determine the appropriate response to the input from the EIS 230 by treating the input as an independent utterance. For example, the response may be to perform a specific action or to start a new session in a specific state, where the initial state of the new session depends on the input sent from the EIS 230.

[0102] Another way that the skill robot invoker 240 can invoke a skill robot is implicitly by using an intent classifier 242. The intent classifier 242 can be trained using machine learning and / or rule-based training techniques to determine the likelihood that an utterance represents a task that a particular skill robot is configured to perform. The intent classifier 242 is trained on different categories, one category for each skill robot. For example, whenever a new skill robot is registered with the master robot, a list of example utterances associated with the new skill robot can be used to train the intent classifier 242 to determine the likelihood that a particular utterance represents a task that the new skill robot can perform. Parameters generated as a result of this training (e.g., a set of parameter values ​​for a machine learning model) can be stored as part of the skill robot information 254.

[0103] In some embodiments, the intent classifier 242 is implemented using a machine learning model, as described in further detail herein. Training the machine learning model can involve inputting at least a subset of utterances from example utterances associated with various skill robots to generate, as output of the machine learning model, inferences about which robot is the correct robot for processing any particular training utterance. For each training utterance, an indication of the correct robot for the training utterance can be provided as ground truth information. The behavior of the machine learning model can then be adapted (e.g., by backpropagation) to minimize the difference between the generated inferences and the ground truth information.

[0104] In some embodiments, the intent classifier 242 determines a confidence score for each skill robot registered with the master robot that indicates the likelihood that the skill robot can process an utterance (e.g., a non-explicit call utterance 234 received from the EIS 230). The intent classifier 242 may also determine a confidence score for each system-level intent (e.g., help, exit) that has been configured. If a particular confidence score satisfies one or more conditions, the skill robot caller 240 will call the robot associated with the particular confidence score. For example, a threshold confidence score value may need to be met. Therefore, the output 245 of the intent classifier 242 is an identification of a system intent or an identification of a particular skill robot. In some embodiments, in addition to meeting a threshold confidence score value, the confidence score must exceed the next highest confidence score by a certain margin. When the confidence scores of multiple skill robots each exceed the threshold confidence score value, applying such a condition will enable routing to a particular skill robot.

[0105] After identifying the robot based on the evaluation of the confidence score, the skill robot invoker 240 hands over processing to the identified robot. In the case of system intent, the identified robot is the master robot. Otherwise, the identified robot is a skill robot. Further, the skill robot invoker 240 will determine what to provide as input 247 to the identified robot. As indicated above, in the case of an explicit invocation, the input 247 can be based on a portion of the utterance that is not associated with the invocation, or the input 247 can be nothing (e.g., an empty string). In the case of an implicit invocation, the input 247 can be the entire utterance.

[0106] The data store 250 includes one or more computing devices that store data used by various subsystems of the master robot system 200. As explained above, the data store 250 includes rules 252 and skill robot information 254. The rules 252 include, for example, rules for determining by the MIS 220 when an utterance represents multiple intents and how to split utterances representing multiple intents. The rules 252 further include rules for determining by the EIS 230 which parts of an utterance that explicitly calls a skill robot are to be sent to the skill robot. The skill robot information 254 includes the calling names of the skill robots in the chatbot system, for example, a list of the calling names of all skill robots registered with a particular master robot. The skill robot information 254 may also include information used by the intent classifier 242 to determine the confidence score of each skill robot in the chatbot system, for example, parameters of a machine learning model.

[0107] Figure 3 is a simplified block diagram of a skill robot system 300 according to some embodiments. The skill robot system 300 is a computing system that can be implemented in software only, hardware only, or a combination of hardware and software. Figure 1 In certain embodiments of the embodiments depicted in , the skill robot system 300 can be used to implement one or more skill robots within a digital assistant.

[0108] The skill robot system 300 includes an MIS 310, an intent classifier 320, and a conversation manager 330. The MIS 310 is similar to Figure 2 The MIS 220 in FIG. 310 and provides similar functionality, including operatively using rules 352 in data store 350 to determine: (1) whether an utterance represents multiple intents, and if so, (2) how to split the utterance into separate utterances for each of the multiple intents. In some embodiments, the rules for detecting multiple intents and for splitting utterances applied by MIS 310 are the same as the rules applied by MIS 220. MIS 310 receives utterance 302 and extracted information 304. The extracted information 304 is similar to Figure 1 The extracted information 205 in the skill robot system 300 may be generated using the language parser 214 or a language parser local to the skill robot system 300.

[0109] The intent classifier 320 can be combined with the above Figure 2 In some embodiments, the intent classifier 320 is trained in a similar manner to the intent classifier 242 discussed in the embodiments of the present invention and described in further detail herein. For example, in some embodiments, the intent classifier 320 is implemented using a machine learning model. For a specific skill robot, the machine learning model of the intent classifier 320 is trained using at least a subset of example utterances associated with the specific skill robot as training utterances. The ground truth of each training utterance will be the specific robot intent associated with the training utterance.

[0110] The utterance 302 may be received directly from the user or provided by the master robot. When the utterance 302 is provided by the master robot (e.g., as provided by Figure 2 ), MIS 310 may be bypassed to avoid duplicating processing already performed by MIS 220. However, if utterance 302 is received directly from a user (e.g., during a conversation that occurs after being routed to a skill robot), MIS 310 may process utterance 302 to determine whether utterance 302 represents multiple intents. If so, MIS 310 applies one or more rules to split utterance 302 into separate utterances for each intent, such as utterance "D" 306 and utterance "E" 308. If utterance 302 does not represent multiple intents, MIS 310 forwards utterance 302 to intent classifier 320 for intent classification without splitting utterance 302.

[0111] The intent classifier 320 is configured to match a received utterance (e.g., utterance 306 or 308) with an intent associated with the skill robot system 300. As explained above, a skill robot may be configured with one or more intents, each of which includes at least one example utterance associated with the intent and used to train the classifier. Figure 2In an embodiment, the intent classifier 242 of the master robot system 200 is trained to determine confidence scores for individual skill robots and confidence scores for system intents. Similarly, the intent classifier 320 can be trained to determine confidence scores for each intent associated with the skill robot system 300. The classification performed by the intent classifier 242 is at the robot level, while the classification performed by the intent classifier 320 is at the intent level and is therefore more fine-grained. The intent classifier 320 can access intent information 354. For each intent associated with the skill robot system 300, the intent information 354 includes a list of utterances that represent the intent and explain the meaning of the intent and are typically associated with tasks that can be performed by the intent. The intent information 354 can further include parameters generated as a result of training on the list of utterances.

[0112] The conversation manager 330 receives an indication 322 of a particular intent as an output of the intent classifier 320, which is identified by the intent classifier 320 as the best match to the utterance input to the intent classifier 320. In some instances, the intent classifier 320 is unable to determine any match. For example, if the utterance points to a system intent or an intent of a different skill robot, the confidence score calculated by the intent classifier 320 may fall below a threshold confidence score value. When this occurs, the skill robot system 300 may forward the utterance to the master robot for processing, e.g., routing to a different skill robot. However, if the intent classifier 320 is successful in identifying the intent within the skill robot, the conversation manager 330 will initiate a conversation with the user.

[0113] The session initiated by the session manager 330 is a session specific to the intent identified by the intent classifier 320. For example, the session manager 330 can be implemented using a state machine configured to execute a dialog flow for the identified intent. The state machine can include a default starting state (e.g., when the intent is invoked without any additional input) and one or more additional states, each of which is associated with an action to be performed by the skill robot (e.g., perform a purchase transaction) and / or a dialog to be presented to the user (e.g., a question, a response). Thus, the session manager 330 can determine an action / dialog 335 upon receiving an indication 322 that an intent is recognized, and can determine additional actions or dialogs in response to subsequent utterances received during the session.

[0114] The data storage 350 includes one or more computing devices that store data used by the various subsystems of the skill robot system 300. Figure 3 As depicted, data store 350 may include rules 352 and intent information 354. In some embodiments, data store 350 may be integrated into the data store of a host robot or digital assistant, e.g. Figure 2 The data is stored in 250.

[0115] Contextual tag integration

[0116] Intent prediction and entity extraction, two main components of natural language processing, help the chatbot system understand user queries and user utterances related to the domain of a given service or service set. Intent prediction determines the purpose (i.e., intent) of a user query or utterance. Entity extraction determines one or more constraints (if any) of a user query or utterance. For example, for a user query about "the weather on Wednesday in the Poconos", intent prediction determines that the user's intent is to understand "weather", and entity extraction determines that "Wednesday" and "Poconos" are constraints that focus the user's intent on a specific date and geographic location. Entity extraction can involve matching, in which words in a user query are confirmed as entities by matching the words with a predefined entity list. However, since the subject of an entity may not always correspond to an obvious or popular referent, matching often fails to identify the referent that the user expects. Matching is more challenging when the user's utterance is limited to one or two words per utterance or when the user's utterance contains more than necessary information. For example, in the case of limited utterances, a user utterance involving only the word "2020" may refer to a specific calendar year, a specific cost of an item, a quantity of an item, etc., depending on the context of other user utterances or system queries associated with the user's utterance. In the case of user utterances with additional information, a user utterance narrating "it is 2020for 20people costing2000" may or may not correspond to a year entity, a cost entity, or a quantity entity, depending on the context of the user utterance. As can be seen from the above examples, unless the context is taken into account, it is impossible to accurately determine the referent that the user intends in the utterance. As described herein, features of the present disclosure overcome these challenges by evaluating the distribution of contextual labels within a set of entities associated with a system query or one or more utterances of a user.

[0117] Figure 4A A diagram is shown configured to train and utilize an intent classifier (e.g., Figure 2 Intent classifier 242 or Figure 3 Block diagram of various aspects of a chatbot system 400 that includes a NER model within an intent classifier 320. Figure 4AAs shown, the chatbot system 400 may include a prediction model training phase 410, a skill robot invocation phase 415 configured to determine the likelihood that an utterance represents a task that a particular skill robot is configured to perform, an intent prediction phase 420 configured to classify an utterance into one or more intents, and an entity detection phase 422 configured to determine one or more constraints 480 of an utterance. The prediction model training phase 410 may be configured to build and train one or more prediction models 425a-425n (which may be individually referred to herein as prediction models or collectively referred to as prediction models) to be used by other phases. In some examples, the prediction models may include a model for determining the likelihood that an utterance represents a task that a particular skill robot is configured to perform, a model for predicting intent based on an utterance for a first type of skill robot, a model for predicting intent based on an utterance for a second type of skill robot, and a model for identifying conceptual entities mentioned in text and classifying them according to a given set of categories. Other types of prediction models may be implemented in other examples according to the present disclosure.

[0118] The prediction model can be a machine learning (ML) model, such as a convolutional neural network (CNN) (e.g., inception neural network, residual neural network (Resnet)), or a recurrent neural network (e.g., a long short-term memory (LSTM) model, a bidirectional LSTM (BiLSTM) or a gated recurrent unit (GRU) model), other variants of a deep neural network (DNN). The prediction model can also be any other suitable ML model trained for natural language processing, such as a bidirectional encoder representation of transformers (BERT) model, a naive Bayes classifier, a linear classifier, a support vector machine, a conditional random field model, a random forest model, a boosting model, a shallow neural network, or a combination of one or more of such technologies (e.g., CNN-HMM or MCNN). The chatbot system 400 can use the same type of prediction model or different types of prediction models to determine the likelihood of a task that a particular skill robot is configured to perform, predict intent based on utterances for a first type of skill robot, predict intent based on utterances for a second type of skill robot, and identify conceptual entities mentioned in text and classify them according to a given set of categories. Other types of prediction models can be implemented in other examples according to the present disclosure.

[0119] like Figure 4AAs further shown, the prediction model training phase 410 may include data set preparation 430, feature engineering 435, and model training 440. Data set preparation 430 may be configured to process input data assets 445 into separate training and validation sets 445a-n for each prediction model. Data assets 445 may include at least a subset of utterances from example utterances associated with various skill robots. As previously described, utterances may be provided in various ways including audio or text. Discourses may be sentence fragments, complete sentences, multiple sentences, and the like. For example, if the utterance is provided as audio, data preparation 430 may convert the audio to text using a speech-to-text converter (not shown) that inserts punctuation (e.g., commas, semicolons, periods, etc.) into the resulting text. In some instances, the example utterances are provided by a client or customer. In other instances, the example utterances are automatically generated from a previous utterance library (e.g., identifying utterances specific to the skills that the chatbot is to learn from the library). In some examples, the data assets 445 for the predictive model may include input text or audio (or input features of text or audio frames) and corresponding labels 450 of the input text or audio (or input features) as a matrix or value table. For example, for each training utterance, an indication of the correct robot for the training utterance may be provided as the basic fact information of the label 450. The behavior of the corresponding predictive model may then be adapted (e.g., by backpropagation) to minimize the difference between the generated inference and the basic fact information. Alternatively, the predictive model may be trained for a specific skill robot using at least a subset of the example utterances associated with the specific skill robot as training utterances. The basic fact information for the label 450 of each training utterance will be the specific robot intent associated with the training utterance. Alternatively, the predictive model may be trained for a specific skill robot using at least a subset of the example utterances associated with the specific skill robot as training utterances. The basic fact information for the label 450 of each training utterance will be the specific robot intent associated with the training utterance.

[0120] In some instances, augmentation can be applied to data assets 445. For example, simple data augmentation (EDA) techniques can be used to improve the performance of text classification tasks. EDA includes four operations: synonym replacement, random insertion, random swap, and random deletion, which prevent overfitting and help train more robust models. Note that EDA operations typically: (i) obtain words from the original text, and (ii) merge the words into each data asset 445 relative to the original text. For example, the synonym replacement operation includes randomly selecting n words that are not stop words from the original sentence (e.g., utterance) and replacing each of these words with one of its randomly selected synonyms. The random insertion operation includes—n times—finding a random synonym for a random word in the original sentence that is not a stop word, and inserting the synonym into a random position in the sentence. The random swap operation includes—n times—randomly selecting two words in the sentence and swapping their positions. The random deletion operation includes randomly removing each word in the sentence with probability p.

[0121] In some examples, feature engineering 435 may include transforming data assets 445 into feature vectors and / or creating new features to be created using data assets 445. Feature vectors may include count vectors as features, TF-IDF vectors as features (such as word level, n-gram level, or character level), word embeddings as features, text / NLP as features, topic models as features, or a combination thereof. A count vector is a matrix representation of a data asset 445, where each row represents an utterance, each column represents a word from an utterance, and each cell represents a frequency count of a particular word in an utterance. The TF-IDF score represents the relative importance of a word in an utterance. Word embedding is a form of representing words and utterances using dense vector representations. The position of a word in a vector space is learned from text and is based on the words surrounding the word when the word is used. Text / NLP-based features may include the number of words in an utterance, the number of characters in an utterance, average word density, the number of punctuation marks, the number of capital letters, the number of title words, the frequency distribution of part-of-speech tags (e.g., nouns and verbs), or any combination thereof. Topic modeling is a technique for identifying groups of words (called topics) from a collection of utterances that contain the best information about the utterance.

[0122] In some examples, model training 440 may include training a classifier using the feature vectors and / or new features created in feature engineering 435. In some instances, the training process includes an iterative operation to find a set of parameters for the prediction model that minimizes the loss or error function of the prediction model. Each iteration may involve finding a set of parameters for the prediction model such that the value of the loss or error function using the set of parameters is less than the value of the loss or error function using another set of parameters in the previous iteration. The loss or error function may be constructed to measure the difference between the output predicted using the prediction model and the label 450 contained in the data asset 445. Once the set of parameters is identified, the prediction model has been trained and can be used for prediction according to the design.

[0123] In addition to data assets 445, labels 450, feature vectors and / or new features, other techniques and information can also be used to refine the training process of the predictive model. For example, feature vectors and / or new features can be combined to help improve the accuracy of the classifier or model. In addition or alternatively, hyperparameters can be adjusted or optimized, for example, multiple parameters such as tree length, leaves, network parameters, etc. can be fine-tuned to obtain the best fit model. Although the training mechanisms described herein are mainly focused on training predictive models. These training mechanisms can also be used to fine-tune existing predictive models trained from other data assets. For example, in some cases, the predictive model may have been pre-trained using utterances specific to another skill robot. In these cases, the data asset 445 can be used to retrain the predictive model as discussed herein.

[0124] In some examples, the prediction model training phase 410 can output trained prediction models, including a task prediction model 460, an intent prediction model 465, and an entity extraction model 467. The task prediction model 460 can be used in the skill robot invocation phase 415 to determine the likelihood that the utterance represents a task 470 that a particular skill robot is configured to perform, the intent prediction model 465 can be used in the intent prediction phase 420 to classify the utterance into one or more intents 475, and the entity extraction model 467 can be used in the entity detection phase 422 to extract entities and classify them into one or more constraints 480. In some instances, the skill robot invocation phase 415, the intent prediction phase 420, and the entity detection phase 422 can be performed independently using separate models in some examples. For example, the trained intent prediction model 465 can be used in the intent prediction phase 420 to predict the intent of the skill robot, and / or the trained entity extraction model 467 can be used in the entity detection phase 422 to extract and classify entities of the skill robot without first identifying the skill robot in the skill robot invocation phase 415. Similarly, the task prediction model 460 can be used in the skill bot invocation phase 415 to predict a task or skill bot to be used for an utterance without identifying the intent and / or entities of the utterance in the intent prediction phase 420 and / or entity detection phase 422.

[0125] Alternatively, the skill robot invocation phase 415, the intent prediction phase 420, and the entity detection phase 422 can be performed sequentially, wherein one phase uses the output of another phase as input, or for a specific skill robot, one phase is called in a specific way based on the output of another phase. For example, for a given text data 405, the skill robot caller can use the skill robot invocation phase 415 and the task prediction model 460 to call the skill robot through an implicit call. The task prediction model 460 can be trained using machine learning and / or rule-based training techniques to determine the likelihood that an utterance represents a task that a specific skill robot 470 is configured to perform. Then for the identified or invoked skill robot and given text data 405, the intent prediction phase 420 and the intent prediction model 465, and / or the entity detection phase 422 and the entity extraction model 467 can be used to match the received utterance (e.g., an utterance within a given data asset 445) with the intent 475 associated with the skill robot. As explained herein, a skill robot can be configured with one or more intents, each intent including at least one example utterance associated with the intent and used to train a classifier. In some embodiments, the skill robot invocation stage 415, the task prediction model 460 and the entity extraction model 467 of the master robot system are trained to determine the confidence scores of the individual skill robots and the confidence scores of the system intent. Similarly, the intent prediction stage 420 and the intent prediction model 465, and / or the entity detection stage 422 and the entity extraction model 467 can be trained to determine the confidence score of each intent associated with the skill robot system. The classification performed by the skill robot invocation stage 415, the task prediction model 460 and the entity extraction model 467 is at the robot level, while the classification performed by the intent prediction stage 420 and the intent prediction model 465, and / or the entity detection stage 422 and the entity extraction model 467 is at the intent level and is therefore more fine-grained.

[0126] In some examples, entities associated with entity extraction model 467 are included in a set of entities defined by a gazetteer. For a robot trained with a particular skill, the gazetteer for that skill includes a set of entities related to that skill. For example, for a robot trained with a banking skill, the gazetteer for that skill may include a set of entities including number entities (number tags), date and time entities (date and time tags), currency entities (currency tags), person entities (person tags), and location entities (location tags). In another example, for a robot trained with a food ordering skill, the gazetteer for that skill includes a set of entities including quantity entities (quantity tags), food type entities (food type tags), time entities (time tags), person entities (person tags), and location entities (location tags). In some embodiments, the entity detection stage 422 identifies a specific skill of the robot, extracts one or more groups of entities related to the specific skill from one or more gazetteers, detects entities within the one or more groups of entities in one or more system queries and / or one or more user utterances, labels the detected entities with one or more contextual tags, determines a confidence score for each contextual tag (contextual tag distribution), and identifies one or more constraints 480 based on the contextual tag distribution of the one or more groups of entities.

[0127] In some examples, the contextual tag distribution is determined based on the context of one or more system queries, one or more user utterances, and / or the entire interaction between the system and the user. In some examples, based on the context of one or more system queries, one or more user utterances, and / or the entire interaction between the system and the user, the contextual tag of the detected entity can be assigned a higher confidence score relative to other entities within the group of entities or a lower confidence score relative to other entities within the group of entities. In some examples, if the robot queries the user about one or more specific entities, one or more entities related to the one or more specific entities queried by the robot in one or more response utterances of the user will be assigned a higher confidence score relative to other entities detected in one or more response utterances of the user. For example, a robot associated with a specific skill (e.g., banking) can query the user about a specific entity (e.g., quantity) in a set of entities corresponding to the specific skill (e.g., quantity, date and time, location, person, and transaction type). The one or more response utterances of the user may include one or more detected entities containing a specific entity. In this case, the quantity entity detected in one or more response utterances of the user (i.e., quantity tags) will be assigned a high confidence score, and other detected entities within the set of entities for that particular skill (e.g., date and time, location, person, and transaction type) will be assigned a lower confidence score. Similarly, if multiple occurrences of the same entity are detected in the robot's query and / or one or more utterances of the user, the entity will be assigned a higher confidence score relative to the confidence scores assigned to other detected entities (i.e., entities that occur less frequently).

[0128] In some cases, all detected entities will be assigned the same confidence score. For example, if the robot does not query the user about a particular entity, and the user's one or more response utterances include different entities, each detected entity in the user's one or more response utterances may be assigned the same confidence score. Similarly, if the robot's query and / or the user's one or more response utterances do not include multiple occurrences of the same entity, each detected entity may be assigned the same confidence score. In some cases, one or more detected entities in the group of entities may be assigned a first confidence score, one or more detected entities in the group of entities may be assigned a second confidence score different from the first confidence score, and one or more detected entities in the group of entities may be assigned a third confidence score different from the first confidence score and the second confidence score. The foregoing discussion is merely exemplary and is not limited to determining confidence scores based on specific entity inclusion and entity occurrence frequency. Other indicators for determining which detected entities in a group of entities are contextually relevant. For example, one or more detected entities in a group of entities may be considered by the robot to be more contextually relevant than one or more other detected entities in the group of entities.

[0129] In some examples, the confidence scores of detected entities in the robot's query and / or one or more utterances of the user form a contextual label distribution. In some examples, the contextual label distribution is a vector of confidence scores for all detected entities within a set of entities for the robot's query and / or one or more utterances of the user. Therefore, by considering the context of one or more system queries, one or more user utterances, and / or the entire interaction between the system and the user, features of the present disclosure determine the degree to which one or more detected entities within a set of entities may be contextually relevant to the system query and / or one or more utterances of the user.

[0130] In some examples, the entity detection stage 422 includes a baseline model that predicts one or more constraints 480 based on the context label distribution. In some examples, the baseline model can be pre-trained. Alternatively, in some examples, the baseline model can be initially trained and updated. In some examples, the baseline model can be trained based on a crowdsourced dataset. In some examples, the baseline model can be trained based on a Conference on Computational Natural Language Learning (CoNLL) dataset. In some examples, the baseline model 4000 is configured as follows Figure 4B As shown. Figure 4BAs shown, the baseline model 4000 is configured with a transformer-based model (such as a Bidirectional Encoder Representation from Transformer (BERT) model 4400), a regular expression (RX) / gazetteer (GZ) vectorizer 4500, a context label vectorizer 4600, a sequence processing model (such as a combined convolutional neural network / bidirectional long short-term memory (CNN / BiLSTM) model 4700), and a discriminative model (such as a conditional random field (CRF) model 4800).

[0131] The BERT model 4400 is a pre-trained algorithm that accepts one or more word sequences from one or more user utterances or one or more system queries as input and generates one or more feature vectors (word embeddings) for each of the one or more words in the one or more word sequences. Figure 4B As shown, for the input word sequence "I would like to pay Merchant$10 (I want to pay $10 to the merchant)", the BERT model 4400 generates a separate word embedding ("I", "would", "like", "to", "pay", "Merchant", and "$10") for each individual word in the sequence. In some examples, the BERT model 4400 includes at least one transformer layer for receiving the input word sequence. In some examples, at least one transformer layer includes multiple encoders. In some examples, each encoder includes multiple attention mechanisms and multiple feedforward networks. In some examples, the input word sequence is tokenized to generate multiple word tokens. In some examples, multiple attention mechanisms operate directly on the words in the input word sequence. In some examples, multiple attention mechanisms operate on multiple word tokens. In some examples, multiple attention mechanisms generate attention scores for each word in the input word sequence or each word token in multiple word tokens. In some examples, the input word sequence (or multiple word tokens) and the attention scores are input into multiple feedforward networks. In some examples, multiple feed-forward networks encode an input word sequence (or multiple word tokens) into multiple word embeddings.

[0132] RX / GZ vectorizer 4500 generates one or more feature vectors based on one or more words in the input word sequence that match one or more known regular expression patterns in one or more known gazetteers. Figure 4BAs shown, for the input word sequence "I would like to pay Merchant $10", the RX / GZ vectorizer 4500 determines one or more words ("Merchant", "$10") in the input word sequence that match one or more regular expression patterns of words listed in one or more gazetteers (e.g., merchant, ten dollars), and extracts a predefined vector for each of the one or more matching words. In some examples, the one or more gazetteers are automatically selected based on the skills of the chatbot. In some examples, the one or more gazetteers are selected by a user of the chatbot. In some examples, the one or more gazetteers are selected by a user of a digital assistant that includes the chatbot. In some examples, a set of entities for each of a plurality of chatbot skills is defined by one or more gazetteers. For example, for a chatbot trained with a banking skill, the gazetteer for the chatbot skill includes a set of entities, the set of entities including a number entity (number tag), a date and time entity (date and time tag), a currency entity (currency tag), a person entity (person tag), and a location entity (location tag). In another example, for a chatbot trained with a pizza ordering skill, a gazetteer for the chatbot skill includes a set of entities, the set of entities including a quantity entity (quantity tag), a type entity (type tag), a filling entity (filling tag), an address entity (address tag), and a cost entity (cost tag). In some examples, entities within a set of entities defined by one or more gazetteers associated with a particular skill of the chatbot are matched with one or more words in an input word sequence. In some examples, a regular expression algorithm matches a regular pattern of one or more words in an input word sequence with a regular expression pattern of one or more entities in one or more groups of entities listed in one or more gazetteers. In some examples, one or more gazetteers include a predefined vector for each entity and its associated regular expression pattern. In some examples, a predefined vector is extracted for each matched entity and matched regular expression pattern. For example, for the input sequence "I would like to pay Merchant $10", the RX / GZ vectorizer 4500 extracts a predefined vector for the merchant entity and a predefined vector for the $10 entity. In some examples, multiple word embeddings output from the BERT model 4400 are concatenated and / or interpolated with one or more predefined vectors extracted from the RX / GZ vectorizer 4500 to generate a set of concatenated and / or interpolated vectors.

[0133] The contextual tag vectorizer 4600 generates one or more vectors based on the contextual tag distribution of the input word sequence. The process for determining the contextual tag distribution of one or more system queries and / or one or more user utterances has been described above and will not be repeated here. However, for illustration, Figure 4B As shown, for the input word sequence "I would like to pay Merchant $10", for the detected entities within a set of entities listed in the gazetteer for the specific skills of the chatbot, the context label distribution can be determined as 0.5, 0.0, 0.0, 0.0, 0.8, 0.8, 0.8. In some examples, the context label vectorizer 4600 transforms the context label distribution into one or more vectors. In some examples, one or more vectors generated by the context label vectorizer 4600 are concatenated and / or interpolated with the group of concatenated and / or interpolated vectors to generate a first set of vector representations. In some embodiments, as described below, one or more vectors generated by the context label vectorizer 4600 are concatenated and / or interpolated with one or more sentence-level vector representations generated by the CNN / BiLSTM model 4700.

[0134] In some examples, a first set of vector representations is input into the CNN / BiLSTM model 4700. Based on the first set of vector representations, the CNN of the CNN / BiLSTM model 4700 generates one or more character-level vector representations for each character of each word in the input word sequence. Then, the one or more character-level vector representations are concatenated and / or interpolated with the first set of vector representations and input into the BiLSTM network to generate one or more sentence-level vector representations for the input word sequence. In some examples, the one or more sentence-level vector representations represent named entity tag scores. In some examples, one or more vectors generated by the contextual tag vectorizer 4600 are concatenated and / or interpolated with one or more sentence-level vector representations generated by the CNN / BiLSTM model 4700 to generate a second set of vector representations. In some examples, the second set of vector representations represents named entity tag scores. In some examples, the named entity tag scores are decoded into named entities using the CRF model 4800. For example, Figure 4B As shown, the CRF model 4800 identifies "Business" and "Currency" as two named entities of the input word sequence "I would like to pay Merchant $10" based on one or more sentence-level vector representations and / or a second set of vector representations of the input sequence words.

[0135] Figure 5is a flow diagram illustrating a process 500 for entity recognition (entity extraction and classification) taking context into account, according to some embodiments. Figure 5 The depicted processes may be implemented in software (e.g., code, instructions, programs), hardware, or a combination thereof, executed by one or more processing units (e.g., processors, cores) of the corresponding system. The software may be stored on a non-transitory storage medium (e.g., a memory device). Figure 5 The methods presented and described below are intended to be illustrative rather than limiting. Figure 5 The various processing steps are depicted as occurring in a particular sequence or order, but this is not intended to be limiting. In some alternative embodiments, the steps may be performed in a different order or some steps may be performed in parallel. In some embodiments, such as Figures 1 to 4B In the embodiment depicted in Figure 5 The processing depicted in can be performed by a pre-processing subsystem (e.g., pre-processing subsystem 210 or predictive model training phase 410) to generate a training set with context labels for training by one or more predictive models (e.g., entity extraction model 467).

[0136] In step 505, the chatbot system 400 (FIG. 4) receives an utterance. In some examples, the utterance may be received in response to a system query. In some examples, the utterance corresponds to one or more user utterances in response to one or more system queries. In some examples, the utterance corresponds to one or more user interactions with the chatbot. In some examples, the utterance corresponds to an input word sequence.

[0137] In step 510, embeddings are generated for the words of the utterance. In some examples, an embedding is generated for each word of the utterance. In some examples, the embeddings are generated using a transformer-based model (e.g. Figure 4B The features and operations of the BERT model 4400 have been described above and will not be repeated here.

[0138] In step 515, RX / GZ feature vectors are generated and concatenated and / or interpolated with the embedding to generate a set of concatenated and / or interpolated vectors. In some examples, the RX / GZ feature vectors are generated using Figure 4BThe RX / GZ vectorizer 4500 generates one or more feature vectors based on one or more words in the input word sequence that match one or more known regular expression patterns in one or more known gazetteers. In some examples, the one or more gazetteers are automatically selected based on the skills of the chatbot. In some examples, the one or more gazetteers are selected by a user of the chatbot. In some examples, the one or more gazetteers are selected by a user of a digital assistant that includes the chatbot. In some examples, a set of entities for each of a plurality of chatbot skills is defined by one or more gazetteers. In some examples, entities within a set of entities defined by one or more gazetteers associated with a particular skill of the chatbot are matched to one or more words in the input word sequence. In some examples, a regular expression algorithm matches a regular pattern of one or more words in the input word sequence with a regular expression pattern of one or more entities in one or more groups of entities listed in one or more gazetteers. In some examples, the one or more gazetteers include a predefined vector for each entity and its associated regular expression pattern. In some examples, a predefined vector is extracted for each matched entity and matched regular expression pattern. Other features and operations of the RX / GZ vectorizer 4500 have been described above and will not be repeated here. In some examples, multiple word embeddings output from the BERT model 4400 are concatenated and / or interpolated with RX / GZ feature vectors extracted from the RX / GZ vectorizer 4500 to generate a set of concatenated and / or interpolated vectors.

[0139] In optional step 520, a context label distribution feature vector is generated for the received utterance and concatenated and / or interpolated with the concatenated and / or interpolated RX / GZ feature vectors and embeddings to form a first set of feature vectors. In some examples, the context label distribution feature vector is generated using Figure 4BThe contextual label vectorizer 4600 of the system generates. In some examples, the contextual label distribution is determined based on the context of one or more system queries, one or more user utterances, and / or the entire interaction between the system and the user. In some examples, based on the context of one or more system queries, one or more user utterances, and / or the entire interaction between the system and the user, the contextual label of the detected entity can be assigned a higher confidence score relative to other entities in the group of entities or a lower confidence score relative to other entities in the group of entities. In some examples, if the robot queries the user about one or more specific entities, one or more entities related to the one or more specific entities queried by the robot in one or more response utterances of the user will be assigned a higher confidence score relative to other entities detected in one or more response utterances of the user. Similarly, if multiple occurrences of the same entity are detected in the robot's query and / or one or more utterances of the user, the entity will be assigned a higher confidence score relative to the confidence score assigned to other detected entities (i.e., entities with lower frequency of occurrence). In some cases, all detected entities will be assigned the same confidence score. For example, if the robot does not query the user about a particular entity, and the user's one or more response utterances include different entities, each detected entity in the user's one or more response utterances may be assigned the same confidence score. Similarly, if the robot's query and / or the user's one or more response utterances do not include multiple occurrences of the same entity, each detected entity may be assigned the same confidence score. In some cases, one or more detected entities in the set of entities may be assigned a first confidence score, one or more detected entities in the set of entities may be assigned a second confidence score different from the first confidence score, and one or more detected entities in the set of entities may be assigned a third confidence score different from the first confidence score and the second confidence score.

[0140] The foregoing discussion is exemplary only and is not limited to determining confidence scores based on specific entity inclusion and entity occurrence frequency. Other indicators used to determine which detected entities in a set of entities are context-related. For example, one or more detected entities in a set of entities may be considered by the robot to be more context-related than one or more other detected entities in the set of entities. In some examples, the confidence scores of the entities detected in the robot's query and / or one or more utterances of the user form a context label distribution. In some examples, the context label distribution is a confidence score vector of all detected entities within a set of entities for the robot's query and / or one or more utterances of the user. In some examples, the context label vectorizer 4600 generates one or more vectors based on the context label distribution. In some examples, the context label vectorizer 4600 transforms the context label distribution into one or more context label distribution vectors. In some examples, the context label distribution vector generated by the context label vectorizer 4600 is concatenated and / or interpolated with the group of concatenated and / or interpolated vectors to generate a first set of feature vectors. In some embodiments, as described below, the context label distribution vector generated by the context label vectorizer 4600 is concatenated and / or interpolated with the encoded form of the utterance generated by the CNN / BiLSTM model 4700.

[0141] In step 525, an encoded form of the utterance is generated based on the set of concatenated and / or interpolated vectors. In some examples, if optional step 520 is included, the encoded form of the utterance is generated based on the first set of feature vectors. The encoded form of the utterance is generated using a feature vector such as Figure 4B The CNN / BiLSTM model 4700 or the like is generated by a sequence processing model. In some examples, the group of concatenated and / or interpolated vectors and / or the first group of feature vectors are input into the CNN / BiLSTM model 4700. Based on the input vectors, the CNN of the CNN / BiLSTM model 4700 generates one or more character-level vector representations for each character of each word of the discourse. The one or more character-level vector representations are then concatenated and / or interpolated with the group of concatenated and / or interpolated vectors and / or the first group of feature vectors, and input into the BiLSTM network to generate one or more sentence-level vector representations of the discourse. In some examples, the encoded form of the discourse includes one or more sentence-level vector representations. In some examples, the encoded form of the discourse represents a named entity tag score.

[0142] In optional step 530, a context label distribution feature vector is generated for the received utterance and concatenated and / or interpolated with the encoded form of the utterance. In some examples, the context label distribution feature vector is generated using Figure 4BThe context label vectorizer 4600 generates the context label distribution feature vector. The features and operations of the context label vectorizer 4600 and the context label distribution feature vector generation have been described above and will not be repeated here. In some examples, the encoded form of the utterance concatenated and / or interpolated with the context label distribution feature vector represents the named entity label score.

[0143] In step 535, the log-probability of the candidate entities is generated based on the encoded form of the utterance. This can be done using Figure 4B The log-probability of the candidate entity is generated by a discriminant model such as the CRF model 4800. In some examples, the log-probability is decoded into a named entity by the CRF model 4800.

[0144] In step 540, the log probability is used to identify one or more constraints 480 for the received utterance. In some examples, the entity detection stage 422 ( Figure 4A ) uses the decoded named entities to identify one or more constraints 480 for the received utterance.

[0145] In optional step 545, one or more constraints 480 are combined with the intent prediction stage 420 ( Figure 4A ) One or more intent predictions generated for the received utterance and intents associated with the skill robot 475 ( Figure 4A ) to match.

[0146] Features of the present disclosure improve user interaction with digital assistants and / or chatbot systems. For example, a user can interact with Figure 1 The digital assistant / chatbot system 106 shown interacts with the banking transaction. A skill robot (e.g., Figure 1 Skill robot #1 116-1 shown). The interaction includes one or more user utterances and one or more system queries. For banking transactions, the skill robot can ask the user about specific banking tasks that the user wants to be performed by the skill robot and / or digital assistant, such as checking balances, checking deposits, transferring money, etc. In response, the user can utter one or more utterances related to the user's banking intent. In one example, the user can utter "please deposit 20 in my account 20". Based on the systems, methods, and examples provided herein, as shown in FIG. Figures 1 to 5As well as described throughout, the digital assistant and / or chatbot system will be able to correctly identify "deposit 20" as being associated with the amount that the user wishes to deposit, and "account 20" as being associated with the account that the user wishes to deposit, along with identifying the user's intent to deposit money into the user's account. As discussed throughout, by considering the context of one or more system queries, one or more user utterances, and / or the entire interaction between the system and the user, features of the present disclosure determine the extent to which one or more detected entities within a set of entities may be contextually relevant to the system query and / or one or more utterances of the user, features of the present disclosure can correctly identify the intended referent of a particular named entity and improve user interaction with a digital assistant and / or chatbot system.

[0147] Descriptive System

[0148] Figure 6 Depicted is a simplified diagram of a distributed system 600. In the illustrated example, the distributed system 600 includes one or more client computing devices 602, 604, 606, and 608 coupled to a server 612 via one or more communication networks 610. The client computing devices 602, 604, 606, and 608 may be configured to execute one or more applications.

[0149] In various examples, server 612 can be adapted to run one or more services or software applications that implement one or more embodiments described in the present disclosure. In some examples, server 612 can also provide other services or software applications that can include non-virtual environments and virtual environments. In some examples, these services can be provided to users of client computing devices 602, 604, 606, and / or 608 as web-based services or cloud services (such as under a software as a service (SaaS) model). Users operating client computing devices 602, 604, 606, and / or 608 can then utilize one or more client applications to interact with server 612 to utilize the services provided by these components.

[0150] exist Figure 6 In the depicted configuration, the server 612 may include one or more components 618, 620, and 622 that implement the functions performed by the server 612. These components may include software components that may be executed by one or more processors, hardware components, or a combination thereof. It should be understood that a variety of different system configurations that may differ from the distributed system 600 are possible. Therefore, Figure 6 The illustrated example is one example of a distributed system for implementing the example system and is not intended to be limiting.

[0151] A user may use client computing devices 602, 604, 606, and / or 608 to execute one or more applications, models, or chatbots that may generate one or more events or models that may then be implemented or serviced according to the teachings of the present disclosure. The client device may provide an interface that enables a user of the client device to interact with the client device. The client device may also output information to the user via the interface. Although Figure 6 Only four client computing devices are depicted, but any number of client computing devices may be supported.

[0152] Client devices may include various types of computing systems, such as portable handheld devices, general-purpose computers such as personal computers and laptops, workstation computers, wearable devices, gaming systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computing devices may run various types and versions of software applications and operating systems (e.g., Microsoft Apple or UNIX-like operating systems, Linux or Linux-like operating systems (such as Google Chrome TM OS), including various mobile operating systems (e.g., Microsoft Windows Windows Android TM , Palm Portable handheld devices may include cellular phones, smart phones (e.g., ), tablet computers (e.g. ), personal digital assistants (PDAs), etc. Wearable devices can include Google Head-mounted displays and other devices. Gaming systems can include various handheld gaming devices, Internet-enabled gaming devices (e.g., with or without Microsoft Gesture Input Devices Game consoles, Sony System, by Various game systems provided by and others), etc. The client device may be able to execute various different applications, such as various Internet-related applications, communication applications (e.g., email applications, short message service (SMS) applications), and may use various communication protocols.

[0153] The one or more networks 610 may be any type of network familiar to those skilled in the art that can support data communications using any of a variety of available protocols, including but not limited to TCP / IP (Transmission Control Protocol / Internet Protocol), SNA (Systems Network Architecture), IPX (Internet Packet Exchange), By way of example only, the one or more networks 610 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., in accordance with the Institute of Electrical and Electronics Engineers (IEEE) 1002.11 protocol suite, and / or any other wireless protocol) and / or any combination of these networks and / or other networks.

[0154] The server 612 may be composed of one or more general-purpose computers, dedicated server computers (including, by way of example, PC (personal computer) servers, The server 612 may include a server, a mid-range server, a mainframe computer, a rack server, etc.), a server farm, a server cluster, or any other suitable arrangement and / or combination. The server 612 may include one or more virtual machines running a virtual operating system or other computing architectures involving virtualization, such as one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage devices. In various examples, the server 612 may be adapted to run one or more services or software applications that provide the functionality described in the foregoing disclosure.

[0155] The computing system in server 612 may run one or more operating systems, including any of those discussed above and any commercially available server operating system. Server 612 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP (Hypertext Transport Protocol) servers, FTP (File Transfer Protocol) servers, CGI (Common Gateway Interface) servers, Servers, database servers, etc. Exemplary database servers include but are not limited to (International Business Machines Corporation), etc.

[0156] In some implementations, server 612 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client computing devices 602, 604, 606, and 608. As examples, data feeds and / or event updates may include, but are not limited to: feed, The server 612 may also include one or more applications to display the data feeds and / or real-time events via one or more display devices of the client computing devices 602, 604, 606, and 608.

[0157] The distributed system 600 may also include one or more data repositories 614, 616. In some examples, these data repositories may be used to store data and other information. For example, one or more of the data repositories 614, 616 may be used to store information (such as information related to chatbot performance or generated models) for use by the chatbot used by the server 612 when performing various functions according to various embodiments. The data repositories 614, 616 may reside in various locations. For example, the data repository used by the server 612 may be local to the server 612 or may be remote from the server 612 and communicate with the server 612 via a network-based or dedicated connection. The data repositories 614, 616 may be of different types. In some examples, the data repository used by the server 612 may be a database, for example, such as an Oracle database. and relational databases such as databases provided by other suppliers. One or more of these databases can be adapted to respond to SQL format commands to implement storage, update and retrieval of data to and from the database.

[0158] In some examples, one or more of data repositories 614, 616 may also be used by applications to store application data. The data repositories used by applications may be of different types, such as a key-value store, an object store, or a general storage store backed by a file system.

[0159] In some examples, the functionality described in this disclosure can be provided as a service via a cloud environment. Figure 7 is a simplified block diagram of a cloud-based system environment in which various services may be provided as cloud services according to certain examples. Figure 7In the depicted example, cloud infrastructure system 702 may provide one or more cloud services that may be requested by a user using one or more client computing devices 704, 706, and 708. Cloud infrastructure system 702 may include one or more computers and / or servers, which may include those described above for server 612. The computers in cloud infrastructure system 702 may be organized as general-purpose computers, dedicated server computers, server farms, server clusters, or any other suitable arrangement and / or combination.

[0160] One or more networks 710 can facilitate data communication and exchange between clients 704, 706, and 708 and cloud infrastructure system 702. One or more networks 710 can include one or more networks. The networks can be of the same or different types. One or more networks 710 can support one or more communication protocols (including wired and / or wireless protocols) to facilitate communication.

[0161] Figure 7 The depicted example is only one example of a cloud infrastructure system and is not intended to be limiting. It should be understood that in some other examples, the cloud infrastructure system 702 may have more Figure 7 More or fewer components than those depicted in the drawings may be included, two or more components may be combined, or there may be a different configuration or arrangement of components. Figure 7 Three client computing devices are depicted, but in alternative examples any number of client computing devices may be supported.

[0162] The term cloud service is generally used to refer to services that are made available to users on demand and via a communication network such as the Internet through a service provider's system (e.g., cloud infrastructure system 702). Typically, in a public cloud environment, the servers and systems that make up the cloud service provider's system are different from the customer's own on-premises servers and systems. The cloud service provider's system is managed by the cloud service provider. Therefore, customers can make use of the cloud services provided by the cloud service provider without having to purchase separate licenses, support, or hardware and software resources for the service. For example, the cloud service provider's system can host applications, and users can subscribe and use the applications on demand via the Internet without having to purchase infrastructure resources for executing the applications. Cloud services are designed to provide easy, scalable access to applications, resources, and services. Multiple providers offer cloud services. For example, Oracle of Redwood Shores, California Provides a variety of cloud services such as middleware services, database services, Java cloud services and other services.

[0163] In some examples, cloud infrastructure system 702 may provide one or more cloud services using different models, such as software as a service (SaaS) model, platform as a service (PaaS) model, infrastructure as a service (IaaS) model, and other models (including hybrid service models). Cloud infrastructure system 702 may include a set of applications, middleware, databases, and other resources that enable the provision of various cloud services.

[0164] The SaaS model enables applications or software to be delivered to customers as a service over a communications network such as the Internet, without the customer having to purchase hardware or software for the underlying application. For example, the SaaS model can be used to provide customers with access to on-demand applications hosted by the cloud infrastructure system 702. Oracle Examples of SaaS services provided include, but are not limited to, various services for human resource / capital management, customer relationship management (CRM), enterprise resource planning (ERP), supply chain management (SCM), enterprise performance management (EPM), analytical services, social applications, etc.

[0165] The IaaS model is commonly used to provide infrastructure resources (e.g., servers, storage, hardware, and networking resources) to customers as cloud services to provide elastic computing and storage capabilities. Provides various IaaS services.

[0166] The PaaS model is typically used to provide platform and environment resources as a service that enable customers to develop, run, and manage applications and services without the customer having to purchase, build, or maintain such resources. Examples of PaaS services provided include, but are not limited to, Oracle Java Cloud Service (JCS), Oracle Database Cloud Service (DBCS), Data Management Cloud Service, various application development solution services, etc.

[0167] Cloud services are typically provided on an on-demand self-service basis, subscription-based, elastically scalable, reliable, highly available, and secure. For example, a customer may order one or more services provided by the cloud infrastructure system 702 via a subscription order. The cloud infrastructure system 702 then performs processing to provide the services requested in the customer's subscription order. For example, a user may use speech to request that the cloud infrastructure system take an action (e.g., an intent) as described above and / or provide services to a chatbot system as described herein. The cloud infrastructure system 702 may be configured to provide one or even multiple cloud services.

[0168] The cloud infrastructure system 702 can provide cloud services via different deployment models. In a public cloud model, the cloud infrastructure system 702 can be owned by a third-party cloud service provider, and the cloud services are provided to any general public customer, where the customer can be an individual or an enterprise. In some other examples, under a private cloud model, the cloud infrastructure system 702 can operate within an organization (e.g., within an enterprise organization) and services are provided to customers within the organization. For example, customers can be various departments of an enterprise such as a human resources department, a payroll department, or even individuals within an enterprise. In some other examples, under a community cloud model, the cloud infrastructure system 702 and the services provided can be shared by multiple organizations in the relevant community. Various other models can also be used, such as a mix of the models mentioned above.

[0169] Client computing devices 704, 706, and 708 may be of different types (eg, Figure 6 702) and may be capable of operating one or more client applications. A user may use a client device to interact with the cloud infrastructure system 702, such as requesting services provided by the cloud infrastructure system 702. For example, a user may use a client device to request information or actions from a chatbot as described in the present disclosure.

[0170] In some examples, the processing performed by the cloud infrastructure system 702 for providing services may involve model training and deployment. This analysis may involve using, analyzing, and manipulating data sets to train and deploy one or more models. The analysis may be performed by one or more processors, thereby possibly processing data in parallel, performing simulations using data, and the like. For example, big data analysis may be performed by the cloud infrastructure system 702 for generating and training one or more models for a chatbot system. The data used for the analysis may include structured data (e.g., data stored in a database or structured according to a structured model) and / or unstructured data (e.g., data blocks (binary large objects)).

[0171] like Figure 7 , cloud infrastructure system 702 may include infrastructure resources 730 used to facilitate provisioning of various cloud services provided by cloud infrastructure system 702. Infrastructure resources 730 may include, for example, processing resources, storage or memory resources, networking resources, etc. In some examples, a storage virtual machine that may be used to service storage requested from an application may be part of cloud infrastructure system 702. In other examples, the storage virtual machine may be part of a different system.

[0172] In some examples, in order to facilitate efficient provisioning of these resources to support various cloud services provided by the cloud infrastructure system 702 for different customers, the resources can be bundled into resource groups or resource modules (also referred to as "pods"). Each resource module or pod can include a pre-integrated and optimized combination of one or more types of resources. In some examples, different pods can be pre-provisioned for different types of cloud services. For example, a first group of pods can be provisioned for database services, a second group of pods can be provisioned for Java services (the second group of pods can include a different combination of resources than the pods in the first group of pods), etc. For some services, the resources allocated for provisioning the services can be shared between services.

[0173] The cloud infrastructure system 702 itself may internally use services 732 that are shared by different components of the cloud infrastructure system 702 and that facilitate the provision of services by the cloud infrastructure system 702. These internal shared services may include, but are not limited to, security and identity services, integration services, enterprise repository services, enterprise manager services, virus scanning and whitelisting services, high availability, backup and recovery services, services for implementing cloud support, email services, notification services, file transfer services, and the like.

[0174] The cloud infrastructure system 702 may include multiple subsystems. These subsystems may be implemented in software or hardware or a combination thereof. Figure 7 As depicted, the subsystem may include a user interface subsystem 712 that enables users or customers of the cloud infrastructure system 702 to interact with the cloud infrastructure system 702. The user interface subsystem 712 may include a variety of different interfaces, such as a web interface 714, an online store interface 716 (wherein cloud services provided by the cloud infrastructure system 702 are advertised and customers may purchase), and other interfaces 718. For example, a customer may use a client device to request (service request 734) one or more services provided by the cloud infrastructure system 702 using one or more of the interfaces 714, 716, and 718. For example, a customer may visit an online store, browse cloud services provided by the cloud infrastructure system 702, and place a subscription order for one or more services provided by the cloud infrastructure system 702 that the customer wishes to subscribe to. The service request may include information identifying the customer and the one or more services that the customer wishes to subscribe to. For example, a customer may place a subscription order for services provided by the cloud infrastructure system 702. As part of the order, the customer may provide information identifying a chatbot system for which services are to be provided and optionally provide one or more credentials for the chatbot system.

[0175] In some examples (such as Figure 7In the depicted example), cloud infrastructure system 702 may include an order management subsystem (OMS) 720 configured to process new orders. As part of this processing, OMS 720 may be configured to: create an account for a customer (if one has not already been created); receive billing and / or billing information from the customer to be used to bill the customer for providing the requested service to the customer; verify the customer information; after verification, book the order for the customer; and orchestrate various workflows to prepare the order for fulfillment.

[0176] Once properly authenticated, the OMS 720 can then call an order provisioning subsystem (OPS) 724 that is configured to provision resources for the order, including processing resources, memory resources, and networking resources. Provisioning can include allocating resources to an order and configuring the resources to facilitate the services requested by the customer order. The manner in which resources are provisioned for an order and the type of resources provisioned can depend on the type of cloud services that the customer has ordered. For example, according to a workflow, the OPS 724 can be configured to determine a specific cloud service being requested and identify the number of groups that may have been pre-configured for that specific cloud service. The number of groups allocated for an order can depend on the size / volume / tier / scope of the requested service. For example, the number of groups to be allocated can be determined based on the number of users supported by the service, the duration of the service being requested, and the like. The allocated groups can then be customized for the specific requesting customer to provide the requested service.

[0177] In some examples, the setup phase processing as described above can be performed as part of the provisioning process by cloud infrastructure system 702. Cloud infrastructure system 702 can generate an application ID and select a storage virtual machine for the application from storage virtual machines provided by cloud infrastructure system 702 itself or from storage virtual machines provided by systems other than cloud infrastructure system 702.

[0178] The cloud infrastructure system 702 may send a response or notification 744 to the requesting customer to indicate when the requested service is now ready for use. In some instances, information (e.g., a link) may be sent to the customer that enables the customer to begin using and taking advantage of the benefits of the requested service. In some examples, for the customer requesting the service, the response may include a chatbot system ID generated by the cloud infrastructure system 702 and information identifying the chatbot system selected by the cloud infrastructure system 702 for the chatbot system corresponding to the chatbot system ID.

[0179] The cloud infrastructure system 702 can provide services to multiple customers. For each customer, the cloud infrastructure system 702 is responsible for managing information related to one or more subscription orders received from the customer, maintaining customer data related to the order, and providing the requested services to the customer. The cloud infrastructure system 702 can also collect usage statistics about the customer's use of the subscribed services. For example, statistics can be collected for the amount of storage used, the amount of data transferred, the number of users, and the amount of system up time and system down time. The customer can be billed using this usage information. Billing can be done, for example, on a monthly basis.

[0180] The cloud infrastructure system 702 can provide services to multiple customers in parallel. The cloud infrastructure system 702 can store information for these customers (possibly including proprietary information). In some examples, the cloud infrastructure system 702 includes an identity management subsystem (IMS) 728 configured to manage customer information and provide separation of managed information so that information related to one customer cannot be accessed by another customer. The IMS 728 can be configured to provide various security-related services such as identity services, such as information access management, authentication and authorization services, services for managing customer identities and roles and related functions, etc.

[0181] Figure 8 An example of a computer system 800 is illustrated. In some examples, the computer system 800 can be used to implement any digital assistant or chatbot system in a distributed environment and the various servers and computer systems described above. Figure 8 As shown, computer system 800 includes various subsystems including a processing subsystem 804 that communicates with multiple other subsystems via a bus subsystem 802. These other subsystems may include a processing acceleration unit 806, an I / O subsystem 808, a storage subsystem 818, and a communication subsystem 824. Storage subsystem 818 may include non-transitory computer-readable storage media including storage media 822 and system memory 810.

[0182] The bus subsystem 802 provides a mechanism for enabling the various components and subsystems of the computer system 800 to communicate with each other as expected. Although the bus subsystem 802 is schematically shown as a single bus, alternative examples of the bus subsystem can utilize multiple buses. The bus subsystem 802 can be any of a variety of bus structures including a memory bus or a memory controller, a peripheral bus, a local bus using any of a variety of bus architectures, etc. For example, such an architecture can include an industry standard architecture (ISA) bus, a microchannel architecture (MCA) bus, an enhanced ISA (EISA) bus, a video electronics standard association (VESA) local bus, and a peripheral component interconnect (PCI) bus (the PCI bus can be implemented as a mezzanine bus manufactured to the IEEE P1386.1 standard), etc.

[0183] The processing subsystem 804 controls the operation of the computer system 800 and may include one or more processors, application specific integrated circuits (ASICs), or field programmable gate arrays (FPGAs). The processor may include a single-core processor or a multi-core processor. The processing resources of the computer system 800 may be organized into one or more processing units 832, 834, etc. A processing unit may include one or more processors, one or more cores from the same or different processors, a combination of cores and processors, or other combinations of cores and processors. In some examples, the processing subsystem 804 may include one or more dedicated coprocessors such as a graphics processor, a digital signal processor (DSP), etc. In some examples, some or all of the processing units of the processing subsystem 804 may be implemented using custom circuits such as application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs).

[0184] In some examples, the processing unit in the processing subsystem 804 can execute instructions stored in the system memory 810 or stored on the computer-readable storage medium 822. In various examples, the processing unit can execute various programs or code instructions and can maintain multiple programs or processes that are executed simultaneously. At any given time, some or all of the program code to be executed can reside in the system memory 810 and / or on the computer-readable storage medium 822 (potentially including residing on one or more storage devices). Through suitable programming, the processing subsystem 804 can provide the various functions described above. In the instance where the computer system 800 executes one or more virtual machines, one or more processing units can be assigned to each virtual machine.

[0185] In some examples, a processing acceleration unit 806 may optionally be provided for performing custom processing or for offloading some of the processing performed by the processing subsystem 804 , thereby speeding up the overall processing performed by the computer system 800 .

[0186] The I / O subsystem 808 may include devices and mechanisms for inputting information to the computer system 800 and / or for outputting information from or via the computer system 800. In general, use of the term input device is intended to include all possible types of devices and mechanisms for inputting information to the computer system 800. User interface input devices may include, for example, keyboards, pointing devices such as a mouse or trackball, touch pads or touch screens incorporated into a display, scroll wheels, click wheels, dials, buttons, switches, keypads, audio input devices with voice command recognition systems, microphones, and other types of input devices. User interface input devices may also include motion sensing and / or gesture recognition devices, such as Microsoft Windows, which enable a user to control and interact with input devices. Motion Sensor, Microsoft 360 game controllers, devices that provide an interface for receiving input using gestures and spoken commands. User interface input devices may also include eye gesture recognition devices, such as detecting eye activity from the user (e.g., "blinking" when taking a picture and / or making a menu selection) and translating eye gestures into input devices (such as Google ) In addition, the user interface input device may include a method for enabling the user to communicate with the voice recognition system (e.g., Navigator) interactive voice recognition sensing device.

[0187] Other examples of user interface input devices include, but are not limited to, three-dimensional (3D) mice, joysticks or pointing rods, game controllers and graphics boards, and audio / visual devices (such as speakers, digital cameras, digital video cameras, portable media players, webcams, image scanners, fingerprint scanners, barcode reader 3D scanners, 3D printers, laser rangefinders, and eye tracking devices). In addition, user interface input devices may include, for example, medical imaging input devices, such as computer tomography, magnetic resonance imaging, positron emission tomography, and medical ultrasound equipment. User interface input devices may also include, for example, audio input devices, such as MIDI keyboards, digital musical instruments, etc.

[0188] In general, the term output device is used to include all possible types of devices and mechanisms for outputting information from the computer system 800 to a user or other computers. User interface output devices may include display subsystems, indicator lights, or non-visual displays such as audio output devices. The display subsystem may be a cathode ray tube (CRT), a flat panel device (such as a flat panel device using a liquid crystal display (LCD) or a plasma display), a projection device, a touch screen, etc. For example, user interface output devices may include, but are not limited to, various display devices that visually convey text, graphics, and audio / video information, such as monitors, printers, speakers, headphones, car navigation systems, plotters, voice output devices, and modems.

[0189] The storage subsystem 818 provides a repository or data storage for storing information and data used by the computer system 800. The storage subsystem 818 provides a tangible, non-transitory computer-readable storage medium for storing basic programming and data constructs that provide some of the example functionality. The storage subsystem 818 can store software (e.g., programs, code modules, instructions) that, when executed by the processing subsystem 804, provide the functionality described above. The software can be executed by one or more processing units of the processing subsystem 804. The storage subsystem 818 can also provide authentication in accordance with the teachings of the present disclosure.

[0190] The storage subsystem 818 may include one or more non-transitory memory devices, including volatile memory devices and non-volatile memory devices. Figure 8 As shown, the storage subsystem 818 includes a system memory 810 and a computer-readable storage medium 822. The system memory 810 may include multiple memories, including a volatile main random access memory (RAM) for storing instructions and data during program execution and a non-volatile read-only memory (ROM) or flash memory in which fixed instructions are stored. In some embodiments, a basic input / output system (BIOS) containing basic routines such as helping to transfer information between elements within the computer system 800 during startup can usually be stored in ROM. RAM usually contains data and / or program modules that are currently being operated and executed by the processing subsystem 804. In some embodiments, the system memory 810 may include multiple different types of memory such as static random access memory (SRAM), dynamic random access memory (DRAM), etc.

[0191] By way of example and not limitation, Figure 8As depicted, system memory 810 may load executing applications 812 (which may include various applications such as a web browser, a middle-tier application, a relational database management system (RDBMS), etc.), program data 814, and an operating system 816. By way of example, operating system 816 may include various versions of Microsoft Apple and / or Linux operating system, various commercially available or UNIX-like operating systems (including but not limited to various GNU / Linux operating systems, Google OS, etc.) and / or iOS, Telephone, OS, OS, OS operating system and other mobile operating systems, etc.

[0192] Computer-readable storage media 822 may store programming and data structures that provide some example functionality. Computer-readable media 822 may provide storage for computer-readable instructions, data structures, program modules, and other data for computer system 800. Software (programs, code modules, instructions) that provide the functionality described above when executed by processing subsystem 804 may be stored in storage subsystem 818. By way of example, computer-readable storage media 822 may include hard drives, magnetic disk drives, optical disk drives (e.g., CD ROMs, DVDs, Computer readable storage media 822 may include, but are not limited to, The computer-readable storage medium 822 may include a solid-state drive (SSD) based on a nonvolatile memory (e.g., a flash memory-based SSD, an enterprise-class flash memory drive, a solid-state ROM, etc.), an SSD based on a volatile memory such as a solid-state RAM, a dynamic RAM, a static RAM, etc., a DRAM-based SSD, a magnetoresistive RAM (MRAM) SSD, and a hybrid SSD using a combination of a DRAM and a flash memory-based SSD.

[0193] In some examples, the storage subsystem 818 may also include a computer-readable storage medium reader 820 that may be further connected to a computer-readable storage medium 822. The reader 820 may receive data from a storage device such as a disk, a flash memory drive, etc. and is configured to read data from the storage device.

[0194] In some examples, the computer system 800 can support virtualization technology, including but not limited to virtualization of processing and memory resources. For example, the computer system 800 can provide support for executing one or more virtual machines. In some examples, the computer system 800 can execute programs such as hypervisors that facilitate the configuration and management of virtual machines. Each virtual machine can be allocated with memory, computing (e.g., processor, core), I / O and networking resources. Each virtual machine is usually independent of other virtual machines. A virtual machine usually runs its own operating system, which can be the same or different from the operating system executed by other virtual machines executed by the computer system 800. Therefore, multiple operating systems can potentially be run simultaneously by the computer system 800.

[0195] The communication subsystem 824 provides an interface to other computer systems and networks. The communication subsystem 824 is used as an interface for receiving data from other systems and transmitting data from the computer system 800 to other systems. For example, the communication subsystem 824 can enable the computer system 800 to establish a communication channel to one or more client devices via the Internet for receiving information from the client devices and sending information to the client devices. For example, when the computer system 800 is used to implement Figure 1 When the robot system 120 is depicted, the communication subsystem can be used to communicate with the chat robot system selected for the application.

[0196] The communication subsystem 824 can support both wired communication protocols and / or wireless communication protocols. In some examples, the communication subsystem 824 may include a radio frequency (RF) transceiver component for accessing a wireless voice and / or data network (e.g., using cellular phone technology, advanced data network technologies such as 3G, 4G or EDGE (Enhanced Data Rates for Global Evolution), Wi-Fi (IEEE 802.XX Home Standard), or other mobile communication technologies, or any combination thereof), a global positioning system (GPS) receiver component, and / or other components. In some examples, in addition to or in lieu of a wireless interface, the communication subsystem 824 may provide wired network connectivity (e.g., Ethernet).

[0197] The communication subsystem 824 can receive and transmit various forms of data. In some examples, the communication subsystem 824 can receive input communications in the form of structured and / or unstructured data feeds 826, event streams 828, event updates 830, etc., among other forms. For example, the communication subsystem 824 can be configured to receive (or send) data feeds 826 in real time from users of social media networks and / or other communication services, such as feed, Updates, web feeds (such as Rich Site Summary (RSS) feeds), and / or real-time updates from one or more third-party information sources.

[0198] In some examples, the communication subsystem 824 may be configured to receive data in the form of a continuous data stream, which may include an event stream 828 of real-time events (which may be continuous or unbounded in nature without explicit end) and / or event updates 830. Examples of applications that generate continuous data may include, for example, sensor data applications, financial tickers, network performance measurement tools (e.g., network monitoring and traffic management applications), clickstream analysis tools, automobile traffic monitoring, etc.

[0199] The communication subsystem 824 may also be configured to transmit data from the computer system 800 to other computer systems or networks. The data may be transmitted in various forms such as structured and / or unstructured data feeds 826, event streams 828, event updates 830, etc. to one or more databases that may be in computer communication with one or more stream data source computers coupled to the computer system 800.

[0200] Computer system 800 may be one of various types, including a handheld portable device (e.g., Cellular phone, computing tablets, PDAs), wearable devices (e.g., Google head mounted display), personal computer, workstation, mainframe, kiosk, server rack, or any other data processing system. Due to the ever-changing nature of computers and networks, the Figure 8 The description of the depicted computer system 800 is intended to be only a specific example. Figure 8 Many other configurations of more or fewer components of the depicted systems are possible.Based on the disclosure and the teachings provided herein, it should be understood that there are other ways and / or methods to implement the various examples.

[0201] Although specific examples have been described, various modifications, changes, alternative constructions and equivalents are possible. Examples are not limited to operations within certain specific data processing environments, but are freely operated within multiple data processing environments. In addition, although certain examples have been described using a specific series of transactions and steps, it should be apparent to those skilled in the art that this is not intended to be restrictive. Although some flow charts describe operations as sequential processes, many operations can be performed in parallel or simultaneously. In addition, the order of operations can be rearranged. The process can have additional steps not included in the figure. The various features and aspects of the examples described above can be used individually or jointly.

[0202] Further, although certain examples have been described using a particular combination of hardware and software, it should be appreciated that other combinations of hardware and software are possible. Certain examples may be implemented in hardware only or software only or using a combination thereof. The various processes described herein may be implemented in any combination on the same processor or on different processors.

[0203] Where a device, system, component or module is described as being configured to perform certain operations or functions, such configuration may be accomplished, for example, by designing electronic circuits to perform the operations, by programming programmable electronic circuits (such as microprocessors) to perform the operations (e.g., by executing computer instructions or code), or by a processor or core programmed to execute code or instructions stored on a non-transitory memory medium, or any combination thereof. Processes may communicate using a variety of techniques, including but not limited to conventional techniques for inter-process communication, and different pairs of processes may use different techniques, or the same pair of processes may use different techniques at different times.

[0204] Specific details are given in this disclosure to provide a thorough understanding of the examples. However, the examples can be practiced without these specific details. For example, well-known circuits, processes, algorithms, structures and techniques have been shown without unnecessary details to avoid obscuring the examples. This description only provides illustrative examples and is not intended to limit the scope, applicability or configuration of other examples. Instead, the previous description of the examples will provide enabling descriptions for implementing various examples for those skilled in the art. Various changes can be made to the functions and arrangements of the elements.

[0205] Therefore, the present specification and drawings should be viewed in an illustrative rather than a restrictive sense. However, it will be apparent that additions, subtractions, deletions and other modifications and changes may be made thereto without departing from the broader spirit and scope set forth in the claims. Therefore, although specific examples have been described, these examples are not intended to be limiting. Various modifications and equivalents are within the scope of the appended claims.

[0206] In the foregoing description, various aspects of the present disclosure are described with reference to specific examples of the present disclosure, but those skilled in the art will recognize that the present disclosure is not limited thereto. The various features and aspects of the disclosure described above may be used individually or in combination. Further, without departing from the broader spirit and scope of the specification, the examples may be utilized in any number of environments and application environments outside of those described herein. Therefore, the description and drawings are considered to be illustrative rather than restrictive.

[0207] In the foregoing description, for the purpose of illustration, the method is described in a specific order. It should be understood that in an alternative example, the method can be performed in an order different from the described order. It should also be understood that the method described above can be performed by hardware components or can be embodied in a sequence of machine executable instructions, which can be used to make a machine (e.g., a general or special processor or logic circuit programmed with instructions) perform the method. These machine executable instructions can be stored in one or more machine-readable media (e.g., CD-ROM or other types of optical disks, floppy disks, ROM, RAM, EPROM, EEPROM, magnetic cards or optical cards, flash memory or other types of machine-readable media suitable for storing electronic instructions). Alternatively, the method can be performed by a combination of hardware and software.

[0208] Where a component is described as being configured to perform certain operations, such configuration may be accomplished, for example, by designing electronic circuits or other hardware to perform the operations, by programming programmable electronic circuits (e.g., a microprocessor or other suitable electronic circuit) to perform the operations, or any combination thereof.

[0209] While illustrative examples of the present application have been described in detail herein, it should be understood that the inventive concepts may be otherwise variously embodied and employed, and that the appended claims are intended to be interpreted to include such variations, except to the extent limited by the prior art.

Claims

1. A method comprising: access to utterances that include multiple tokens; associating a token from the plurality of tokens with a plurality of candidate entities; determining a plurality of confidence scores for the plurality of candidate entities, wherein a confidence score is determined for each candidate entity in the plurality of candidate entities; generating a context label distribution vector for the utterance based on the plurality of confidence scores; generating a plurality of embeddings for the plurality of tokens; identifying one or more constraints for the utterance based on the context label distribution vector and the plurality of embeddings; and An intent associated with the utterance is identified based on at least one of the one or more constraints.

2. The method of claim 1, wherein: The plurality of embeddings for the plurality of tokens are generated using a transformer-based machine learning model.

3. The method of claim 1, further comprising: A feature vector for the utterance is generated based on at least one of a regular expression pattern and a gazetteer.

4. The method of claim 3, further comprising: The context label distribution vector, the plurality of embeddings, and the feature vectors are processed to generate a first set of feature vectors.

5. The method of claim 1, further comprising: An encoded form of the utterance is generated based on the context label distribution vector and the plurality of embeddings.

6. The method of claim 5, further comprising: A plurality of probabilities of the plurality of candidate entities are generated based on the encoded form of the utterance.

7. The method of claim 1, wherein: The plurality of confidence scores for the plurality of candidate entities are determined based on a conversation including a plurality of utterances.

8. A system comprising: one or more processors; and a memory storing instructions that, when executed by the one or more processors, cause the system to perform operations including: access to utterances that include multiple tokens; associating a token from the plurality of tokens with a plurality of candidate entities; determining a plurality of confidence scores for the plurality of candidate entities, wherein a confidence score is determined for each candidate entity in the plurality of candidate entities; generating a context label distribution vector for the utterance based on the plurality of confidence scores; generating a plurality of embeddings for the plurality of tokens; identifying one or more constraints for the utterance based on the context label distribution vector and the plurality of embeddings; and An intent associated with the utterance is identified based on at least one of the one or more constraints.

9. The system of claim 8, wherein: The plurality of embeddings for the plurality of tokens are generated using a transformer-based machine learning model.

10. The system of claim 8, further comprising: A feature vector for the utterance is generated based on at least one of a regular expression pattern and a gazetteer.

11. The system of claim 10, further comprising: The context label distribution vector, the plurality of embeddings, and the feature vectors are processed to generate a first set of feature vectors.

12. The system of claim 8, further comprising: An encoded form of the utterance is generated based on the context label distribution vector and the plurality of embeddings.

13. The system of claim 12, further comprising: A plurality of probabilities of the plurality of candidate entities are generated based on the encoded form of the utterance.

14. The system of claim 8, wherein: The plurality of confidence scores for the plurality of candidate entities are determined based on a conversation including a plurality of utterances.

15. A non-transitory computer readable medium storing instructions that, when executed by one or more processors, cause a system to perform operations comprising: access to utterances that include multiple tokens; associating a token from the plurality of tokens with a plurality of candidate entities; determining a plurality of confidence scores for the plurality of candidate entities, wherein a confidence score is determined for each candidate entity in the plurality of candidate entities; generating a context label distribution vector for the utterance based on the plurality of confidence scores; generating a plurality of embeddings for the plurality of tokens; identifying one or more constraints for the utterance based on the context label distribution vector and the plurality of embeddings; and An intent associated with the utterance is identified based on at least one of the one or more constraints.

16. The non-transitory computer readable medium of claim 15, further comprising: A feature vector for the utterance is generated based on at least one of a regular expression pattern and a gazetteer.

17. The non-transitory computer readable medium of claim 16, further comprising: The context label distribution vector, the plurality of embeddings, and the feature vectors are processed to generate a first set of feature vectors.

18. The non-transitory computer readable medium of claim 15, further comprising: An encoded form of the utterance is generated based on the context label distribution vector and the plurality of embeddings.

19. The non-transitory computer readable medium of claim 18, further comprising: A plurality of probabilities of the plurality of candidate entities are generated based on the encoded form of the utterance.

20. The non-transitory computer readable medium of claim 15, wherein: The plurality of confidence scores for the plurality of candidate entities are determined based on a conversation including a plurality of utterances.