A rule-based technique for extracting question-answer pairs from data.

A rule-based technique for extracting question and answer pairs from digital documents addresses the inefficiencies of manual data labeling, enabling faster and more accurate chatbot training by automating the data extraction process.

JP2024540113AActive Publication Date: 2024-10-31ORACLE INT CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024525424
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-08-12
Filing Date
2022-08-15
Publication Date
2024-10-31
Estimated Expiration
2042-08-15

AI Technical Summary

Technical Problem

Training chatbots to interact effectively with humans is a time- and resource-intensive task due to the need for large amounts of manually labeled training data, particularly from unstructured documents like PDFs, which are inefficient and delay deployment.

Method used

A rule-based technique for extracting question and answer pairs from digital documents, allowing automated and dynamic data extraction without human intervention, using a document hierarchy to generate training datasets for machine learning models.

Benefits of technology

Enables faster, more accurate, and efficient extraction of training data, reducing human error and accelerating chatbot deployment by automating the data generation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024540113000001_ABST
    Figure 2024540113000001_ABST
Patent Text Reader

Abstract

Techniques are disclosed that relate to rule-based techniques for extraction of question and answer pairs from digital documents. In an exemplary technique, a digital text document may be accessed by executing a document indicator. A document hierarchy may be generated. The document hierarchy may include at least one parent node and a child node corresponding to the parent node. Each of the child nodes may correspond to a text feature of the digital text document. At least a first of the child nodes may be determined that corresponds to a first text feature. A parent node of the first child node and a second child node of the parent node may be determined. The second child node may correspond to a second text feature related to the first text feature. A training dataset may be generated.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of priority to U.S. Patent Application No. 17 / 819,440, filed August 12, 2022, which claims the benefit of U.S. Provisional Application No. 63 / 273,759, filed October 29, 2021, the specifications of each of which are incorporated herein by reference in their entireties.

[0002] Field The present disclosure relates generally to chatbot systems, and more particularly to rule-based techniques for the extraction of question and answer pairs from data. [Background technology]

[0003] background Instant messaging and automated chat platforms are efficient solutions to modern customer service problems. Organizations can leverage these practices to provide timely and responsive service to their customers without allocating expensive human resources to individual user queries. Modern automated chat platforms can utilize "chatbots" to handle customer service requests or other interactions with humans. Some chatbots may be designed and trained to handle specific requests, such as answering queries posed by humans.

[0004] Training a chatbot to effectively interact with humans is a time- and resource-intensive task. Often, a large amount of training data is required during the training process, and the chatbot model being trained may be assigned a task for which the existing set of training data is not suitable. Obtaining sufficient training data for training these chatbots often requires users to manually create the training data or parse documents to extract data and label the data in a way that the chatbot model can interact with. This is an extremely time- and resource-intensive task for humans, slowing down the deployment of chatbots. For example, training a chatbot to answer questions posed by humans may require the chatbot to parse thousands of examples of questions and corresponding answer samples that must be manually written or modified by humans.

[0005] A large number of documents containing questions and answers are digitally available. For example, a customer training a new chatbot may utilize existing documents on the customer's website, such as frequently asked questions (FAQs), to generate a set of training data. These existing documents are often in unstructured formats, such as portable document format files (PDF files), in which the chatbot cannot be trained because the chatbot does not accept the files as training input. Furthermore, before training can begin, a human user must parse the unstructured documents themselves and manually modify or regenerate the data in the appropriate embedded format that fits the chatbot. Summary of the Invention

[0006] overview SUMMARY Techniques are disclosed that relate to rule-based techniques for extraction of embedded data from documents.

[0007] In various embodiments, the method includes: a data processing system accessing a digital text document by executing the document indicator; the data processing system generating a document hierarchy based on the digital text document including at least one parent node and a plurality of child nodes corresponding to the at least one parent node, where each node of the plurality of child nodes corresponds to a textual feature of the digital text document; the method further includes: the data processing system determining, based on the document hierarchy, at least a first child node of the plurality of child nodes corresponding to a first textual feature; and the data processing system determining, based on the first child node, a parent node of the first child node and a second child node of the parent node, where the second child node corresponds to a second textual feature related to the first textual feature; and the method further includes: the data processing system generating a training dataset, where the training dataset includes a mapping between the first textual features and the second textual features and is configured to be input to the machine learning model to train one or more relationships in the machine learning model between the first textual features and the second textual features.

[0008] In various embodiments, a system can extract embedded data from a document. The system can include one or more processors and a non-transitory computer-readable medium coupled to the one or more processors. The non-transitory computer-readable medium can store instructions executable by the one or more processors to cause the one or more processors to perform various operations. The system can access the digital text document by executing the document indicator. The system can generate a document hierarchy based on the digital text document, the document hierarchy including at least one parent node and a child node corresponding to the at least one parent node. Each of the child nodes can correspond to a textual feature of the digital text document. The system can determine at least a first child node of the child nodes that corresponds to the first textual feature based on the document hierarchy. The system can determine a parent node of the first child node and a second child node of the parent node based on the first child node. The second child node can correspond to a second textual feature related to the first textual feature. The system can generate a training dataset. The training dataset may include a mapping between the first textual features and the second textual features and may be configured to be input to the machine learning model to train one or more relationships within the machine learning model between the first textual features and the second textual features.

[0009] In various embodiments, a non-transitory computer-readable medium stores instructions executable by one or more processors to cause one or more processors to perform various operations for extracting embedded data from a document. The operations can include accessing the digital text document by executing a document indicator. The operations can include generating a document hierarchy based on the digital text document, the document hierarchy including at least one parent node and a child node corresponding to the at least one parent node. Each of the child nodes can correspond to a textual feature of the digital text document. The operations can include determining, based on the document hierarchy, at least a first child node of the child nodes that corresponds to a first textual feature. The operations can include determining, based on the first child node, a parent node of the first child node and a second child node of the parent node, the second child node corresponding to a second textual feature related to the first textual feature. The operations can include generating a training dataset. The training dataset can include a mapping between the first textual feature and the second textual feature and can be configured to be input to the machine learning model to train one or more relationships in the machine learning model between the first textual feature and the second textual feature.

[0010] In some embodiments, the document indicator is a uniform resource location (URL) address. In some further embodiments, executing the document indicator includes executing the URL address to access the digital text document in the network domain.

[0011] In some embodiments, the digital text document is a web-based document including one or more HyperText Markup Language (HTML) representations, the one or more HTML representations being structured within the digital text document according to a document hierarchy. In some further embodiments, the method further includes extracting the one or more HTML representations in response to accessing the digital text document and modifying the one or more HTML representations to generate compressed HTML data, the compressed HTML data corresponding to a subset of the HTML data that does not include the auxiliary text characters, and the document hierarchy is generated based on the compressed HTML data.

[0012] In some embodiments, the document hierarchy is a tree diagram, at least one parent node is a branch node of the tree diagram, and the multiple child nodes are leaf nodes of the branch node. In some embodiments, determining a first child node of the multiple child nodes includes evaluating one or more nodes of the document hierarchy using a feature list, the feature list including one or more expressions related to the first textual feature. In some embodiments, determining the parent node and the second child node includes evaluating one or more nodes of the document hierarchy using a feature list, the feature list including one or more expressions related to the parent node and the second textual feature. In some embodiments, determining the first child node, the parent node, and the second child node includes traversing the nodes of the document hierarchy using a depth-first search.

[0013] In some embodiments, the method or operations further include training the machine learning model by inputting the training dataset into the machine learning model to generate objective function values, and training the one or more relationships in the machine learning model includes modifying one or more weight values ​​of the machine learning model based on the generated objective function values.

[0014] The techniques described above and below may be implemented in multiple ways and multiple contexts. Several example implementations and contexts are provided with reference to the following figures, which are described in more detail below. However, the following implementations and contexts are only some of the many implementations and contexts. [Brief description of the drawings]

[0015] [Figure 1] FIG. 1 is a simplified block diagram of a distributed environment incorporating an example embodiment. [Diagram 2] FIG. 1 is a simplified block diagram of a master bot (MB) system, according to one embodiment. [Diagram 3] FIG. 1 is a simplified block diagram of a Skillbot system, according to one embodiment. [Figure 4] FIG. 1 is a simplified block diagram of a computing system implementing a data processing system for rule-based question-answering data extraction in accordance with various embodiments. [Figure 5A] 1 illustrates an exemplary document structure including a tree-based node hierarchy in accordance with various embodiments. [Figure 5B] 1 illustrates an exemplary document structure including a tree-based node hierarchy in accordance with various embodiments. [Figure 6] FIG. 2 is a simplified block diagram illustrating a flow for extracting question answer data from URL data according to various embodiments. [Figure 7] FIG. 2 illustrates a process flow for generating question and answer data from URL data according to various embodiments. [Figure 8] 1 is a simplified diagram of a distributed system for implementing various embodiments. [Figure 9] FIG. 1 is a simplified block diagram of one or more components of a system environment in which services provided by one or more components of an embodiment system may be offered as cloud services, according to various embodiments. [Figure 10] FIG. 1 illustrates an example computer system that can be used to implement various embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] Detailed Description In the following description, for purposes of explanation, specific details are set forth in order to provide a thorough understanding of certain embodiments. It will be apparent, however, that various embodiments may be practiced without those specific details. The figures 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 preferred or advantageous over other embodiments or designs.

[0017] Training a chatbot to effectively interact with humans is a time- and resource-intensive task. Untrained chatbots may not be able to handle new or complex data well and may return no answer or an incorrect answer in response to various utterances, such as questions, posed to the chatbot. A large amount of data is often required to train a chatbot model to the point where it can effectively answer human utterances in most cases. This data includes labeled training data, and chatbot models, such as neural networks, may be trained by generating predicted data for utterances and then comparing the predicted data to ground truth data. Using an objective function, the difference between the predicted data and the ground truth data may be measured and used to improve the model (e.g., to learn model parameters by backpropagation).

[0018] Labeled training data is typically generated manually by reviewing documents that contain data that is desired to be included as training data. Humans may parse documents themselves for question and answer pairs that can be converted into training data for chatbot models. Humans copy the questions and answers to which the chatbot should "learn" and use the pairs to generate a training data set that is used to train the chatbot. To do this, human users must manually review documents for question and answer pairs, and often do not notice where the question and answer pairs are located or overlook them due to human error. This results in inefficient utilization of resources and delays in training and deployment of chatbot models.

[0019] To overcome these and other challenges, described herein are rule-based techniques for the extraction of training data, such as question and answer pairs, from digital documents that can be used to train chatbot models. The rule-based techniques described herein enable automatic and dynamic extraction of training data that can be used to train machine learning models without the need for human action or intervention. Automated dynamic extraction allows chatbot models to be trained more quickly, comprehensively, and thoroughly because it removes human error and inefficiencies in the training data generation process. For example, rule-based techniques not only extract question and answer pairs from digital documents faster and more accurately than humans, but can also enable more efficient pre-processing of data before extraction, and higher throughput of extraction, compared to manually generating training data.

[0020] Exemplary Chatbot System A bot (also called a skill, chatbot, chatterbot, or talkbot) is a computer program that can conduct a conversation with an end user. A bot can respond to natural language messages (e.g., questions or comments), typically through a messaging application that uses natural language messages. Businesses can use one or more bot systems to communicate with end users through messaging applications. The messaging application, sometimes called a channel, can be the end user's preferred messaging application that the end user already has installed and is familiar with. Thus, end users do not need to download and install a new application to chat with a bot system. 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 private assistants (such as Amazon Dot, Echo, or Show, Google Home®, Apple HomePod), mobile and web app extensions that extend native or hybrid / responsive mobile apps or web applications with chat functionality, or voice-based input (such as Siri®, Cortana®, Google Voice, or other devices or apps with an interface that uses voice input for interaction).

[0021] In some examples, the bot system may be associated with a Uniform Resource Identifier (URI). The URI may identify the bot system using a character string. The URI may be used as a webhook for one or more messaging application systems. The URI may include, for example, a Uniform Resource Locator (URL) or a Uniform Resource Name (URN). The bot system may be designed to receive a message (e.g., a hypertext transfer protocol (HTTP) post-invoke message) from the messaging application system. The HTTP post-invoke message may be directed to the URI from the messaging application system. In some embodiments, the message may be different from the HTTP post-invoke message. For example, the bot system may receive a message from a Short Message Service (SMS). Although the description herein refers to a communication received by the bot system as a message, it should be understood that the message may be an HTTP post-invoke message, an SMS message, or any other type of communication between the two systems.

[0022] An end user may interact with a bot system through conversational interactions (sometimes referred to as a conversational user interface (UI)) similar to human interactions. In some cases, an interaction may include an end user saying "hello" to a bot, with the bot responding "hey" and asking the end user how they can help. In some cases, an interaction may be a transactional interaction, e.g., with a banking bot, such as transferring money from one account to another, an informational interaction, e.g., with an HR bot, such as checking remaining vacation days, or an interaction, e.g., with a retail bot, such as discussing returning a purchased item or requesting technical assistance.

[0023] In some embodiments, the bot system may intelligently process end-user interactions without interaction with an administrator or developer of the bot system. For example, an end user may send one or more messages to the bot system to achieve a desired goal. The message may include some content, such as text, emojis, voice, images, video, or other methods of conveying a message. In some embodiments, the bot system may convert the content into a standardized form (e.g., a representational state transfer (REST) ​​call to a service of the enterprise with appropriate parameters) and generate a natural language response. The bot system may prompt the end user for additional input parameters or request other additional information. In some embodiments, the bot system may initiate communication with the end user rather than passively responding to the end user's utterance. Various techniques are described herein for identifying explicit invocations of the bot system and determining the input of the bot system being invoked. In an embodiment, an analysis of the explicit invocation is performed by the master bot based on detecting an invocation name in the utterance. In response to detecting the invocation name, the utterance may be refined for input to a skill bot associated with the invocation name.

[0024] A conversation with a bot may follow a specific conversation flow that includes multiple states. This flow may define what happens next based on the input. In some embodiments, a state machine that includes user-defined states (e.g., end user intent) and actions to take in or between states may be used to implement the bot system. A conversation may proceed in different ways based on end user input that may affect the decisions the bot makes regarding the flow. For example, at each state, based on the end user input or utterance, the bot may determine the end user intent to determine the appropriate action to take next. As used herein, in the context of an utterance, the term "intent" refers to the intent of the user who provided the utterance. For example, a user may attempt to converse with a bot to order a pizza, such that the user's intent may be expressed by the utterance "order a pizza". The user's intent may be directed to a specific task that the user wants the chatbot to perform on his or her behalf. Thus, an utterance may be phrased as a question, command, request, etc. that reflects the user's intent. The intent may include a goal that the end user wants to achieve.

[0025] In the context of chatbot configuration, the term "intent" is used herein to refer to configuration information for mapping a user's utterance to a specific task / action or a category of tasks / actions that the chatbot can perform. To distinguish between an utterance intent (i.e., a user's intent) and a chatbot's intent, the latter may be referred to herein as a "bot's intent." A bot's intent may include a set of one or more utterances associated with the intent. For example, an intent to order pizza may include various permutations of utterances expressing a desire to order pizza. These related utterances may be used to train a chatbot's intent classifier such that the intent classifier can later determine whether an input utterance from a user matches the intent to order pizza. A bot's intent may be associated with one or more dialogue flows at a state to start a conversation with a user. For example, a first message for an intent to order pizza can be the question, "What kind of pizza do you like?" In addition to the related utterances, a bot's intent may further include a named entity associated with the intent. For example, an intent to order a pizza may include variables or parameters that are used to perform the task of ordering a pizza, such as topping 1, topping 2, type of pizza, size of pizza, number of pizzas, etc. The values ​​of the entities are typically obtained through a conversation with the user.

[0026] FIG. 1 is a simplified block diagram of an environment 100 incorporating a chatbot system according to an embodiment. The environment 100 includes a digital assistant builder platform (DABP) 102 that allows a user of the DABP 102 to create and deploy a digital assistant or chatbot system. The DABP 102 can be used to create one or more digital assistants (or DAs) or chatbot systems. For example, as shown in FIG. 1, a user 104 representing a particular business can use the DABP 102 to create and deploy a digital assistant 106 for users of the particular business. For example, the DABP 102 can be used by a bank to create one or more digital assistants for use by customers of the bank. The same DABP 102 platform can be used by multiple businesses to create digital assistants. As another example, an owner of a restaurant (e.g., a pizza place) may use the DABP 102 to create and deploy a digital assistant that allows customers of the restaurant to order food (e.g., order pizza).

[0027] For purposes of this disclosure, a "digital assistant" is an entity that assists a user of the digital assistant in accomplishing various tasks through natural language conversation. A digital assistant may be implemented using only software (e.g., a digital assistant is a digital entity implemented using programs, codes, 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 a computer, a mobile phone, a watch, an appliance, a vehicle, etc. A digital assistant may also be referred to as a chatbot system. Thus, for purposes of this disclosure, the terms digital assistant and chatbot system are interchangeable.

[0028] A digital assistant, such as a digital assistant 106 built using DABP 102, can be used to perform a variety of 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 receive responses 112 back from the digital assistant 106. A conversation can include one or more of the inputs 110 and responses 112. Through 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 task requested by the user and respond to the user with an appropriate response.

[0029] The user input 110 is typically in the form of natural language and is considered an utterance. The user's utterance 110 can be in the form of text, such as when the user inputs a sentence, a question, a fragment of text, or a single word and provides it as an input to the digital assistant 106. In some embodiments, the user's utterance 110 can be in the form of voice input or utterance, such as when the user says or speaks something that is provided as an input to the digital assistant 106. The utterance is typically in the language spoken by the user 108. For example, the utterance may be in English or some other language. If the utterance is in the form of utterance, the voice input is converted into a textual utterance in that particular language, and the textual utterance is then processed by the digital assistant 106. Various speech-to-text processing techniques may be used to convert the voice input or voice input into a textual utterance, and the textual utterance is then processed by the digital assistant 106. In some embodiments, the speech-to-text conversion may be performed by the digital assistant 106 itself.

[0030] The utterance, which may be a text utterance or a voice utterance, can be a fragment, a sentence, multiple sentences, one or more words, one or more questions, a combination of the aforementioned types, and the like. The digital assistant 106 is configured to apply natural language understanding (NLU) techniques to the utterance to understand the meaning of the user input. As part of the NLU processing of the utterance, the digital assistant 106 is configured to perform processing to understand the meaning of the utterance, including identifying one or more intents and one or more entities corresponding to the utterance. Once the digital assistant 106 understands the meaning of the utterance, it may perform one or more actions or behaviors in response to the understood meaning or intent. For purposes of this disclosure, it is assumed that the utterance is a voice of text provided directly by a user 108 of the digital assistant 106 or is the result of a voice conversion of an input voice utterance into a form of text. However, this is not intended to be limiting or restrictive in any way.

[0031] For example, user 108 input may request that a pizza be ordered by providing an utterance such as "I would like to order a pizza." When the digital assistant 106 receives such an utterance, it is configured to understand the meaning of the utterance and take appropriate action. The appropriate action may include, for example, responding to the user with a question requesting user input regarding the type of pizza the user would like to order, the size of the pizza, any toppings on the pizza, etc. The responses provided by the digital assistant 106 may be in the form of natural language, and 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). When the user orders a pizza via a conversation between the user and the digital assistant 106, the digital assistant may guide the user to provide all necessary information regarding the pizza order, and then, upon completion of the conversation, cause the pizza to be ordered. The digital assistant 106 may end the conversation by outputting information to the user indicating that the pizza has been ordered.

[0032] At a conceptual level, the digital assistant 106 performs various processing in response to utterances received from a user. In some embodiments, this processing includes a series or pipeline of processing steps, including, for example, understanding the meaning of the input utterance (sometimes referred to as natural language understanding (NLU)), determining an action to be performed in response to the utterance, causing the action to be performed, if appropriate, generating a response to be output to the user in response to the user's utterance, outputting the response to the user, etc. NLU processing can include parsing the received input utterance to understand the structure and meaning of the utterance, and improving and modifying the utterance to develop a better understandable form (e.g., logical form) or structure of the utterance. Generating the response may include using NLG techniques.

[0033] NLU processing performed by a digital assistant such as digital assistant 106 can include various NLP-related processing such as parsing (e.g., tokenization, lemmatization, identifying part-of-speech tags for sentences, identifying named entities within sentences, generating dependency trees to represent sentence structure, splitting sentences into clauses, analyzing individual clauses, resolving anaphora, performing chunking, etc.). In an embodiment, the NLU processing, or portions thereof, is performed by the digital assistant 106 itself. In some other embodiments, the digital assistant 106 may use other resources to perform portions of the NLU processing. For example, the syntax and structure of sentences in an input utterance may be identified by processing the sentences using a parser, a part-of-speech tagger, and / or a named entity recognizer. In one implementation, for English, a parser, a part-of-speech tagger, and a named entity recognizer such as those provided by the Stanford University Natural Language Processing (NLP) Group are used to analyze sentence structure and syntax. These are provided as part of the Stanford Core NLP toolkit.

[0034] Although the various examples provided in this disclosure show speech in English, this is intended to be merely an example. In an embodiment, the digital assistant 106 can also process speech in languages ​​other than English. The digital assistant 106 can provide subsystems (e.g., components implementing NLU functions) configured to perform processing for different languages. These subsystems can be implemented as connectable units that can be invoked using service calls from the NLU core server. This makes NLU processing flexible and extensible for each language, including allowing different orders of processing. Language packs for individual languages ​​can be provided, and the language packs can register a list of subsystems that can be provided from the NLU core server.

[0035] A digital assistant, such as the digital assistant 106 shown in FIG. 1, may be made available for use or access by its user 108 through a wide variety of channels, such as, but not limited to, through an application, through social media platforms, through various messaging services and applications, and through other applications or channels. A single digital assistant can have multiple channels configured for it such that it can be simultaneously running and accessed by different services.

[0036] A digital assistant or chatbot system typically includes or is associated with one or more skills. In an embodiment, these skills are individual chatbots (called skillbots) configured to interact with a user and perform specific types of tasks, such as tracking inventory, submitting a timecard, creating an expense report, ordering food, checking a bank account, making a reservation, purchasing a widget, etc. For example, for the embodiment shown in FIG. 1, the digital assistant or chatbot system 106 includes skills 116-1, 116-2, etc. For purposes of this disclosure, the terms "skill" and "skills" are used interchangeably with the terms "skillbot" and "skillbot," respectively.

[0037] Each skill associated with the digital assistant assists a user of the digital assistant in completing a task through a conversation with the user, which may include a combination of text or voice input provided by the user and responses provided by the skill bot. These responses may be in the form of text or voice messages to the user and / or using simple user interface elements (e.g., list selections) that are presented to the user for the user to make a selection.

[0038] There are various ways in which skills or skillbots can be associated with or added to a digital assistant. In some examples, skillbots can be developed by a company and then added to a digital assistant using DABP 102. In other examples, skillbots can be developed and created using DABP 102 and then added to a digital assistant created using DABP 102. In yet other examples, DABP 102 provides an online digital store (referred to as a "skill store") that offers multiple skills covering a wide range of tasks. Skills offered by the skill store may expose various cloud services. To add a skill to a digital assistant being created using DABP 102, a user of DABP 102 can access the skill store via DABP 102, select the desired skill, and indicate that the selected skill is to 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 DABP102 may select and clone a particular skillbot provided by the skill store, make customizations or modifications to the selected skillbot, and then add the modified skillbot to a digital assistant created using DABP102).

[0039] A variety of different architectures may be used to implement a digital assistant or chatbot system. For example, in one embodiment, a digital assistant created and deployed using DABP 102 may be implemented using a masterbot / child (or sub)bot framework or architecture. According to this framework, the digital assistant is implemented as a masterbot that interacts with one or more child bots, which are skillbots. For example, in the embodiment shown in FIG. 1, the digital assistant 106 comprises a masterbot 114 and skillbots 116-1, 116-2, etc., that are child bots of the masterbot 114. In one embodiment, the digital assistant 106 is considered to function as a masterbot itself.

[0040] A digital assistant implemented according to the master / child bot architecture allows a user of the digital assistant to interact with multiple skills through a unified user interface, i.e., through the master bot. When a user interacts with the digital assistant, user input is received by the master bot. The master bot then performs processing to determine the meaning of the utterance of the user input. The master bot then determines whether the task requested by the user in the utterance can be handled by the master bot itself, and if not, the master bot selects a suitable skill bot to handle the user request and routes the conversation to the selected skill bot. This allows a user to converse with the digital assistant through a single common interface and further provides the functionality to use multiple skill bots configured to perform specific tasks. For example, in the case of a digital assistant developed for an enterprise, the master bot of the digital assistant may interface with skill bots having specific capabilities, such as a CRM bot for performing functions related to customer relationship management (CRM), an ERP bot for performing functions related to enterprise resource planning (ERP), and an HCM bot for performing functions related to human capital management (HCM). In this way, the end user or consumer of the digital assistant only needs to know how to access the digital assistant through a common master bot interface, and behind the scenes, multiple skill bots are provided to handle user requests.

[0041] In an embodiment, in a master bot / child bot infrastructure, the master bot is configured to be aware of an available list of skill bots. The master bot may be able to access metadata that identifies the various available skill bots and, for each skill bot, identifies the skill bot's capabilities, including the work that may be performed by the skill bot. Upon receiving a user request in the form of an utterance, the master bot is configured to identify or predict, from a number of available skill bots, a particular skill bot that can best serve and optimally process the user request. The master bot then routes the utterance (or a portion of the utterance) to that particular skill bot for further processing. In this manner, control flows from the master bot to the skill bot. The master bot may support multiple input and output channels.

[0042] 1 illustrates a digital assistant 106 with a masterbot 114 and skillbots 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 executable by one or more processors, stored on a computer-readable medium), solely in hardware, or in an implementation using a combination of software and hardware.

[0043] DABP 102 provides infrastructure and various services and features that enable a user of DABP 102 to create a digital assistant that includes one or more skill bots associated with the digital assistant. In some examples, a skill bot may be created by duplicating an existing skill bot, for example, duplicating a skill bot provided by a skill store. As previously indicated, DABP 102 provides a skill store or skill catalog that provides multiple skill bots for performing various tasks. A user of DABP 102 can duplicate a skill bot from the skill store. Modifications or customizations may be made to the duplicated skill bot as needed. In some other examples, a user of DABP 102 creates a skill bot from scratch using tools and services provided by DABP 102. As previously indicated, a skill store or skill catalog provided by DABP 102 may provide multiple skill bots for performing various tasks.

[0044] In one embodiment, at a high level, creating or customizing a skillbot includes the following steps: (1) Configure the settings for your new skill bot (2) Configure one or more intents for the skill bot (3) constitute one or more entities with respect to one or more intentions (4) Training the Skillbot (5) Create a dialogue flow for the skill bot (6) Optionally, add custom components to your skill bot (7) Test and deploy the skill bot Each of the above steps is briefly described below.

[0045] (1) Configure Settings for a New Skillbot - Various settings may be configured for a skillbot. For example, a skillbot designer may specify one or more invocation names for the skillbot being created. These invocation names may then be used by a user of the digital assistant to explicitly invoke the skillbot. For example, a user may enter an invocation name in the user's speech to explicitly invoke the corresponding skillbot.

[0046] (2) Configure one or more intents and associated example utterances for the skillbot - A skillbot designer specifies one or more intents (also called bot intents) for the skillbot being created. The skillbot is then trained based on these specified intents. These intents represent categories or classes that the skillbot is trained to infer about input utterances. Upon receiving an utterance, the trained skillbot infers the intent of the utterance, and the inferred intent is selected from a predefined set of intents used to train the skillbot. The skillbot then takes an appropriate action in response to the utterance based on the intent inferred about the utterance. In some examples, the intents of the skillbot represent tasks that the skillbot can perform for a user of the digital assistant. Each intent is given an intent identifier or intent name. For example, for a skillbot trained on banking, the intents specified for this skillbot may include "check balance", "transfer money", "check deposit", etc.

[0047] For each intent defined for a skillbot, the skillbot designer may provide one or more example utterances that express and illustrate the intent. These example utterances are intended to represent utterances that a user may input to the skillbot for that intent. For example, for a check balance intent, example utterances may include "What's the balance in my savings account?", "How much is in my checking account?", "How much money do I have in my account?", etc. Thus, various permutations of standard user utterances may be specified as example utterances for the intent.

[0048] The intents and their associated example utterances are used as training data to train the skill bot. A variety of different training techniques may be used. As a result of this training, a predictive model is generated that is configured to receive an utterance as input and output an intent inferred for the utterance by the predictive model. In some examples, the input utterance is provided to an intent analysis engine that is configured to predict or infer an intent of the input utterance using the trained model. The skill bot may then take one or more actions based on the inferred intent.

[0049] (3) Configuring an entity for one or more intents of the skillbot - In some examples, additional context may be required to enable the skillbot to respond appropriately to a user utterance. For example, there may be situations where a user input utterance resolves to the same intent in the skillbot. For example, in the above example, the utterances "What is the balance in my savings account?" and "How much is in my checking account?" both resolve to the same balance check intent, but these utterances are different requests asking to do different things. To disambiguate such requests, one or more entities are added to the intent. Using the banking skillbot example, an entity called account type that defines values ​​called "checking" and "savings" may enable the skillbot to parse the user request and respond appropriately. In the above example, the utterance resolves to the same intent, but the values ​​associated with the account type entity are different in the two utterances. This allows the skillbot to perform potentially different actions for the two utterances even though they resolve to the same intent. For an intent configured for a skillbot, one or more entities may be specified. Entities are thus used to add context to the intent itself. Entities help to more fully express the intent, enabling the skillbot to complete the user request.

[0050] In an embodiment, there are two types of entities: (a) built-in entities provided by DABP 102, and (2) custom entities that may be specified by a skill bot designer. Built-in entities are general entities that may be used in a wide 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 period, currency, phone number, URL, etc. Custom entities are used for more customized applications. For example, for a banking skill, an account type entity may be defined by the skill bot designer that allows various banking transactions by checking user input for keywords such as checking, savings, and credit card.

[0051] (4) Train the Skillbot - The skillbot is configured to receive user input in the form of utterances, parse or otherwise process the received input, and identify or select an intent associated with the received user input. As indicated above, the skillbot needs to be trained for this. In an embodiment, the skillbot is trained based on the intents configured for the skillbot and example utterances associated with the intents (collectively, training data) so that the skillbot can resolve the user input utterance to one of the configured intents. In an embodiment, the skillbot uses a predictive model, which is trained using the training data to enable the skillbot to identify what the user is saying (or, in some cases, what they are trying to say). DABP 102 provides a variety of different training techniques that may be used by the skillbot designer to train the skillbot, including various machine learning based training techniques, rule-based training techniques, and / or combinations thereof. In an embodiment, a portion of the training data (e.g., 80%) is used to train the skillbot model, and another portion (e.g., the remaining 20%) is used to test or validate the model. Once trained, the trained model (sometimes referred to as a trained skillbot) can be used to process and respond to user utterances. In some cases, the user utterance may be a question that requires only a single answer and no further conversation. To handle such situations, a Q&A (Question and Answer) intent may be defined for the skillbot, which allows the skillbot to output an answer to a user request without the need to update the dialogue definition. A Q&A intent is created in a similar manner as a standard intent. The dialogue flow of a Q&A intent can differ from the dialogue flow of a standard intent.

[0052] (5) Create a dialogue flow for the skillbot - The dialogue flow specified for the skillbot represents how the skillbot reacts when the different intents of the skillbot are resolved in response to the received user input. The dialogue flow defines the actions or behaviors that the skillbot takes, for example, how the skillbot responds to user utterances, how the skillbot prompts the user for input, and how the skillbot returns data. The dialogue flow is like a flowchart that the skillbot follows. The skillbot designer specifies the dialogue flow using a language such as Markdown language. In one embodiment, a version of YAML called OBotML may be used to specify the dialogue flow of the skillbot. The dialogue flow definition for the skillbot serves as a model of the conversation itself, i.e., a model that allows the skillbot designer to direct the interaction between the skillbot and the user that the skillbot serves.

[0053] In one embodiment, a skill bot's dialogue flow definition includes three sections: (a) Context Section (b) Default transition section (c) Status Section Context Section - In the context section, the skillbot designer can define variables that will be used in the conversation flow. Other variables that may be specified in the context section include, but are not limited to, variables for error handling, variables for built-in or custom entities, user variables that allow the skillbot to recognize and retain user preferences, etc.

[0054] Default Transitions Section - In the dialogue flow states section or in the default transitions section, transitions for the skill bot can be defined. Transitions defined in the default transitions section act as fallbacks and are triggered if there are no applicable transitions defined within a state or the conditions required to trigger a state transition cannot be met. The default transitions section can be used to define routing that allows the skill bot to gracefully handle unexpected user behavior.

[0055] State Section - The dialogue flow and its associated behaviors are defined as a set of temporary states that govern the logic within the dialogue flow. Each state node in the dialogue flow definition specifies a component that provides the functionality required at that point in the dialogue. Thus, states are built around components. A state contains characteristics specific to a component and defines the transitions to other states that are triggered after the execution of the component.

[0056] The state section may be used to handle special case scenarios. For example, there may be times when you want to provide a user with an option to temporarily leave a first skill they are interacting with in order to do something in a second skill within the digital assistant. For example, if a user is engaged in a conversation using a shopping skill (e.g., the user has selected something for purchase), the user may want to jump to a banking skill (e.g., the user may want to ensure they have 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 may be configured to initiate an interaction with a second, different skill within the same digital assistant and then return to the original flow.

[0057] (6) Adding Custom Components to a Skillbot - As previously described, a state specified in a skillbot's dialogue flow specifies a component that provides the required functionality corresponding to the state. The component enables the skillbot to perform the functionality. In an embodiment, DABP 102 provides a set of pre-configured components to perform a wide range of functions. A skillbot designer can select one or more of these pre-configured components and associate them with a state in the skillbot's dialogue flow. A skillbot designer can also create custom or new components using tools provided by DABP 102 and associate the custom components with one or more states in the skillbot's dialogue flow.

[0058] (7) Test and Deploy Skillbots - DABP 102 provides several features that enable skillbot designers to test the skillbots being developed, which can then be deployed and included in the digital assistant.

[0059] Although the above description describes how to create a skillbot, similar techniques may be used to create a digital assistant (or masterbot). At the masterbot or digital assistant level, built-in system intents may be configured for the digital assistant. These built-in system intents are used to identify common tasks that the digital assistant itself (i.e., the masterbot) can handle without invoking a skillbot associated with the digital assistant. Examples of system intents defined for a masterbot include: (1) exit: applies when a user indicates a desire to end a current conversation or context in the digital assistant, (2) assist: applies when a user requests assistance or guidance, and (3) unresolved intent: applies to user input that does not sufficiently match the exit and assist intents. The digital assistant also stores information about one or more skillbots associated with the digital assistant. This information enables the masterbot to select a specific skillbot to process an utterance.

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

[0061] In an embodiment, as part of this processing, the digital assistant determines whether the user input utterance explicitly identifies a skill bot using its invocation name. If the invocation name is present in the user input, the invocation name is treated as an explicit invocation of the skill bot corresponding to the invocation name. In such a scenario, the digital assistant may route the user input to the explicitly invoked skill bot for further processing. If neither a specific invocation nor an explicit invocation is present, in an embodiment, the digital assistant evaluates the received user input utterance and calculates a reliability score for the system intent and the skill bot associated with the digital assistant. The calculated score for the skill bot or system intent represents the degree of likelihood that the user input represents the work that the skill bot is configured to perform or represents the system intent. All system intents or skill bots with an associated calculated reliability score that exceeds a threshold (e.g., a reliability threshold routing parameter) are selected as candidates for further evaluation. The digital assistant then selects a specific system intent or skill bot from the identified candidates for further processing of the user input utterance. In an embodiment, after one or more skill bots are identified as candidates, the intents associated with those candidate skills (according to the intent model for each skill) are evaluated, and a reliability score is determined for each intent. In general, all intents with a reliability score above a threshold (e.g., 70%) are treated as candidate intents. If a particular skill bot is selected, the user's utterance is routed to that skill bot for further processing. If a system intent is selected, one or more actions are performed by the master bot itself according to the selected system intent.

[0062] FIG. 2 is a simplified block diagram of a master bot (MB) system 200, according to an embodiment. The MB system 200 may 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 bot invoker 240, and a data store 250. The MB system 200 shown in FIG. 2 is only an example of an arrangement of components in a master bot. Those skilled in the art will recognize many possible variations, alternatives, and modifications. For example, in some implementations, the MB system 200 may include more or fewer systems or components than those shown in FIG. 2, may combine two or more subsystems, or may include a different configuration or arrangement of subsystems.

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

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

[0065] The linguistic parser 214 parses the utterance 202 to extract part of speech (POS) tags for individual linguistic units (e.g., words) in the utterance 202. POS tags include, for example, noun (NN), pronoun (PN), verb (VB), etc. The linguistic parser 214 may tokenize the linguistic units of the utterance 202 (e.g., to convert each word into a separate token) and lemmatize the words. A lemma is the primary form of a set of words as represented in a dictionary (e.g., "run" is a lemma for run, runs, ran, running, etc.). Other types of preprocessing that the linguistic parser 214 can perform include chunking of compound expressions, for example, combining "credit" and "card" into a single expression "credit card." The linguistic parser 214 may identify relationships between words in the utterance 202. For example, in some embodiments, the linguistic parser 214 generates a dependency tree that indicates which parts of the utterance (e.g., particular nouns) are direct objects, which parts of the utterance are prepositions, etc. The results of the processing performed by the linguistic parser 214 form the extracted information 205, which is provided as input to the MIS 220 along with the utterance 202 itself.

[0066] As indicated above, the utterance 202 may include more than one sentence. For purposes of detecting multiple intents and explicit invocation, the utterance 202 may be treated as a single unit even if it includes multiple sentences. However, in an embodiment, preprocessing may be performed, for example by the preprocessing subsystem 210, to identify a single sentence of the multiple sentences for multiple intents analysis and explicit invocation analysis. In general, the results generated by the MIS 220 and the EIS 230 are substantially the same regardless of whether the utterance 202 is processed at the level of individual sentences or as a single unit including multiple sentences.

[0067] The MIS 220 determines whether the utterance 202 expresses multiple intents. Although the MIS 220 can detect the presence of multiple intents in the utterance 202, the process performed by the MIS 220 does not include determining whether the intent of the utterance 202 matches any intent configured for the bot. Instead, the process to determine whether the intent of the utterance 202 matches the intent of the bot may be performed by the intent classifier 242 of the MB system 200 or by the intent classifier of the skill bot (e.g., as shown in the embodiment of FIG. 3). The process performed by the MIS 220 assumes that there exists a bot (e.g., a particular skill bot or the master bot itself) that can process the utterance 202. Thus, the process performed by the MIS 220 does not require knowledge of which bots exist in the chatbot system (e.g., the identity of the skill bot registered with the master bot), nor knowledge of which intents are configured for a particular bot.

[0068] To determine that an 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 a sentence pattern that indicates the presence of multiple intents. For example, the sentence pattern may include a coordinating conjunction (e.g., a conjunction) that joins two parts of a sentence, both parts corresponding to separate intents. If the utterance 202 matches the sentence pattern, it may be inferred that the utterance 202 represents multiple intents. It should be noted that an utterance that includes multiple intents does not necessarily include different intents (e.g., intents targeting different bots or different intents within the same bot). Instead, the utterance may include separate instances of the same intent, such as, for example, "order pizza using payment account X, then order pizza using payment account Y."

[0069] As part of the determination that the utterance 202 represents multiple intents, the MIS 220 also determines which portions of the utterance 202 are associated with each intent. For each intent represented in the utterance that includes multiple intents, the MIS 220 constructs a new utterance for separate processing in place of the original utterance, e.g., utterance “B” 206 and utterance “C” 208 as shown in FIG. 2 . Thus, the original utterance 202 may be split into two or more separate utterances that are processed one by one. The MIS 220 determines which of the two or more utterances should be processed first using the extracted information 205 and / or from an analysis of the utterance 202 itself. For example, the MIS 220 may determine that the utterance 202 includes an indicator word that indicates that a particular intent should be processed first. The newly formed utterance corresponding to this particular intent (e.g., one of the utterances 206 or utterance 208) is first sent for further processing by the EIS 230. After the conversation triggered by the first utterance has ended (or been temporarily stopped), the next highest priority utterance (e.g., the other one of utterance 206 or utterance 208) may be sent to EIS 230 for processing.

[0070] The EIS 230 determines whether the utterance it receives (e.g., utterance 206 or utterance 208) includes an invocation name of a skillbot. In an embodiment, each skillbot in the chatbot system is assigned a unique invocation name that distinguishes the skillbot from other skillbots in the chatbot system. A list of invocation names may be maintained as part of the skillbot information 254 in the data store 250. An utterance is considered to be an explicit invocation if the utterance includes a word match with the invocation name. If the bot is not explicitly invoked, the utterance received by the EIS 230 is considered an implicit invocation utterance 234 and is input to the masterbot's intent classifier (e.g., intent classifier 242) to determine which bot should be used to process the utterance. In some examples, the intent classifier 242 determines that the masterbot should process the implicit invocation utterance. In other examples, the intent classifier 242 determines which skillbot the utterance should be routed to for processing.

[0071] The explicit call feature provided by the EIS 230 has several advantages. This feature can reduce the amount of processing that the masterbot needs to perform. For example, if an explicit call is present, the masterbot may not need to perform any intent classification analysis (e.g., using the intent classifier 242) or may need to perform a reduced intent classification analysis to select a skillbot. Thus, analysis of the explicit call may enable selection of a particular skillbot without using intent classification analysis.

[0072] Also, there may be situations where there is overlap in functionality between multiple skillbots. This may occur, for example, when the intents handled by two skillbots overlap or are very close to each other. In such situations, it may be difficult for the masterbot to identify which of the multiple skillbots to select based solely on the analysis of the intent classification. In such scenarios, the explicit invocation disambiguates the specific skillbot to be used.

[0073] In addition to determining that an utterance is an explicit invocation, EIS 230 is responsible for determining whether any portion of the utterance should be used as input to the skill bot being explicitly invoked. In particular, EIS 230 may determine whether any portion of the utterance is not associated with the invocation. EIS 230 may perform this determination by analyzing the utterance and / or by analyzing extracted information 205. Instead of sending the entire utterance received by EIS 230, EIS 230 may send the portion of the utterance that is not associated with the invocation to the invoked skill bot. In some examples, the input to the invoked skill bot is formed by simply removing any portion of the utterance that is associated with the invocation. For example, "I want to order a pizza using Pizza Bot" may be shortened to "I want to order a pizza" because "using Pizza Bot" is related to the invocation of Pizza Bot but is unrelated to any processing performed by Pizza Bot. In some examples, EIS 230 may reformat the portion sent to the invoked bot, for example to form a complete sentence. Thus, EIS 230 not only determines that an explicit call exists, but also determines what to send to the skill bot if an explicit call exists. In some instances, there may be no text to input to the bot being called. For example, if the utterance was "pizza bot," EIS 230 may determine that the pizza bot is being called, but there is no text to be processed by the pizza bot. In such a scenario, EIS 230 may indicate to the skill bot invoker 240 that there is nothing to send.

[0074] The skillbot invoker 240 invokes a skillbot in a variety of ways. For example, the skillbot invoker 240 can invoke the bot in response to receiving an indication 235 that a particular skillbot has been selected as a result of an explicit invocation. The indication 235 can be sent by the EIS 230 along with the input of the explicitly invoked skillbot. In this scenario, the skillbot invoker 240 hands over control of the conversation to the explicitly invoked skillbot. The explicitly invoked skillbot determines an appropriate response to the input from the EIS 230 by treating the input as an independent utterance. For example, the response can be to perform a particular action or to start a new conversation in a particular state, where the initial state of the new conversation depends on the input sent from the EIS 230.

[0075] Another way that the skillbot invoker 240 can invoke a skillbot is by implicit invocation using the intent classifier 242. The intent classifier 242 can be trained using machine learning techniques and / or rule-based training techniques to determine the likelihood that an utterance represents a task that a particular skillbot is configured to perform. The intent classifier 242 is trained for different classes, one class per skillbot. For example, each time a new skillbot is registered with the masterbot, a list of example utterances associated with the new skillbot can be used to train the intent classifier 242 to determine the likelihood that a particular utterance represents a task that the new skillbot can perform. Parameters (e.g., a set of values ​​for parameters of a machine learning model) generated as a result of this training can be stored as part of the skillbot information 254.

[0076] In an embodiment, the intent classifier 242 is implemented using a machine learning model, as described in more detail herein. Training the machine learning model may include inputting at least a subset of utterances from example utterances associated with various skill bots, and generating, as an output of the machine learning model, an inference as to which bot is the correct bot for processing any particular training utterance. For each training utterance, an indication of the correct bot to use for the training utterance may be provided as ground truth information. The behavior of the machine learning model may then be adapted (e.g., by backpropagation) to minimize the difference between the generated inference and the ground truth information.

[0077] In one embodiment, the intent classifier 242 determines, for each skill bot registered with the master bot, a reliability score indicating the likelihood that the skill bot can process the utterance (e.g., the implicit invocation utterance 234 received from the EIS 230). The intent classifier 242 may determine a reliability score for each configured system-level intent (e.g., assist, terminate). If a particular reliability score satisfies one or more conditions, the skill bot invoker 240 invokes the bot associated with this particular reliability score. For example, a threshold reliability score value may need to be met. Thus, the output 245 of the intent classifier 242 is either an identity of the system intent or an identity of the particular skill bot. In some embodiments, in addition to meeting the threshold reliability score value, the reliability score must exceed the next highest reliability score by a certain win margin. Imposing such a condition allows routing to a particular skill bot when each reliability score of multiple skill bots exceeds the threshold reliability score value.

[0078] After identifying the bot based on the evaluation of the reliability score, the skillbot invoker 240 hands over the processing to the identified bot. In case of system intent, the identified bot is a master bot. Otherwise, the identified bot is a skill bot. Furthermore, the skillbot invoker 240 decides what to provide to the identified bot as input 247. As indicated above, in 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 case of an implicit invocation, the input 247 can be the entire utterance.

[0079] The data store 250 comprises one or more computing devices that store data used by various subsystems of the masterbot system 200. As described above, the data store 250 includes rules 252 and skillbot information 254. The rules 252 include rules for determining, for example, by the MIS 220, when an utterance expresses multiple intents and how to split an utterance expressing multiple intents. The rules 252 further include rules for determining, by the EIS 230, which part of an utterance that explicitly invokes a skillbot is sent to the skillbot. The skillbot information 254 includes the invocation names of the skillbots in the chatbot system, for example, a list of the invocation names of all skillbots registered to a particular masterbot. The skillbot information 254 can also include information used by the intent classifier 242 to determine a confidence score for each skillbot in the chatbot system, for example, parameters of a machine learning model.

[0080] 3 is a simplified block diagram of a Skillbot system 300, according to an embodiment. The Skillbot system 300 is a computing system that may be implemented in software only, hardware only, or a combination of hardware and software. In an embodiment, such as the embodiment shown in FIG. 1, the Skillbot system 300 may be used to implement one or more Skillbots in a digital assistant.

[0081] The skillbot system 300 includes an MIS 310, an intent classifier 320, and a conversation manager 330. The MIS 310 is similar to the MIS 220 of FIG. 2 and provides similar functionality, including being operable to determine, using rules 352 in a data store 350, (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 an embodiment, the rules applied by the MIS 310 to detect multiple intents and to split the utterance are the same as the rules applied by the MIS 220. The MIS 310 receives the utterance 302 and the extracted information 304. The extracted information 304 is similar to the extracted information 205 of FIG. 1 and may be generated using the language parser 214 or a language parser local to the skillbot system 300.

[0082] The intent classifier 320 may be trained in a manner similar to the intent classifier 242, as described above in connection with the embodiment of FIG. 2 and in further detail herein. For example, in an embodiment, the intent classifier 320 is implemented using a machine learning model. The machine learning model of the intent classifier 320 is trained for a particular skill bot using at least a subset of the example utterances associated with that particular skill bot as training utterances. The ground truth for each training utterance is the intent of the particular bot associated with the training utterance.

[0083] The utterance 302 may be received directly from a user or provided via a masterbot. For example, as a result of processing by the MIS 220 and EIS 230 in the embodiment shown in FIG. 2, if the utterance 302 is provided via a masterbot, the MIS 310 may be bypassed to avoid repeating processing already performed by the MIS 220. However, if the utterance 302 is received directly from a user, for example during a conversation occurring after routing to a skillbot, the MIS 310 may process the utterance 302 and determine whether the utterance 302 represents multiple intents. If the utterance 302 represents multiple intents, the MIS 310 applies one or more rules to split the utterance 302 into separate utterances for each intent, e.g., utterance "D" 306 and utterance "E" 308. If the utterance 302 does not represent multiple intents, the MIS 310 forwards the utterance 302 to the intent classifier 320 for intent classification and does not split the utterance 302.

[0084] The intent classifier 320 is configured to match the received utterance (e.g., utterance 306 or 308) with the intent associated with the skillbot system 300. As described above, a skillbot can be configured with one or more intents, with each intent including at least one example utterance associated with the intent that is used to train the classifier. In the embodiment of FIG. 2, the intent classifier 242 of the masterbot system 200 is trained to determine the reliability score of the individual skillbot and the reliability score of the system intent. Similarly, the intent classifier 320 can be trained to determine the reliability score for each intent associated with the skillbot system 300. The classification performed by the intent classifier 242 is at the level of the bot, whereas the classification performed by the intent classifier 320 is at the level of the intent and is therefore more fine-grained. The intent classifier 320 can have access to intent information 354. The intent information 354 includes, for each intent associated with the skillbot system 300, a list of utterances that represent and indicate the meaning of the intent and are typically associated with the tasks that can be performed by the intent. The intent information 354 may further include parameters generated as a result of training on this list of utterances.

[0085] The conversation manager 330 receives as an output of the intent classifier 320 an indication 322 of a particular intent 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, the confidence score calculated by the intent classifier 320 may fall below a threshold confidence score value if the utterance targets the system intent or the intent of a different skill bot. If this occurs, the skill bot system 300 may refer the utterance to the master bot for processing, e.g., for routing to a different skill bot. However, if the intent classifier 320 is successful in identifying the intent within the skill bot, the conversation manager 330 initiates a conversation with the user.

[0086] A conversation initiated by the conversation manager 330 is a conversation specific to the intent identified by the intent classifier 320. For example, the conversation manager 330 may be implemented using a state machine configured to execute the dialogue flow of the identified intent. The state machine may include a default starting state (e.g., for when the intent is invoked without any additional input) and one or more additional states, each state associating with the state an action to be performed by the skill bot (e.g., performing a purchase transaction) and / or a dialogue to be presented to the user (e.g., questions, responses). Thus, the conversation manager 330 may determine an action / dialogue 335 upon receipt of an instruction 322 identifying the intent, and may determine the additional action or dialogue in response to subsequent utterances received during the conversation.

[0087] The data store 350 comprises one or more computing devices that store data used by various subsystems of the Skillbot system 300. As shown in Figure 3, the data store 350 includes rules 352 and intent information 354. In an embodiment, the data store 350 may be integrated into a masterbot or digital assistant data store, such as data store 250 of Figure 2.

[0088] Exemplary Data Processing System Figure 4 is a simplified block diagram of a computing system implementing a data processing system for rule-based question-answering data extraction in accordance with various embodiments. The arrangement shown in Figure 4 is an exemplary embodiment of a data processing system that may be utilized to perform all or a portion of the methods described herein, but the system shown in Figure 4 is not the only system capable of performing those methods. The data processing system 400 shown in Figure 4 may be implemented exclusively in software, exclusively in hardware, or in a combination of hardware and software.

[0089] As shown in FIG. 4, data processing system 400 may be a system for extracting data from digital documents to generate training data for chatbot applications. Data processing system 400 may include various components and subsystems to receive document address data and generate training data for training a chatbot-based machine learning model. For example, data processing system 400 may include a repository of deployable chatbot models that can be trained using data extracted from text-based documents. Subsystems of data processing system 400 may be configured to extract data from digital documents according to hierarchically derived rule-based processing and generate training data from these digital documents. After the training data is generated, different subsystems of data processing system 400 may use the training data to train a chatbot to interact with humans.

[0090] As shown in FIG. 4, the data processing system 400 includes an HTML extraction subsystem 410, a question-and-answer (QA) data subsystem 420, and a chatbot subsystem 430. The HTML extraction subsystem 410 may be a subsystem of the data processing system 400 configured to receive, for example, address data regarding the location of a digital document or a method for obtaining a structured digital document using the HTML programming language. For example, the HTML extraction subsystem 410 may be configured to receive a uniform resource locator (URL) input and output structure data related to an HTML document. To perform this process, the HTML extraction subsystem. It will be understood that the HTML extraction subsystem 410 is used as an example embodiment and that the structure data output may relate to various formats / languages, including but not limited to, eXtensible Markup Language (XML), JAVASCRIPT, PYTHON, etc.

[0091] The output structure data may be utilized by the QA data generator 420 to generate output QA data including mapped pairs of questions and answers in natural language form extracted from the digital documents. For example, the QA data subsystem 420 may be involved in generating output training data of question and answer pairs that may be used in or utilizing the chatbot subsystem 430 to train a chatbot. For example, a customer may send document address data to the data processing system 400, causing the system to extract data from the corresponding digital document (e.g., a web page) to train a chatbot against the data contained in the digital document. The use of rule-based hierarchical processing of digital documents to generate this training data for training a chatbot removes the need for manual generation of training data by humans, which is costly and time-inefficient.

[0092] In an exemplary embodiment, a client of the data processing system 400 utilizes a service that includes a question-answering (QA) chatbot configured to receive questions in the form of text from a human and send predicted answers back to the human. The client may utilize the service and the QA chatbot as part of the client's own services for its own customers. The client may, for example, send to the data processing system 406 URL addresses that point to web pages that contain information to be learned and utilized by the chatbot, or an operator of the chatbot may independently determine such URL addresses. The data processing system 400 may utilize rule-based extraction techniques to generate QA training data. The QA training data may be used to train the QA chatbot and stored in the chatbot subsystem 430. As a result, the next time the QA chatbot is deployed, it is better configured to answer questions similar to those contained in the digital documents that correspond to the received URLs. This process may occur automatically and independently of any manual human intervention.

[0093] Returning to FIG. 4 , the data processing system 400 may include a communication portal 402. The communication portal 402 may be a subsystem of the data processing system 400 configured to incorporate communications and data received from external systems and to execute the embodiments described herein. In various embodiments, the communication portal 402 is configured to receive or otherwise access the received document address data 406. For example, the communication portal 402 may include chatbot routing instructions 404, which may be a set of instructions for determining how to route the received document address data 406, including routing to an HTML extraction subsystem 410. The document address data may include a URL address, which may be executed in a network access application, such as a browser or web crawler, to access a digital document, such as a web page. For example, in response to receiving the received document address data 406, the communication portal 402 may determine that the data is a valid URL and may forward the URL to the HTML extraction subsystem 410. In some embodiments, the received document address data 406 may include instructions for utilizing the included address data to train a particular chatbot model. The communication portal may determine that the request is valid and forward the data to the HTML extraction subsystem 410 to begin the training data generation process described herein.

[0094] The HTML extraction subsystem 410 may include separate subsystems for executing document addresses, accessing digital documents, and extracting / generating structural data, such as HTML data. For example, the HTML extraction subsystem 410 may include a first subsystem configured to execute address data to access digital documents. The retrieved digital document data may be sent to or accessed by a second subsystem configured to process, parse, or otherwise manipulate the digital documents to extract one or more underlying data structures or programmatic resources specific to the digital documents. The data extracted by the second subsystem may be forwarded to a third subsystem configured to consolidate the data in a structured hierarchical format or representation to accurately reflect hierarchical elements in the digital documents. This information may be forwarded to a training data generator, such as the QA data generator 420. The process of extracting structural data from digital resources is further described below with reference to FIG. 4.

[0095] The QA data generator 420 may include separate subsystems to generate training data, such as QA data for a chatbot, based on the structure data received from the HTML extraction subsystem 410. For example, the QA data generator 420 may include a first subsystem configured to process the HTML structure data from the HTML extraction subsystem 410 to generate hierarchical tree data corresponding to a node hierarchy of text features extracted from a digital document. A second subsystem may parse the generated hierarchical tree data to determine a plurality of question text features and a plurality of corresponding answer text features represented by the node hierarchy. This parsing may be performed according to a particular parsing scheme, such as a depth-first search traversal of the tree data. It will be understood that the tree may be parsed / processed in any manner known in the art, and that depth-first search is considered a non-limiting example herein. A third subsystem may process the questions and answers determined by parsing the hierarchical tree data to generate one or more QA pairs. The QA pairs may be associated with mapping data and encoded in a format that can be input to a machine learning model. The QA data generation process is further described below with reference to FIG.

[0096] The chatbot subsystem 430 may be a subsystem of the data processing system 400 configured to perform processing or storage functions related to a chatbot. For example, the chatbot subsystem 430 may include a chatbot repository 432, which may be a repository of chatbot models that may be trained and deployed for use by a service or client. The chatbot training subsystem 434 may be a subsystem of the chatbot subsystem 430 configured to utilize training data to train a machine learning model of a chatbot. For example, the chatbot training subsystem 434 may receive training data generated by the QA data generator 420 and cause training of the chatbot model stored in the chatbot repository 432. The training data repository 436 may be a repository for storing the training data generated by the QA data generator 420 for later training a chatbot model. For example, a training data set associated with a client utilizing a chatbot may be stored in the training data repository such that training data does not need to be regenerated for each new chatbot generated for a particular client.

[0097] Exemplary Rule-Based Extraction Embodiments FIG. 5A illustrates an exemplary document structure including a tree-based hierarchy of nodes, according to various embodiments. FIG. 5A illustrates an exemplary hierarchical structure 500 as a tree-based hierarchy of nodes generated for a digital document. For example, the hierarchical structure 500 may represent HTML elements of a digital document, such as a web page. Each node in the hierarchy of nodes may represent an extracted or determined text feature of the digital document. For example, the nodes in the hierarchy may represent HTML tags in the underlying HTML code of the web page. In that case, each node may include values ​​such as header tags and property attributes (e.g., classes, font properties, hyperlinks, etc.) of a set of nodes and / or text represented in the digital document.

[0098] 5A, hierarchical structure 500 includes a root node and multiple branch nodes, each of which includes multiple leaf nodes, etc. Hierarchical structure 500 is not a limiting example of a node hierarchy for implementing the embodiments described herein, and those skilled in the art will appreciate that the structures described herein may support many types of hierarchical representations in a variety of graph formats.

[0099] The hierarchical structure 500 may be parsed in an iterative or recursive manner to determine features corresponding to the nodes of the hierarchy, e.g., text feature values ​​associated with each node. In some embodiments, the hierarchical structure 500 is parsed according to a depth-first search configuration to determine text features corresponding to the nodes of the hierarchical structure 500. The hierarchical structure 500 may be generated by a structure generator, e.g., HTML extraction subsystem 410, and may be parsed by a data generator, e.g., QA data generator 420.

[0100] FIG. 5B illustrates an exemplary document structure including a tree-based node hierarchy, according to various embodiments. In particular, FIG. 5B illustrates a hierarchical structure 500 after the hierarchy has been parsed to determine one or more aspects related to the nodes. As shown in FIG. 5B, some of the nodes are shaded to distinguish them from other nodes. For example, the first of the shaded nodes, which is highest in the hierarchy, is labeled with a "P" to indicate that it is a parent node of one or more child nodes.

[0101] In various embodiments, a subsystem that parses the node hierarchy compares text feature values ​​corresponding to the nodes to known or likely text values ​​to determine the type of text feature value to be parsed. For example, the subsystem may parse the hierarchical structure 500 to determine any text features that correspond to a set of text that are known to be questions or likely to be questions. The subsystem may do so to extract relevant questions that are used to generate QA data as part of the embodiments described herein. In various embodiments, the nodes are processed to compare their corresponding text features to a list of question-based terms or characters. For example, the parsing subsystem may determine that characters such as "div", "p", "a", "span", "h1", "h2", "h3", "h4", "h5", "h6", "button", etc. are tags for the node that are typically associated with features of the question text. The subsystem may parse the nodes and use regular expressions to determine these or other tags. For example, the subsystem may parse the node hierarchy using the following regular expression: r'([^a-zA-Z]|^)(Is|Are|Am|Was|Were|Can|Could|May|Might|Must| Will|Would|Shall|Should|Do|Does|Did| What||How|Why|When|Where|Which|Who|Whose)[^a-zA-Z][^!?]*\?'\ After the nodes that are likely to correspond to features of the question text are identified, a parent node of the identified node is determined. The parent node may be, for example, an HTML-based element of a digital document (e.g., a frequently asked questions section or "FAQ") that is likely to include one or more question and answer pairs. After the parent node is determined, each child node of the parent is parsed to determine whether the child nodes of the parent node also correspond to features of the question text or can correspond to features of the answer text to the corresponding question. For example, as shown in FIG. 5B, the hierarchical structure 500 is shaded to identify the parent node using a "P" designation. In various embodiments, the parent node may be determined in part by the tag of the parent node. For example, the parent node is less likely to include a question or answer element or tag that includes a corresponding character compared to the child node. Each of the child nodes is parsed to determine whether the corresponding text features of the node are representative of features of the question text or the answer text. For example, when the node hierarchy is parsed in a depth-first search, a node that corresponds to an answer feature may appear next to a node that corresponds to a question feature. Additionally, the parsing subsystem may compare tag terms that are known or likely to correspond to features of the answer text, such as "div", "p", "a", "span", "h1", "h2", "h3", "h4", "h5", "h6", "ol", "ul", "table", "img", etc., when those terms follow the question.

[0102] As shown in FIG. 5B, question and answer pairs "Q1" and "A1" have been determined as child nodes of parent node "P", and question and answer pairs "Q2" and "A2" and "Q3" and "A3" have also been determined. A question text feature or an answer text feature may include multiple text segments that can be represented by separate nodes. For example, as shown in FIG. 5B, answers "A2" and "A3" are both compound answer statements that correspond to two or more text features extracted from a digital document.

[0103] FIG. 6 is a simplified block diagram illustrating a flow for extracting question-answer data from URL data according to various embodiments. The block diagram illustrated in FIG. 6 may be implemented in software (e.g., code, instructions, programs) executed by one or more processing units (e.g., processors, cores) of the respective systems, hardware, or a combination thereof. The software may be stored in a non-transitory storage medium (e.g., in a memory device). The data flows and components presented in FIG. 6 and described below are intended to be exemplary and non-limiting. Although FIG. 6 illustrates various steps occurring in a particular sequence or order, this is not intended to be limiting. In an alternative embodiment, these steps may be performed in some different order, or some steps may be performed in parallel.

[0104] As shown in FIG. 6, system 600 is a system for extracting structural data from digital documents and generating QA data for training a machine learning chatbot model. System 600 may include an extraction layer 601 and a QA modeling layer 602. In various embodiments, system 600 is a data processing system, such as data processing system 600, or a hardware / software based application for facilitating the embodiments described herein. For example, extraction layer 601 may be implemented as part of HTML extraction subsystem 610, and QA modeling layer 602 may be implemented as part of QA data generator 620.

[0105] The extraction layer 601 of FIG. 6 may be a software / hardware area configured to utilize any input digital address data to generate structured data as part of the embodiments described herein. For example, as shown in FIG. 6, the extraction layer may receive or otherwise access URL data 605. The URL data may be a set of data including one or more addresses to one or more digital documents that are utilized to generate QA data for training a chatbot model. In various embodiments, the URL data 605 includes one or more URL addresses that are executable to enable the system to access digital web pages using Internet Protocol. The URL data 605 may be sent to an HTML extractor 610 of the extraction layer 601 to access the digital documents and extract HTML data 615. For example, the HTML extractor 610 may be configured to execute one or more URLs in the URL data 605 to access digital documents structured using HTML code. The HTML extractor may access the underlying HTML code of the digital documents and return some HTML data.

[0106] In various embodiments, the HTML extractor 610 or a similar subsystem may pre-process or post-process the HTML code of the digital document before extracting the HTML data 615. For example, the HTML extractor 610 may be configured to modify the HTML code by removing null or control characters, HTML comments, illegal HTML code tags, white space, new line characters, or other undesirable elements that may cause compatibility or efficiency issues in the processes described herein. The HTML extractor 610 may output this processed and extracted data as HTML data 615 that represents the underlying HTML code of the digital document.

[0107] The HTML data 615 may then be sent to a tree data generator 620. The tree data generator 620 may be a subsystem of the abstraction layer 601 configured to convert the input HTML data into structure data associated with a tree-based node hierarchy. For example, the tree data generator 620 may be configured to parse the HTML data 615 to determine one or more hierarchical relationships between elements of the HTML data and generate a corresponding tree-based structure. An example of a tree data generator is LXML, available at https: / / pypi.org / project / lxml / .

[0108] In various embodiments, the tree data generator 620 is configured to parse the HTML data 615 to generate data nodes in a tree model based on code tags present in the HTML data 615. For example, the tree data generator 620 may be configured to parse the HTML data 615 based on tags recorded in the HTML data 615 according to an iterative or recursive method and extract features associated with the tags. For example, the tags may include indicators of the location or relative importance of the tag within the digital document and in some cases correspond to textual features of the tag (e.g., a textual sentence expressed in a natural language displayed on a web page). The resulting tree data generated by the tree data generator may be transmitted from the extraction layer 601 to the QA modeling layer 602.

[0109] The QA modeling layer 602 may include one or more subsystems / models configured to utilize the tree data to train a machine learning model, such as a chatbot model. The tree data 625 may be sent from the tree data generator 620 to the QA pair generator 630. The QA pair generator 630 may be a subsystem configured to parse a tree-based hierarchical model of a digital document to extract one or more QA pairs and generate QA pair data that may be used to train a machine learning model. For example, the QA pair generator may be configured to parse a node hierarchy, such as the hierarchical structure 500 of FIGS. 5A and 5B, to extract question and answer pairs.

[0110] The QA pair generator 630 may, for example, parse the tree data 625 in a depth-first search manner and determine one or more question nodes based on the corresponding tag data of the nodes and a list of possible question tags known to the generator. After the one or more question nodes are identified, the QA pair generator 630 may determine a parent node of the identified one or more question nodes and may determine one or more sibling nodes of the one or more question nodes based on the parent node. The sibling nodes may correspond to other question nodes or answer nodes that share a similar parent node with the identified one or more question nodes. The QA pair generator 630 may be further configured to associate a subset of the identified question nodes with a subset of the answer nodes to form a question and answer mapping for a plurality of elements of the digital document.

[0111] In various embodiments, the QA pair generator comprises an encoder model configured to encode the question and answer pairs into embedded QA data that can be accepted as training data by the chatbot model. For example, the generated QA pairs may be input to an encoder model, which modifies the data underlying the QA pairs to conform to a parameterized form acceptable to a neural network associated with the chatbot. The encoded data may be output from the QA pair generator as QA pair data 635.

[0112] The QA paired data 635 may then be input to the chatbot model 640. In various embodiments, the chatbot model 640 may be configured to receive the QA paired data 635 and cause training of the chatbot model to better recognize and respond to the QA paired data. For example, the chatbot model may utilize any supervised or unsupervised learning techniques to retrain parameterized relationships in an existing chatbot model or to associate specific answers with specific questions or forms similar to the questions.

[0113] In an exemplary embodiment, a client utilizing a chatbot model sends a URL of a website containing FAQs to a data processing system to train the chatbot model to answer questions in the FAQs. The data processing system may first execute the URL to access the FAQs webpage and underlying HTML code. The extracted HTML code may be processed to remove unnecessary elements to generate QA data and send the HTML code to a tree data generator. The tree data generator models the relationships and hierarchies present in the HTML code as a node hierarchy based on a tree sorted by tags of the HTML code. The result is tree data in a form that can be parsed to generate QA pair data. The tree data may be sent to a QA pair generator to extract QA pairs. For example, the QA pair generator may parse the tree data to determine one or more questions present in the FAQs based on semantic indicators in tags of the FAQs HTML code or text of the FAQs webpage itself. The QA pair generator may then continue to parse the tree data in relation to the identified questions to determine answers to the questions posed in the FAQs. Once the QA pair generator identifies answers to specific questions, the QA pair generator may store these questions and answers as mapped data corresponding to question-answer relationships as presented in the FAQ. The resulting QA data may be sent to the chatbot model to train the chatbot model to better respond to questions from the FAQ. For example, the chatbot model may learn to recognize elements of the specific question and modify the parameters of the chatbot model to provide answers corresponding to the predicted specific questions.

[0114] Example Rule-Based Extraction Process FIG. 7 illustrates a process flow for generating question-answer data from URL data, according to various embodiments. The process illustrated in FIG. 7 may be implemented in software (e.g., code, instructions, programs) executed by one or more processing units (e.g., processors, cores) of the respective systems, hardware, or a combination thereof. The software may be stored in a non-transitory storage medium (e.g., in a memory device). The method presented in FIG. 7 and described below is intended to be exemplary and non-limiting. Although FIG. 7 illustrates various processing steps occurring in a particular sequence or order, this is not intended to be limiting. In an alternative embodiment, these steps may be performed in some different order, or some steps may be performed in parallel.

[0115] At 710, the digital text document is accessed by executing the document indicator. A data processing system may receive an address of the executable digital document to generate or receive the digital document. For example, the data processing system may execute a URL to access a web page that includes an HTML structure. The URL may be executed in an Internet browser, web crawler, or other access protocol to gain access to the underlying HTML code to build the web page. In some embodiments, accessing the digital text document may include retrieving HTML code used to generate the digital document without generating a graphical web page. The HTML code may be pre-processed or post-processed to modify the HTML code before building a document hierarchy from the HTML code.

[0116] At 720, a document hierarchy is generated based on the digital text document accessed at 710, the document hierarchy including parent nodes and child nodes of the parent nodes. The data processing system may generate the digital hierarchy based on HTML data extracted from the digital text document. For example, the data processing system may parse the HTML data extracted from the digital text document to determine a document structure. The document structure may represent a hierarchy of tags or elements in the digital text document that may be used to derive a tree-based model. The tags or elements may be represented by nodes in the tree-based model, and dependencies between the elements may be represented by edges between the nodes.

[0117] At 730, at least a first child node corresponding to the first text feature is determined based on the document hierarchy generated at 720. The data processing system may determine the first child node and the first text feature by parsing the tree model generated at 720 in an iterative or recursive manner for terms corresponding to the question text. For example, the data processing system may parse the nodes of the tree-based model to identify text features of each node. The text features of the node may be compared to a list of strings that indicate that the corresponding portion of the digital text document is related to the question of the question and answer pair.

[0118] At 740, a parent node for the first child node and a second child node of the first parent node are determined. The data processing system may use the identified first child node to determine the parent node. For example, the parent node of the first child node corresponding to the question of the question-answer pair may be likely to be related to the other question of the question-answer pair due to the hierarchical nature of the elements of the digital text document. Based on the parent node, one or more additional child nodes including a second child node likely to correspond to an answer to the question identified at 730 may be identified. The additional child nodes may be determined by parsing the tag of the one or more child nodes and comparing the tag or another element of the node as a second text feature to a list of character sets of possible answers.

[0119] At 750, a training dataset is generated that includes a mapping of the first textual features to the second textual features. The data processing system may group the first textual features and the second textual features together as a mapped set of data corresponding to question and answer pairs extracted from the digital text document. The resulting training dataset may be utilized to train a machine learning model, such as a chatbot, by generating an objective function based on one or more aspects of the training dataset and the machine learning model. The objective function may be utilized to modify one or more weighted relationships in the machine learning model to train the machine learning model to respond to questions.

[0120] Exemplary System 8 shows a simplified diagram of a distributed system 800. In the illustrated example, the distributed system 800 includes one or more client computing devices 802, 804, 806, and 808 coupled to a server 812 via one or more communications networks 810. The client computing devices 802, 804, 806, and 808 may be configured to run one or more applications.

[0121] In various examples, the server 812 may be adapted to execute one or more services or software applications that enable one or more embodiments described in this disclosure. In some examples, the server 812 may provide other services or software applications that may include non-virtual and virtual environments. In some examples, these services may be provided as web-based or cloud services, such as according to a Software as a Service (SaaS) model to users of the client computing devices 802, 804, 806, and / or 808. Users operating the client computing devices 802, 804, 806, and / or 808 may then utilize one or more client applications to interact with the server 812 and utilize the services provided by these components.

[0122] In the configuration shown in Figure 8, server 812 may include one or more components 818, 820, and 822 that perform functions performed by server 812. 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 various system configurations are possible that may differ from distributed system 800. Thus, the example shown in Figure 8 is one example of a distributed system for implementing an exemplary system and is not intended to be limiting.

[0123] A user may use client computing devices 802, 804, 806, and / or 808 to execute one or more applications, models, or chatbots that may generate one or more events or models that may then be implemented or served in accordance with the teachings of this disclosure. The client device may provide an interface that allows a user of the client device to interact with the client device. The client device may output information to the user through this interface. Although FIG. 8 shows only four client computing devices, any number of client computing devices may be supported.

[0124] 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 Windows, Apple Macintosh, UNIX or UNIX-like operating systems, Linux or Linux-like operating systems such as Google Chrome OS), including various mobile operating systems (e.g., Microsoft Windows Mobile, iOS, Windows Phone, Android, BlackBerry, Palm OS). Portable handheld devices may include cellular phones, smartphones (e.g., iPhone), tablets (e.g., iPad), personal digital assistants (PDAs), etc. Wearable devices may include Google Glass head-mounted displays and other devices. Gaming systems may include various handheld gaming devices, Internet-enabled gaming devices (e.g., Microsoft Xbox® gaming consoles with or without a Kinect® gesture input device, Sony PlayStation® systems, various gaming systems offered by Nintendo®, etc.), and the like.The client device may be capable of running a variety of different applications, such as various Internet-related apps, communication applications (e.g., email applications, short message service (SMS) applications), etc., and may use a variety of communication protocols.

[0125] Network 810 may be any type of network familiar to those skilled in the art that is capable of supporting 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), AppleTalk, etc. By way of example only, network 810 may be a local area network (LAN), an Ethernet-based network, 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., a network operating according to any of the IEEE (Institute of Electrical and Electronics Engineers) 1002.11 protocol suite, Bluetooth, and / or any other wireless protocol), and / or any combination of these and / or other networks.

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

[0127] The computing system of server 812 may run one or more operating systems, including any of the operating systems mentioned above, as well as any commercially available server operating system. Server 812 may run any of a variety of additional server and / or mid-tier applications, including a hypertext transport protocol (HTTP) server, a file transfer protocol (FTP) server, a common gateway interface (CGI) server, a JAVA server, a database server, etc. Examples of database servers include, but are not limited to, commercially available database servers from Oracle, Microsoft, Sybase, IBM (International Business Machines), etc.

[0128] In some implementations, the server 812 may include one or more applications for analyzing and consolidating data feeds and / or event updates received from users of the client computing devices 802, 804, 806, and 808. Examples of data feeds and / or event updates may include, but are not limited to, Twitter® feeds, Facebook® updates, or real-time updates received from one or more third party information sources and continuous data streams, which may include real-time events related to sensor data applications, financial tickers, network performance measurement tools (e.g., network monitoring and traffic management applications), clickstream analysis tools, automobile traffic monitoring, etc. The server 812 may include one or more applications for displaying the data feeds and / or real-time events via one or more display devices of the client computing devices 802, 804, 806, and 808.

[0129] The distributed system 800 may include one or more data repositories 814, 816. These data repositories may be used to store data and other information in some examples. For example, one or more of the data repositories 814, 816 may be used to store information such as information related to the performance of the chatbot or models generated for use by the chatbot that are used by the server 812 in performing various functions according to various embodiments. The data repositories 814, 816 may reside in various locations. For example, the data repository used by the server 812 may be local to the server 812 or may be remote from the server 812 and communicate with the server 812 via a network-based or dedicated connection. The data repositories 814, 816 may be various types of data repositories. In some examples, the data repository used by the server 812 may be a database, for example, a relational database such as databases provided by Oracle Corporation® and other vendors. One or more of these databases may be adapted to allow data to be stored, updated, and retrieved from the database in response to SQL-formatted commands.

[0130] In one example, one or more of the data repositories 814, 816 may be used by an application to store application data. The data repositories used by the application may be various types of data repositories, such as, for example, a key-value store repository, an object store repository, or a general storage repository supported by a file system.

[0131] In an example, the functionality described in this disclosure may be provided as a service via a cloud environment. FIG. 9 is a simplified block diagram of a cloud-based system environment in which various services may be provided as cloud services, according to an example. In the example shown in FIG. 9, a cloud infrastructure system 902 may provide one or more cloud services that may be requested by a user using one or more client computing devices 904, 906, and 908. The cloud infrastructure system 902 may comprise one or more computers and / or servers, which may include the computers and / or servers described above with respect to server 912. The computers in the cloud infrastructure system 902 may be organized as general purpose computers, dedicated server computers, server farms, server clusters, or any other suitable arrangement and / or combination.

[0132] The network 910 may facilitate communication and exchange of data between the clients 904, 906, and 908 and the cloud infrastructure system 902. The network 910 may include one or more networks. The networks may be of the same type or different types of networks. The network 910 may support one or more communication protocols, including wired and / or wireless protocols, to facilitate communication.

[0133] The example shown in Figure 9 is just one example of a cloud infrastructure system and is not intended to be limiting. It should be understood that in some other examples, cloud infrastructure system 902 may include more or fewer components than those shown in Figure 9, may combine two or more components, or may have a different configuration or arrangement of components. For example, while Figure 9 shows three client computing devices, in alternative examples, any number of client computing devices may be supported.

[0134] The term cloud service is typically used to refer to services made available to users on demand over a communications network such as the Internet by a service provider's system (e.g., cloud infrastructure system 902). 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-premise servers and systems. The cloud service provider's system is managed by the cloud service provider. Thus, customers may utilize the cloud services provided by the cloud service provider itself without needing to purchase separate licenses, support, or hardware and software resources for the services. For example, the cloud service provider's system may host applications, and users may order and use the applications over the Internet on demand, without the user having to purchase infrastructure resources to run the applications. Cloud services are designed to provide easy and scalable access to applications, resources, and services. Multiple providers offer cloud services. For example, multiple cloud services are offered by Oracle Corporation of Redwood Shores, California, such as middleware services, database services, Java cloud services, etc.

[0135] In one example, cloud infrastructure system 902 may provide one or more cloud services using various models, such as according to a Software as a Service (SaaS) model, a Platform as a Service (PaaS) model, an Infrastructure as a Service (IaaS) model, and other models including hybrid service models. Cloud infrastructure system 902 may include a set of applications, middleware, databases, and other resources that enable the provision of various cloud services.

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

[0137] The IaaS model is typically used to provide infrastructure resources (e.g., server resources, storage resources, hardware resources, and network resources) for providing elastic computing and storage capabilities to customers as cloud services. Various IaaS services are offered by Oracle Corporation.

[0138] The PaaS model is typically used to provide platform and environment resources that enable customers to develop, run, and manage applications and services as a service, without the customer having to procure, build, or maintain such resources. Examples of PaaS services offered by Oracle Corporation include, but are not limited to, Oracle Java Cloud Service (JCS), Oracle Database Cloud Service (DBCS), data management cloud services, and various application development solution services.

[0139] Cloud services are typically provided on an on-demand self-service basis, on a subscription basis, in an elastically scalable, reliable, highly available, and secure manner. For example, a customer may order one or more services provided by cloud infrastructure system 902 through a subscription order. Cloud infrastructure system 902 then executes processing to provide the services requested in the customer's subscription order. For example, a user may use speech to request the cloud infrastructure system to take an action (e.g., an intent), as previously described, and / or provide a service of a chatbot system, as described herein. Cloud infrastructure system 902 may be configured to provide one or more cloud services.

[0140] Cloud infrastructure system 902 may provide cloud services through a variety of deployment models. In a public cloud model, cloud infrastructure system 902 may be owned by a third-party cloud service provider and cloud services may be provided to any public customer, which may be an individual or a business. In one other example, according to a private cloud model, cloud infrastructure system 902 may be operated within an organization (e.g., within a corporate organization) and services may be provided to customers within the organization. For example, the customers may be various departments of a business, such as human resources, payroll, etc., or individuals within the business. In one other example, according to a community cloud model, cloud infrastructure system 902 and the services provided may be shared by multiple organizations within an associated community. Various other models may be used, such as hybrids of the aforementioned models.

[0141] Client computing devices 904, 906, and 908 may be different types of client computing devices (such as client computing devices 802, 804, 806, and 808 shown in FIG. 8) and may be capable of operating one or more client applications. A user may use a client device to interact with cloud infrastructure system 902, such as to request services provided by cloud infrastructure system 902. For example, a user may use a client device to request information or actions from a chatbot, as described in this disclosure.

[0142] In some examples, the processing performed by cloud infrastructure system 902 to provide services may include training and deployment of models. This analysis may include using, analyzing, and manipulating a data set to train and deploy one or more models. This analysis may be performed by one or more processors, possibly processing the data in parallel, running simulations using the data, etc. For example, big data analysis may be performed by cloud infrastructure system 902 to generate and train one or more models for a chatbot system. The data used for this 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 blobs (binary large objects)).

[0143] 9, cloud infrastructure system 902 may include infrastructure resources 930 that are utilized to facilitate the provision of various cloud services provided by cloud infrastructure system 902. Infrastructure resources 930 may include, for example, processing resources, storage or memory resources, network resources, etc. In one example, storage virtual machines that can be used to provide storage services requested by applications may be part of cloud infrastructure system 902. In other examples, the storage virtual machines may be part of a different system.

[0144] In one example, to facilitate efficient provisioning of these resources to support various cloud services offered by cloud infrastructure system 902 to various customers, resources may be organized into a set of resources or resource modules (also referred to as "pods"). Each resource module or pod may include a pre-integrated and optimized combination of one or more types of resources. In one example, different pods may be pre-provisioned for different types of cloud services. For example, a first set of pods may be provisioned for database services, a second set of pods may be provisioned for Java services, which may include a different combination of resources than the pods in the first set of pods, etc. For some services, resources allocated to provision a service may be shared between services.

[0145] Cloud infrastructure system 902 itself may use services 932 internally that are shared by various components of cloud infrastructure system 902 to facilitate provisioning of services by cloud infrastructure system 902. 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 whitelist services, high availability, backup and recovery services, services to enable support of the cloud, email services, notification services, file transfer services, etc.

[0146] Cloud infrastructure system 902 may comprise multiple subsystems. These subsystems may be implemented in software, or hardware, or a combination thereof. As shown in FIG. 9 , the subsystems may include a user interface subsystem 912 that allows users or customers of cloud infrastructure system 902 to interact with cloud infrastructure system 902. User interface subsystem 912 may include a variety of different interfaces, such as a web interface 914, an online store interface 916 where cloud services offered by cloud infrastructure system 902 are advertised and may be purchased by consumers, and other interfaces 918. For example, a customer may use one or more of interfaces 914, 916, and 918 using a client device to request one or more services offered by cloud infrastructure system 902 (service request 934). For example, a customer may access an online store, browse cloud services offered by cloud infrastructure system 902, and order a subscription for one or more services offered by cloud infrastructure system 902 for which the customer wishes to sign up. The service request may include information identifying the customer and the one or more services for which the customer wishes to sign up. For example, a customer may order a subscription for a service provided by cloud infrastructure system 902. As part of the order, the customer may provide information identifying the chatbot system for which the service is to be provided and, optionally, one or more credentials for the chatbot system.

[0147] 9, cloud infrastructure system 902 may include an order management subsystem (OMS) 920 configured to process new orders. As part of this processing, OMS 920 may be configured to create an account for the customer if one has not already been created, receive billing and / or accounting information from the customer that is used to invoice the customer for providing the customer with the requested services, verify the customer information, and upon verification, book the customer's order and coordinate various workflows to prepare the order for provisioning.

[0148] After proper validation, the OMS 920 may invoke an order provisioning subsystem (OPS) 924 configured to provision resources for the order, including processing resources, memory resources, and network resources. This provisioning may include allocating resources to the order and configuring the resources to facilitate the services requested by the customer order. The manner in which resources for the order are provisioned and the types of resources provisioned may depend on the type of cloud service ordered by the customer. For example, according to one workflow, the OPS 924 may be configured to determine the specific cloud service being requested and identify the number of pods that may be pre-configured for that specific cloud service. The number of pods allocated to the order may depend on the size / amount / level / scope of the requested service. For example, the number of pods allocated may be determined based on the number of users supported by the service, the duration for which the service is requested, etc. The allocated pods may then be customized for the specific requesting customer to provide the requested service.

[0149] In one example, the configuration phase operations described above may be performed by cloud infrastructure system 902 as part of the provisioning process. Cloud infrastructure system 902 may generate an application ID and select a storage virtual machine for the application from among those provided by cloud infrastructure system 902 itself or from those provided by other systems other than cloud infrastructure system 902.

[0150] Cloud infrastructure system 902 may send a response or notification 944 to the requesting customer to indicate if the requested service is now ready for use. In some examples, information (e.g., a link) may be sent to the customer that enables the customer to begin using and enjoy the benefits of the requested service. In one example, for the customer requesting the service, the response may include a chatbot system ID generated by cloud infrastructure system 902 and information identifying the chatbot system selected by cloud infrastructure system 902 for the chatbot system corresponding to the chatbot system ID.

[0151] Cloud infrastructure system 902 may provide services to multiple customers. For each customer, cloud infrastructure system 902 is responsible for managing information related to one or more subscription orders received from the customer, maintaining customer data related to the orders, and providing the requested services to the customer. Cloud infrastructure system 902 may collect usage statistics regarding the customer's use of the registered services. For example, statistics may be collected regarding the amount of storage used, the amount of data transferred, the number of users, and the amount of system up-time and down-time, etc. This usage information may be used to bill the customer. Billing may be performed, for example, on a monthly cycle.

[0152] Cloud infrastructure system 902 may provide services to multiple customers simultaneously. Cloud infrastructure system 902 may store information about these customers, possibly including confidential information. In one example, cloud infrastructure system 902 comprises an identity management subsystem (IMS) 928 configured to manage customer information and provide separation of managed information such that information related to one customer is not accessible by another customer. IMS 928 may be configured to provide various security-related services, such as identity services, e.g., services for managing customer identities as well as roles and associated capabilities, such as information access management, authentication, and authorization services.

[0153] FIG. 10 illustrates an example of a computer system 1000. In some examples, the computer system 1000 may be used to implement either a digital assistant or chatbot system in a distributed environment, as well as the various servers and computer systems previously described. As illustrated in FIG. 10, the computer system 1000 includes various subsystems, including a processing subsystem 1004 that communicates with multiple other subsystems via a bus subsystem 1002. These other subsystems may include a processing acceleration unit 1006, an I / O subsystem 1008, a storage subsystem 1018, and a communication subsystem 1024. The storage subsystem 1018 may include non-transitory computer-readable storage media, including a storage medium 1022 and a system memory 1010.

[0154] Bus subsystem 1002 provides a mechanism for allowing the various components and subsystems of computer system 1000 to communicate with one another as intended. Although bus subsystem 1002 is shown diagrammatically as a single bus, alternative examples of the bus subsystem may utilize multiple buses. Bus subsystem 1002 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, a local bus using any of a variety of bus architectures, and the like. For example, such architectures may include an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus, which may be implemented as a mezzanine bus manufactured to the IEEE P1386.1 standard, and the like.

[0155] The processing subsystem 1004 controls the operation of the computer system 1000 and may comprise one or more processors, application specific integrated circuits (ASICs), or field programmable gate arrays (FPGAs). The processors may include single-core or multi-core processors. The processing resources of the computer system 1000 may be organized into one or more processing units 1032, 1034, etc. The processing units may include one or more processors, one or more cores of the same or different processors, combinations of cores and processors, or other combinations of cores and processors. In some examples, the processing subsystem 1004 may include one or more dedicated co-processors, such as a graphics processor, digital signal processor (DSP), etc. In some examples, some or all of the processing units of the processing subsystem 1004 may be implemented using customized circuitry, such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

[0156] In some examples, the processing units of the processing subsystem 1004 may execute instructions stored in the system memory 1010 or the computer readable storage medium 1022. In various examples, the processing units may execute various program or code instructions and may maintain multiple simultaneously executing programs or processes. At any particular time, some or all of the program code being executed may reside in the system memory 1010 and / or in the computer readable storage medium 1022, including possibly on one or more storage devices. With appropriate programming, the processing subsystem 1004 may provide the various functions discussed above. In examples where the computer system 1000 is running one or more virtual machines, one or more processing units may be assigned to each virtual machine.

[0157] In one example, a processing acceleration unit 1006 may be optionally provided to perform customized processing or to offload part of the processing performed by the processing subsystem 1004 so as to accelerate the overall processing performed by the computer system 1000.

[0158] The I / O subsystem 1008 may include devices and mechanisms for inputting information into the computer system 1000 and / or outputting information from or through the computer system 1000. In general, use of the term input device is intended to include all possible types of devices and mechanisms for inputting information into the computer system 1000. User interface input devices may include, for example, keyboards, pointing devices such as mice or trackballs, touchpads or touchscreens integrated into displays, scroll wheels, click wheels, dials, buttons, switches, keypads, voice input devices with voice command recognition systems, microphones, and other types of input devices. User interface input devices may include motion detection and / or gesture recognition devices, such as a Microsoft Kinect® motion sensor that allows a user to control and interact with the input device, a Microsoft Xbox® 360 game controller, devices that provide an interface for receiving input using gestures and spoken commands. The user interface input devices may include eye gesture recognition devices, such as a Google Glass® blink detector that detects a user's eye activity (e.g., "blinking" when taking a photo and / or selecting a menu) and translates the eye gestures as input to the input device (e.g., Google Glass®). Additionally, the user interface input devices may include a voice recognition detection device that allows a user to interact with a voice recognition system (e.g., the Siri® navigator) via voice commands.

[0159] Other examples of user interface input devices include, but are not limited to, three dimensional (3D) mice, joysticks or pointing sticks, game pads, and graphic tablets, as well as audio / visual devices such as speakers, digital cameras, digital video cameras, portable media players, webcams, image scanners, fingerprint scanners, barcode readers 3D scanners, 3D printers, laser range finders, and eye tracking devices. Additionally, user interface input devices may include medical imaging input devices, such as, for example, computed tomography, magnetic resonance imaging, positron emission tomography, and medical ultrasound devices. User interface input devices may include audio input devices, such as, for example, MIDI keyboards, digital musical instruments, and the like.

[0160] In general, use of the term output device is intended to include all possible types of devices and mechanisms for outputting information from computer system 1000 to a user or to another computer. User interface output devices may include a display subsystem, indicator lights, or non-visual displays such as audio output devices. Display subsystems may be flat panel devices such as flat panel devices using cathode ray tubes (CRTs), liquid crystal displays (LCDs) or plasma displays, projection devices, touch screens, and the like. For example, user interface output devices may include, but are not limited to, various display devices that visually convey textual, graphical, and audio / video information, such as monitors, printers, speakers, headphones, navigation systems, plotters, audio output devices, and modems.

[0161] The storage subsystem 1018 provides a repository or data store for storing information and data used by the computer system 1000. The storage subsystem 1018 provides a tangible, non-transitory computer-readable storage medium for storing basic programming and data configurations that provide some example functionality. The storage subsystem 1018 may store software (e.g., programs, code modules, instructions) that, when executed by the processing subsystem 1004, provide the aforementioned functionality. The software may be executed by one or more processing units of the processing subsystem 1004. The storage subsystem 1018 may provide authentication in accordance with the teachings of the present disclosure.

[0162] The storage subsystem 1018 may include one or more non-transitory memory devices, including volatile and non-volatile memory devices. As shown in FIG. 10, the storage subsystem 1018 includes a system memory 1010 and a computer-readable storage medium 1022. The system memory 1010 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 implementations, a basic input / output system (BIOS), containing the basic routines that help to transfer information between elements within the computer system 1000, such as during start-up, may typically be stored in a ROM. The RAM typically contains data and / or program modules currently being operated on and executed by the processing subsystem 1004. In some implementations, the system memory 1010 may include multiple different types of memories, such as static random access memory (SRAM), dynamic random access memory (DRAM), etc.

[0163] 10, system memory 1010 may load application programs 1012 to be executed, which may include various applications such as a web browser, mid-tier applications, a relational database management system (RDBMS), program data 1014, and an operating system 1016. Examples of operating system 1016 may include various versions of Microsoft Windows, Apple Macintosh, and / or Linux operating systems, various commercially available UNIX or UNIX-like operating systems (including, but not limited to, various GNU / Linux operating systems, Google Chrome OS, etc.), and / or mobile operating systems such as iOS, Windows Phone, Android OS, BlackBerry OS, Palm OS operating systems, etc.

[0164] The computer readable storage medium 1022 may store programming and data configurations that provide some example functionality. The computer readable medium 1022 may provide storage of computer readable instructions, data structures, program modules, and other data for the computer system 1000. Software (programs, code modules, instructions) that provide the aforementioned functionality when executed by the processing subsystem 1004 may be stored in the storage subsystem 1018. Examples of the computer readable storage medium 1022 may include non-volatile memory, such as hard disk drives, magnetic disk drives, optical disk drives such as CD ROMs, DVDs, Blu-ray disks, or other optical media. The computer readable storage medium 1022 may include, but is not limited to, Zip drives, flash memory cards, universal serial bus (USB) flash drives, secure digital (SD) cards, DVD disks, digital video tapes, and the like. The computer-readable storage medium 1022 may include flash memory-based solid-state drives (SSDs), enterprise flash drives, solid-state drives (SSDs) based on non-volatile memory such as semiconductor ROM, semiconductor RAM, dynamic RAM, static RAM, DRAM-based SSDs, volatile memory-based SSDs such as magnetoresistive RAM (MRAM) SSDs, as well as hybrid SSDs that use a combination of DRAM and flash memory-based SSDs.

[0165] In one example, storage subsystem 1018 may include a computer readable storage medium reader 1020, which may be further connected to a computer readable storage medium 1022. Reader 1020 may be configured to receive and read data from a memory device, such as a disk, a flash drive, or the like.

[0166] In one example, computer system 1000 may support virtualization techniques, including but not limited to virtualization of processing and memory resources. For example, computer system 1000 may support running one or more virtual machines. In one example, computer system 1000 may run a program, such as a hypervisor, that facilitates configuration and management of virtual machines. Each virtual machine may be assigned memory resources, computational resources (e.g., processors, cores), I / O resources, and network resources. Each virtual machine typically runs independently of other virtual machines. A virtual machine typically runs its own operating system, which may be the same or different from the operating systems run by other virtual machines run by computer system 1000. Thus, multiple operating systems may be run simultaneously by computer system 1000.

[0167] The communication subsystem 1024 provides an interface to other computer systems and networks. The communication subsystem 1024 serves as an interface for receiving data from other systems and for transmitting data from the computer system 1000 to other systems. For example, the communication subsystem 1024 may enable the computer system 1000 to establish a communication channel to one or more client devices over the Internet to receive and transmit information to and from the client devices. For example, if the computer system 1000 is used to implement the bot system 120 shown in FIG. 1, the communication subsystem may be used to communicate with a chatbot system selected for the application.

[0168] The communications subsystem 1024 may support both wired and / or wireless communications protocols. In some examples, the communications subsystem 1024 may include radio frequency (RF) transceiver components for accessing wireless voice and / or data networks (e.g., using cellular technology, advanced data network technologies such as 3G, 4G, or EDGE (enhanced data rates for global evolution), WiFi (IEEE 802.XX family of standards), or other mobile communications technologies, or any combination thereof), global positioning system (GPS) receiver components, and / or other components. In some examples, the communications subsystem 1024 may provide a wired network connection (e.g., Ethernet) in addition to or instead of a wireless interface.

[0169] The communications subsystem 1024 may receive and transmit data in a variety of forms. In some examples, the communications subsystem 1024 may receive incoming communications in the form of structured and / or unstructured data feeds 1026, event streams 1028, event updates 1030, etc., among other forms. For example, the communications subsystem 1024 may be configured to receive (or transmit) data feeds 1026 in real time from users of social media networks and / or other communications services, such as Twitter® feeds, Facebook® updates, web feeds, such as rich site summary (RSS) feeds, and / or real-time updates from one or more third-party information sources.

[0170] In an example, the communications subsystem 1024 may be configured to receive data in the form of a continuous data stream, which may include an event stream 1028 of real-time events and / or event updates 1030 that may have no explicit end and may be continuous in nature or without boundaries. 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.

[0171] The communications subsystem 1024 may be configured to communicate data from the computer system 1000 to other computer systems or networks. The data may be communicated in a variety of forms, such as structured and / or unstructured data feeds 1026, event streams 1028, event updates 1030, etc., to one or more databases that may be in communication with one or more streaming data source computers coupled to the computer system 1000.

[0172] The computer system 1000 may be one of a variety of types, including a handheld portable device (e.g., an iPhone® mobile phone, an iPad® computing tablet, a PDA), a wearable device (e.g., a Google Glass® head-mounted display), a personal computer, a workstation, a mainframe, a ticket machine, a server rack, or any other data processing system. Due to the ever-changing nature of computers and networks, the description of the computer system 1000 shown in FIG. 10 is intended to be merely a specific example. Many other configurations are possible that include more or fewer components than the system shown in FIG. 10. It should be understood that there are other approaches and / or methods for implementing the various examples based on the disclosure and teachings provided herein.

[0173] Although specific embodiments have been described, various modifications, variations, alternative constructions, and equivalents are possible. The embodiments are not limited to operation in one particular data processing environment, but can freely operate in multiple data processing environments. Moreover, it should be apparent to one skilled in the art that while certain embodiments have been described using a particular sequence of transactions and steps, this is not intended to be limiting. Although some flow charts describe operations as a sequential process, many of the operations may be performed in parallel or simultaneously. Additionally, the order of operations may be rearranged. A process may include additional steps not included in the figures. Various features and aspects of the embodiments described above may be used individually or together.

[0174] Additionally, while certain embodiments have been described using a particular combination of hardware and software, it should be recognized that other combinations of hardware and software are possible. An embodiment may be implemented exclusively in hardware, exclusively in software, or using a combination thereof. The various processes described herein may be performed on the same processor or different processors in any combination.

[0175] When a device, system, component, or module is described as being configured to perform a certain operation or function, such configuration may be achieved, for example, by designing an electronic circuit to perform the operation, by programming a programmable electronic circuit (such as a microprocessor) to perform the operation, such as by executing computer instructions or code, or by programming a processor or core that is programmed to execute code or instructions stored on a non-transitory storage 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.

[0176] In this disclosure, specific details are given to enable a thorough understanding of the embodiments. However, the embodiments may be practiced without these specific details. For example, well-known circuits, processes, algorithms, structures, and techniques are shown without unnecessary detail to avoid obscuring the embodiments. This description merely provides exemplary embodiments and is not intended to limit the scope, applicability, or configuration of other embodiments. Rather, the foregoing description of the embodiments provides those skilled in the art with an enabling description for implementing various embodiments. Various changes may be made in the function and arrangement of elements.

[0177] Accordingly, the specification and drawings are to be regarded in an illustrative rather than restrictive sense. However, it will be apparent that additions, subtractions, deletions, and other modifications and changes may be made without departing from the broader spirit and scope as set forth in the appended claims. Thus, although specific embodiments have been described, these are not intended to be limiting. Various modifications and equivalents are within the scope of the following claims.

[0178] Although aspects of the disclosure have been described in the foregoing specification with reference to specific examples, those skilled in the art will recognize that the disclosure is not limited thereto. Various features and aspects of the foregoing disclosure may be used individually or together. Moreover, the embodiments may be utilized in any number of environments and applications beyond those described herein without departing from the broader spirit and scope of the specification. Accordingly, the specification and drawings should be regarded as illustrative rather than restrictive.

[0179] In the preceding description, the methods have been described in a particular order for purposes of illustration. It should be understood that in alternative embodiments, the methods may be performed in an order different from that described. It should also be understood that the methods described above may be performed by hardware components or embodied in a series of machine-executable instructions that can be used to cause a machine, such as a general-purpose or special-purpose processor or logic circuitry programmed with the instructions, to perform the method. These machine-executable instructions may be stored on one or more machine-readable media, such as a CD-ROM or other type of optical disk, a floppy disk, a ROM, a RAM, an EPROM, an EEPROM, a magnetic or optical card, a flash memory, or any other type of machine-readable medium suitable for storing electronic instructions. Alternatively, the methods may be performed by a combination of hardware and software.

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

[0181] Although illustrative embodiments of the present application have been described in detail herein, it is to be understood that the concepts of the present invention may be embodied and employed in various other ways, and that the appended claims are intended to be construed to include such modifications except insofar as limited by the prior art.

Claims

1. 1. A method comprising: a data processing system accessing the digital text document by executing the document indicator; generating a document hierarchy based on the digital text document, the document hierarchy including at least one parent node and a plurality of child nodes corresponding to the at least one parent node, each of the plurality of child nodes corresponding to a text feature of the digital text document; The method includes the data processing system determining, based on the document hierarchy, at least a first child node of the plurality of child nodes that corresponds to a first text feature; the data processing system further comprising: determining, based on the first child node, a parent node of the first child node and a second child node of the parent node, the second child node corresponding to a second text feature related to the first text feature; The method further includes the data processing system generating a training dataset, the training dataset including a mapping between the first textual features and the second textual features, and configured to be input to the machine learning model to train one or more relationships in the machine learning model between the first textual features and the second textual features.

2. The method of claim 1 , wherein the document indicator is a Uniform Resource Location (URL) address.

3. The method of claim 2 , wherein executing the document indicator comprises executing the URL address to access the digital text document within a network domain.

4. 2. The method of claim 1, wherein the digital text document is a web-based document containing one or more HyperText Markup Language (HTML) representations, the one or more HTML representations being structured within the digital text document according to the document hierarchy.

5. extracting the one or more HTML representations in response to accessing the digital text document; 5. The method of claim 4, further comprising: modifying the one or more HTML representations to generate condensed HTML data, the condensed HTML data corresponding to a subset of the HTML data that does not include auxiliary text characters, and the document hierarchy is generated based on the condensed HTML data.

6. The method of claim 1 , wherein the document hierarchy is a tree diagram, the at least one parent node is a branch node of the tree diagram, and the multiple child nodes are leaf nodes of the branch node.

7. 2. The method of claim 1 , wherein determining the first child node of the plurality of child nodes comprises evaluating one or more nodes of the document hierarchy using a feature list, the feature list including one or more expressions related to the first text feature.

8. 2. The method of claim 1 , wherein determining the parent node and the second child node comprises evaluating one or more nodes of the document hierarchy using a feature list, the feature list including one or more expressions related to features of the parent node and the second child node.

9. The method of claim 1 , wherein determining the first child node, the parent node, and the second child node comprises traversing nodes of the document hierarchy using a depth-first search.

10. 2. The method of claim 1 , further comprising training the machine learning model by inputting the training data set into the machine learning model to generate objective function values, and training the one or more relationships in the machine learning model comprises modifying one or more weight values ​​of the machine learning model based on the generated objective function values.

11. one or more processors; and a non-transitory computer-readable medium coupled to the one or more processors, the non-transitory computer-readable medium storing instructions executable by the one or more processors to cause the one or more processors to perform operations, the operations including: accessing the digital text document by executing the document indicator; generating a document hierarchy based on the digital text document, the document hierarchy including at least one parent node and a plurality of child nodes corresponding to the at least one parent node, each of the plurality of child nodes corresponding to a text feature of the digital text document; determining at least a first child node of the plurality of child nodes that corresponds to a first text feature based on the document hierarchy; determining, based on the first child node, a parent node of the first child node and a second child node of the parent node, the second child node corresponding to a second text feature related to the first text feature; generating a training dataset, the training dataset including a mapping between the first textual features and the second textual features, and configured to be input to the machine learning model to train one or more relationships in the machine learning model between the first textual features and the second textual features.

12. 12. The system of claim 11, wherein the document indicator is a Uniform Resource Location (URL) address, and the act of executing the document indicator comprises executing the URL address to access the digital text document in a network domain.

13. the digital text document is a web-based document including one or more HyperText Markup Language (HTML) expressions, the one or more HTML expressions being structured within the digital text document according to the document hierarchy, and the operation comprises: extracting the one or more HTML representations in response to accessing the digital text document; and modifying the one or more HTML representations to generate condensed HTML data, the condensed HTML data corresponding to a subset of the HTML data that does not include auxiliary text characters, and the document hierarchy is generated based on the condensed HTML data.

14. 12. The system of claim 11, wherein the act of determining the first child node of the plurality of child nodes comprises evaluating one or more nodes of the document hierarchy using a feature list, the feature list including one or more expressions related to the first text feature.

15. 12. The system of claim 11, wherein determining the parent node and the second child node includes evaluating one or more nodes of the document hierarchy using a feature list, the feature list including one or more expressions related to features of the parent node and the second child node.

16. The operation includes:

12. The system of claim 11, further comprising training the machine learning model by inputting the training data set into the machine learning model to generate objective function values, wherein the operation of training the one or more relationships in the machine learning model comprises modifying one or more weight values ​​of the machine learning model based on the generated objective function values.

17. A non-transitory computer-readable medium storing instructions executable by one or more processors to cause the one or more processors to perform operations, The operation includes: accessing the digital text document by executing the document indicator; generating a document hierarchy based on the digital text document, the document hierarchy including at least one parent node and a plurality of child nodes corresponding to the at least one parent node, each of the plurality of child nodes corresponding to a text feature of the digital text document; determining at least a first child node of the plurality of child nodes that corresponds to a first text feature based on the document hierarchy; determining, based on the first child node, a parent node of the first child node and a second child node of the parent node, the second child node corresponding to a second text feature related to the first text feature; 11. A method for training a machine learning model comprising: generating a training dataset, the training dataset including a mapping between the first textual features and the second textual features, the training dataset being configured to be input to the machine learning model to train one or more relationships in the machine learning model between the first textual features and the second textual features.

18. the digital text document is a web-based document including one or more HyperText Markup Language (HTML) expressions, the one or more HTML expressions being structured within the digital text document according to the document hierarchy, and the operation comprises: extracting the one or more HTML representations in response to accessing the digital text document; and modifying the one or more HTML representations to generate compressed HTML data, the compressed HTML data corresponding to a subset of the HTML data that does not include auxiliary text characters, and the document hierarchy is generated based on the compressed HTML data.

19. 20. The non-transitory computer-readable medium of claim 17, wherein determining the parent node and the second child node includes evaluating one or more nodes of the document hierarchy using a feature list, the feature list including one or more expressions related to features of the parent node and the second textual node.

20. The operation includes:

20. The non-transitory computer-readable medium of claim 17, further comprising training the machine learning model by inputting the training data set into the machine learning model to generate objective function values, wherein the operation of training the one or more relationships in the machine learning model comprises modifying one or more weight values ​​of the machine learning model based on the generated objective function values.

Citation Information

Patent Citations

  • Q&a extraction device, method, program, and answering system

    JP2020177360A

  • Automatic visual segmentation of webpages

    US20090177959A1