Restricted Natural Language Processing
CNLP technology addresses ambiguity in natural language processing by limiting the language surface to predefined subsurfaces, improving intent recognition and reducing processing overhead, thereby enhancing the usability and efficiency of chatbots and virtual assistants.
Patent Information
- Application Number
- JP2020571356
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-06-14
- Filing Date
- 2019-06-17
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2039-06-17
AI Technical Summary
Natural language processing systems face challenges in accurately interpreting user inputs due to variations in language expression and the presence of 'edge cases' that are not specifically addressed by existing algorithms, leading to ambiguity and frustration for users.
Constrained Natural Language Processing (CNLP) technology limits the language surface to a set of predefined subsurfaces, using a hierarchical grammar arrangement to parse user inputs, reduce ambiguity, and enhance discoverability through autocomplete mechanisms, ensuring precise intent recognition.
CNLP technology improves user interaction by reducing processing cycles, memory consumption, and cognitive load, allowing systems to accurately interpret user intents while minimizing ambiguous inputs, thus enhancing the usability and efficiency of chatbots and virtual assistants.
Smart Images

Figure 0007557379000014 
Figure 0007557379000012 
Figure 0007557379000016
Abstract
Description
[Technical field]
[0001] This application claims the benefit of U.S. Provisional Application No. 62 / 686,331, filed June 18, 2018, which claims the benefit of U.S. Application No. 16 / 441,915, filed June 14, 2019, the entire contents of which are incorporated herein by reference.
[0002] This disclosure relates to computer systems and data analysis systems, and more particularly to systems that use natural language processing. [Background technology]
[0003] Natural language processing generally refers to the field of processing input provided by a user through dialogic interactions using human language by a computing device. For example, the device may prompt the user for various inputs, ask clarifying questions, ask related questions, or engage in dialogic interactions with the user to elicit input. The user may also enter input as sentences or fragments, thereby establishing a simulated interaction with the device to identify one or more intents (which may be referred to as "tasks") to be performed by the device.
[0004] During this process, the device may present various interfaces to present the conversation. An example interface may function as a so-called "chatbot," which may be configured to attempt to mimic human nature, including personality, voice, preferences, disposition, etc., to establish a more conversational tone, thereby facilitating interaction with the user and receiving input more naturally. Examples of chatbots include "digital assistants" (which may also be referred to as "virtual assistants"), which are a subset of chatbots focused on a set of tasks dedicated to assisting (such as scheduling meetings, booking hotels, and scheduling food distribution). Summary of the Invention [Problem to be solved by the invention]
[0005] There are several different language processing algorithms, some of which rely on machine learning, that are used to analyze input to identify intent. However, natural language often does not follow a precise format, and different users have slightly different ways of expressing input that results in the same general intent, resulting in so-called "edge cases" that many natural language algorithms, including those that rely on machine learning, are not specifically programmed to address (or are not trained in the context of machine language).
[0006] Generally, this disclosure describes techniques for constrained natural language processing (CNLP) that expose a language subsurface in a constrained manner to remove ambiguity and aid in discoverability. Generally, a natural language surface refers to an allowed set of potential user inputs (e.g., utterances), i.e., a set of utterances that a natural language processing system can accurately process.
[0007] The CNLP techniques described herein can provide several technical advantages in the design of systems with natural language interfaces, such as chatbots and virtual assistants. First, the CNLP techniques can limit the linguistic surface to the set of occurrences that are identified and acted upon by the system. The techniques can refine the initial linguistic surface to eliminate / minimize ambiguity, ensuring that users are not annoyed or misled.
[0008] Second, the limited linguistic surface allows for a structured discovery process that, when combined with the auto-complete mechanism described herein, allows users to understand the capabilities and limitations of a CLNP system without a potentially lengthy training phase. Furthermore, the discovery process allows system designers to expose a large amount of the system's functionality while minimizing the cognitive load imposed on users.
[0009] Third, various aspects of the technique allow system designers to decompose linguistic surfaces into subsurfaces that are exposed to users only when certain conditions are met. Conditions may relate to user preferences or capabilities (e.g., certain more complex utterances may be allowed only if the user has recognized or proven technical sophistication) or the context of a user session (e.g., certain utterances may be allowed only if the requirements are met via previous utterances).
[0010] Taken together, CNLP technology enables the creation of systems with easier user interfaces to support users with diverse needs and levels of sophistication, while at the same time programmatically recognizing diverse intents with high accuracy. Thus, the technology enables system designs that achieve a balance of capability and usefulness compared to existing chatbot or virtual assistant frameworks.
[0011] In this sense, the CNLP technique can facilitate better operation of systems that interact with users according to a natural language interface, such as so-called "digital assistants" or "chatbots". Rather than wasting processing cycles trying to process ambiguous inputs that can be interpreted in multiple different ways, and without asking related questions to clarify the exact meaning intended by the user's input, the CNLP technique results in more efficient processing of user inputs by restricting the available language to one or more subsurfaces. Reducing processing cycles improves the operation of the CNLP system with less power consumption, and by generating less state, memory consumption is reduced and memory bandwidth is utilized (both of which further reduce power consumption), preserving more processing bandwidth for other processes. [Means for solving the problem]
[0012] In one aspect, the technology is directed to a device configured to process data representing an input, the device comprising one or more processors configured to expose a language subsurface specifying a natural language containment hierarchy that specifies a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of the language subsurfaces specifying a corresponding set of syntactic rules and character strings permitted for the natural language with which a user may interact to enter the data representing the input. The one or more processors are also configured to receive data representing the input that matches portions of the language provided by the exposed language subsurfaces, process the data representing the input to identify a user intent from a plurality of intents associated with the portions of the language, and perform a process associated with the identified intent to perform an action. The device may have a memory configured to store the data representing the input.
[0013] In another aspect, the technology is directed to a method of processing data representing an input, the method comprising: exposing a language subsurface specifying a natural language containment hierarchy that specifies a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of the language subsurfaces specifying a corresponding set of syntactic rules and strings permitted for a natural language with which a user may interact to enter data representing the input; receiving data representing the input that matches a portion of the language provided by the exposed language subsurface; processing the data representing the input to identify a user intent from a plurality of intents associated with the portion of the language; and performing processing associated with the identified intent to perform an action.
[0014] In another aspect, the technology is directed to a device for processing data representing an input, the device comprising: means for exposing a language subsurface specifying a natural language containment hierarchy specifying a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of the language subsurfaces specifying a corresponding set of syntactic rules and strings permitted for a natural language with which a user may interact to enter data representing the input; means for receiving data representing the input that matches a portion of the language provided by the exposed language subsurface; means for processing the data representing the input to identify a user intent from a plurality of intents associated with the portion of the language; and means for performing processing associated with the identified intent to perform an action.
[0015] In another aspect, the technology is directed to a computer-readable medium having stored thereon instructions that, when executed by one or more processors, expose a language subsurface specifying a natural language containment hierarchy that specifies a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of the language subsurfaces specifying a corresponding set of syntactic rules and strings permitted for a natural language with which a user may interact to enter data representing an input, receive data representing an input that matches a portion of the language provided by the exposed language subsurface, process the data representing the input to identify a user intent from a plurality of intents associated with the portion of the language, and perform processing associated with the identified intent to perform an action.
[0016] In another aspect, the technology is directed to a system configured to process data representing an input, the system comprising: a host device comprising one or more processors configured to expose a language subsurface specifying a natural language containment hierarchy specifying a grammar of the natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of the language subsurfaces specifying a corresponding set of syntactic rules and strings permitted for a natural language with which a user may interact to enter data representing the input; and a client device comprising one or more processors configured to receive data representing the input that matches portions of the language provided by the exposed language subsurfaces, and output the data representing the input to the host device. The one or more processors of the host device are further configured to process the data representing the input to identify a user intent from a plurality of intents associated with the portions of the language, and to perform a process associated with the identified intent to perform an action.
[0017] The details of one or more aspects of the technology are set forth in the accompanying drawings and specification. Other features, objects, and advantages of these technologies will become apparent from the description, drawings, and claims. [Brief description of the drawings]
[0018] [Figure 1] FIG. 1 is a block diagram illustrating a system capable of implementing various aspects of the techniques described in this disclosure. [Diagram 2] 2 illustrates an example interface presented by an interface device of a host device having multiple different applications executed by the execution platform of the host device shown in FIG. 1. [Figure 3A] 3 illustrates an interface shown by an interface device of the host device shown in FIG. 1 that facilitates sales manager productivity analysis via the sales manager productivity application shown in FIG. 2 according to various aspects of the CNLP technology described in this disclosure. [Figure 3B]3 illustrates an interface shown by an interface device of the host device shown in FIG. 1 that facilitates sales manager productivity analysis via the sales manager productivity application shown in FIG. 2 according to various aspects of the CNLP technology described in this disclosure. [Figure 3C] 3 illustrates an interface shown by an interface device of the host device shown in FIG. 1 that facilitates sales manager productivity analysis via the sales manager productivity application shown in FIG. 2 according to various aspects of the CNLP technology described in this disclosure. [Figure 3D] 3 illustrates an interface shown by an interface device of the host device shown in FIG. 1 that facilitates sales manager productivity analysis via the sales manager productivity application shown in FIG. 2 according to various aspects of the CNLP technology described in this disclosure. [Figure 3E] 3 illustrates an interface shown by an interface device of the host device shown in FIG. 1 that facilitates sales manager productivity analysis via the sales manager productivity application shown in FIG. 2 according to various aspects of the CNLP technology described in this disclosure. [Figure 3F] 3 illustrates an interface shown by an interface device of the host device shown in FIG. 1 that facilitates sales manager productivity analysis via the sales manager productivity application shown in FIG. 2 according to various aspects of the CNLP technology described in this disclosure. [Figure 3G] 3 illustrates an interface shown by an interface device of the host device shown in FIG. 1 that facilitates sales manager productivity analysis via the sales manager productivity application shown in FIG. 2 according to various aspects of the CNLP technology described in this disclosure. [Figure 3H] 3 illustrates an interface shown by an interface device of the host device shown in FIG. 1 that facilitates sales manager productivity analysis via the sales manager productivity application shown in FIG. 2 according to various aspects of the CNLP technology described in this disclosure. [Figure 4]2 is a block diagram illustrating a data structure used to represent the language surface shown in the example of FIG. 1 in accordance with various aspects of the techniques described in this disclosure. [Diagram 5] 2 is a block diagram illustrating components of an example device shown in the example of FIG. 1. [Figure 6] 2 is a flowchart illustrating the operation of the example host device of FIG. 1 in performing various aspects of the techniques described in this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] Figure 1 is a block diagram illustrating a system 10 capable of implementing various aspects of the techniques described in this disclosure for constrained natural language processing (CNLP). As shown in the example of Figure 1, system 10 includes a host device 12 and a client device 14. Although shown in the example of Figure 1 as having two devices, namely, host device 12 and client device 14, system 10 may include a single device that includes functionality described below for both host device 12 and client device 14, or multiple clients 14 that each interact with one or more host devices 12 that share a mutual database hosted by one or more of the host devices 12.
[0020] Host device 12 may represent any form of computing device capable of implementing the techniques described in this disclosure, including handsets (or mobile phones), tablet computers, so-called smartphones, desktop computers, and laptop computers, to provide a few examples. Similarly, client device 14 may represent any form of computing device capable of implementing the techniques described in this disclosure, including handsets (or mobile phones), tablet computers, so-called smartphones, desktop computers, laptop computers, so-called smart speakers, so-called smart headphones, and so-called smart televisions, to provide a few examples.
[0021] 1, host device 12 includes a server 28, a CNLP device 22, one or more execution platforms 24, and a database 26. Server 28 may represent a device configured to maintain conversational context and coordinate the routing of data between CNLP device 22 and execution platforms 24.
[0022] The server 28 may have an interface device 20, which may represent a device by which the host device 12 can provide one or more interfaces 21 to the client device 14 to elicit data 19 representing input and / or present results 25. The data 19 may represent voice input, text input, image input (e.g., representing or capable of becoming text), or any other type of input that can facilitate interaction with the host device 12. The interface device 20 may generate or output a variety of interfaces 21, including a graphical user interface (GUI), a command line interface (CLI), or any other interface that presents or provides data to the user 16. The interface device 20 may output, as an example, a chat interface 21 in the form of a GUI with which the user 16 can interact to input data 19 representing input (i.e., text input, relevant to the chat server example). The server 28 may output the data 19 to the CNLP device 22 (or may call the CNLP device 22 and pass the data 19 via the call).
[0023] CNLP device 22 may represent a device configured to perform various aspects of the CNLP techniques as described in this disclosure. CNLP device 22 may maintain a number of interconnected language subsurfaces (denoted as "SS") 18A-18G ("SS18"). Language subsurfaces 18 may collectively represent a language, and together, each of language subsurfaces 18 may provide a portion (which may be distinct or overlapping portions) of the language. Each portion may specify a corresponding set of syntax rules and strings permitted for a natural language with which user 16 may interact to enter data 19 representing an input. CNLP device 22 may perform CNLP based on language subsurfaces 18 and data 19 to identify one or more intents 23, as described in more detail below. CNLP device 22 may output intent 23 to server 28, which may invoke one of execution platforms 24 associated with intent 23 and pass intent 23 to one of execution platforms 24 for processing.
[0024] The execution platform 24 may represent one or more platforms configured to perform various processes related to the identified intent 23. In the example of FIG. 1, each process may perform a different set of operations related to the database 26. In some examples, the execution platforms 24 may have processes corresponding to different categories, such as different categories of sales data analysis, health data analysis, or loan data analysis, forms of machine learning, etc. In some examples, the execution platform 24 may perform general data analysis that allows various different combinations of data stored in the database 26 to undergo complex processing and display in charts, graphs, etc. The execution platform 24 may process the intent 23 to obtain results 25 that the execution platform 24 may return to the server 28. The interface device 20 may generate a GUI 21 presenting the results 25, which are transmitted to the client device 14.
[0025] In this regard, execution platform 24 may generally represent different platforms that support applications to perform analysis of the underlying data stored in database 26, and the platform may provide extensible application development to accommodate evolving collection and analysis of data or to handle other tasks / intent. For example, execution platform 24 may include platforms such as Postgres (also referred to as PostgreSQL® and representing an example of a relational database that performs data loading and manipulation), TensorFlow® (which can perform machine learning with specialized machine learning engines), and Amazon Web Services (AWS) (which performs large-scale data analysis tasks that often utilize multiple machines, commonly referred to as the cloud).
[0026] Client device 14 may have a client 30 (which may be associated with a chatbot interface referred to as a “chat client 30”). Client 30 may represent a device configured to present interface 21 and allow input of data 19. Client 30 may run in conjunction with a browser, as a dedicated third-party application, as a first-party application, or as an integrated component of an operating system (not shown in FIG. 1 ) of client device 14.
[0027] Returning to natural language processing, a balanced form of natural language processing may be performed compared to other forms of natural language processing. Natural language processing may refer to processing in which the host device 12 attempts to process data 19 representing inputs (also referred to as "inputs 19" for ease of explanation) provided through conversational interactions with the client device 14. The host device 12 may dynamically prompt the user 16 for various inputs 19, may ask clarifying questions, may ask related questions, or may engage in dialogue-based user interaction to elicit the inputs 19. The user 16 may also enter inputs 19 as sentences or fragments, thereby establishing a simulated dialogue with the host device 12 to identify one or more intents 23 (which may also be referred to as "tasks 23").
[0028] The host device 12 may provide various interfaces 21 to present the dialogue. An example interface may function as a so-called "chatbot," which may be configured to attempt to mimic human nature, including personality, voice, preferences, disposition, etc., to establish a more conversational tone, thereby facilitating interaction with the user and receiving input more naturally. Examples of chatbots include "digital assistants" (which may also be referred to as "virtual assistants"), which are a subset of chatbots focused on a set of tasks dedicated to assisting (such as scheduling meetings, booking hotels, and scheduling food distribution).
[0029] There are several different language processing algorithms, some of which rely on machine learning, that are used to analyze the input 19 to identify the intent 23. However, natural language often does not follow a precise format, and different users have slightly different ways of expressing input that results in the same general intent 23, resulting in so-called "edge cases" that many natural language algorithms, including those that rely on machine learning, are not specifically programmed to address (or trained in the context of machine language). Machine learning based on natural language processing may value naturalness over predictability and accuracy, which more frequently encounters edge cases when the trained naturalness of a language differs from the user's perception of the language's naturalness. Such edge cases can be identified by the system and reported as not being understood or processed, which can frustrate the user. In contrast, the system may process an inaccurate understanding of the user's intent, resulting in undesirable or misleading behavior or results.
[0030] Other types of natural language processing algorithms used to analyze input 19 to identify intent 23 rely on keywords. While keywords based on natural language processing algorithms are precise and predictable, keywords based on natural language processing are imprecise in that they offer little nuance in describing different intents 23 from one another.
[0031] In other words, various natural language processing algorithms are included in two categories. In the first category, machine learning based algorithms of natural language processing rely on statistical machine learning processes such as deep neural networks and support vector machines. Both of these machine learning processes may suffer from limited ability to understand the nuances of user's speech. Furthermore, even if machine learning based algorithms enable various natural speeches for the same intent, such machine learning based algorithms are often unpredictable and interpret the same speech differently from each other in a series of views that make it difficult for developers and users to understand. In the second category, simple keyword based algorithms for natural language processing may match user's speech to a predefined set of keywords and search for related intents.
[0032] According to the techniques described in this disclosure, CNLP device 22 may analyze input 19 (which may comprise, by way of example, natural language statements that may be referred to as "utterances") while balancing accuracy, precision, and predictability. CNLP device 22 may make various design decisions in implementing an underlying linguistic surface (which is a collection of subsurfaces 18 or other ways of meaning "language"). The linguistic subsurfaces 18 may represent a set of potential user utterances from which server 28 can analyze (and, in more anthropomorphic terms, "understand") the intent of user 16.
[0033] Design decisions may negotiate trade-offs among competing priorities including accuracy (e.g., how often server 28 can interpret an utterance correctly), precision (e.g., the degree to which nuance is added to the utterance in expressing the intent of user 16), and naturalness (e.g., the degree to which different phrasings of an utterance can be varied that map to the same intent of user 16). CNLP techniques enable CNLP device 22 to parse input 19 (which may be referred to as an "utterance") without ambiguity, thereby potentially ensuring predictable and accurate interpretation of (by constraint) precise natural language utterance 19.
[0034] In operation, the CNLP device 22 may potentially expose selected ones of the language subsurfaces 18 to a first user (user 16 is considered for purposes of illustration) in a limited manner such that only selected ones of the language subsurfaces 18 are exposed.
[0035] The CNLP device 22 may receive input 19 via interface device 20 that matches portions of language provided by the exposed language subsurface, and process the input 19 to identify an intent 23 of the user 16 from a plurality of intents 23 related to the language. That is, when designing the CNLP device 22 in support of the server 28, the designer may select a set of intents 23 that the server 28 will support (in relation to supporting the input 19 via the CNLP device 22).
[0036] Additionally, CNLP device 22 may optionally increase the precision for each of intents 23 by supporting one or more entities. For illustrative purposes, consider a meeting schedule intent, which may have entities such as a time and / or venue intent associated with the meeting schedule, an intent of the frequency of each recurrence of the meeting schedule (if necessary), and an intent of the meeting participants to schedule (if necessary). CNLP device 22 may perform an interpretation process to extract any entities that occur in utterance 19 after identifying that utterance 19 belongs to a given one of the set of intents 23.
[0037] The CNLP device 22 may associate each of the intents 23 provided by the language 18 with one or more patterns. Each pattern supported by the CNLP device 22 may have one or more of the following configurations: a) A non-empty set of identifiers that may be present in an utterance in order to be parsed as belonging to this intent. Each identifier may be associated with one or more synonyms whose presence is treated as equivalent to the presence of the identifier. b) An arbitrary set of location entities, in which case CNLP device 22 parses the location entities based on where they occur relative to the identifier in the utterance. c) An arbitrary set of keyword entities, each associated with a keyword (and possible synonyms of the keyword), where these keyword entities occur in relation to each other anywhere in the utterance. The keyword entities are analyzed based on the occurrence of adjacent related keywords (before or after) in the utterance instead of the location of the keyword. d) any set of prepositional phrase entities associated with one or more prepositions (which may include phrases such as "for each"). The prepositional phrase entities may be analyzed based on the occurrence of the corresponding prepositional phrases. e) A set of ignored words, which refer to words that occur commonly in natural languages or that have little utility in interpreting an utterance, such as "the" and "a". f) Prompts, each optionally associated with each entity, providing both a description of the entity and a statement that the CNLP device 22 may use to query the user 16 and derive a value for the entity when one is not parsed from the utterance. g) A pattern statement that describes the relative order in which identifiers and entities may occur in the pattern.
[0038] As an example, consider that to schedule a meeting, CNLP device 22 may identify a pattern as follows: The identifiers may be "schedule" and "meeting," where the word "meeting" may have the synonym "appointment." CNLP device 22 may obtain meeting frequency as a potential entry from input 19 occurring in the form "schedule a daily meeting" or "schedule a weekly appointment." Alternatively, CNLP device 22 may obtain such statements as keyword entities (such as the keyword "frequency") as in "schedule a daily meeting" or "schedule a weekly appointment." CNLP device 22 may use prepositional phrases to analyze timing using the preposition "at," such as in "I want to schedule the meeting at 5 PM" or "schedule an appointment at noon."
[0039] The above example included several words that the CNLP device 22 may be programmed to ignore during parsing, including "a," "an," "the," "I," "want," "to," etc. The timing entity may also include a prompt such as "At what time would you like to have the meeting?", in which case the server 28 may initiate a questioning of the user 16 as to whether or not they specified a timing for the utterance 19. The pattern statement may state that this pattern requires the identifier "schedule" (or its synonym "appointment") to occur before "meeting" and all other entities.
[0040] Thus, CNLP device 22 may identify a pattern from a plurality of patterns associated with language 18, each of the plurality of patterns associated with a different one of the plurality of intentions 23. In this case, CNLP device 22 may identify an intention 23 of user 16 from a plurality of intentions associated with the portion of language based on the identified pattern.
[0041] The pattern may include an identifier, as described above. To identify the pattern, CNLP device 22 may analyze input 19 to identify the identifier and then identify the pattern based on the identifier. The pattern may include both an identifier and a location entity. In these examples, CNLP device 22 may analyze input 19 to identify the location entity and identify the pattern based on the identifier and the location entity.
[0042] Additionally, the patterns may include keywords, as described above, and CNLP device 22 may analyze input 19 to identify keywords and then identify patterns based on the keywords, as described in a later example.
[0043] A pattern may have an entity, as described above. When a pattern has an entity, CNLP device 22 may determine that input 19 corresponds to a pattern but does not have an entity. In response to determining that data representing the input corresponds to a pattern but does not have an entity, CNLP device 22 may interact with interface device 20 to output a prompt requesting data representing additional input identifying the entity. User 16 may input data 19 representing additional input specifying an entity (and which may be referred to as "additional input 19" for ease of expression). Interface device 20 may receive additional input 19 and pass additional input 19 to CNLP device 22, which may identify a pattern based on input 19 and additional input 19.
[0044] Below are several examples of how restriction analysis occurs in relation to different patterns of different data exploration and analysis tasks. The first example pattern, called 'load_data_from_file', shows a specification of the intent to load data from a file as follows:
number
[0045] In the above example, the pattern statement 'LOAD data from file <filename>' specifies the identifier LOAD. Any user utterance may contain or import the word load or its synonym upload to express this intent 23. The identifier is shown in all uppercase in the pattern statement.
[0046] As described above, the CNLP device 22 is a designated entity <filename>An entity is specified in each parentheses of the pattern statement. filename is identified as a location entity that must occur after the load keyword. The CNLP device 22 may parse the value of the filename location entity using a Filename() parser, which may be referred to as a parser that can read file names that contain certain characters. The Filename parser may verify whether a file with that name exists on the system.
[0047] The words "data", "from", "file", and "dataset" are useful for expressing intent in natural speech, but are not necessary for CNLP device 22 to parse useful aspects of the information (i.e., the intent to load file and filename entities). Thus, CNLP device 22 may ignore such words.
[0048] In an implementation of the above example, CNLP device 22 may ignore all words other than identifiers and entities that occur in pattern statements. CNLP device 22 may ignore additional words specified using the addnl_ignore field. CNLP device 22 may ignore a small number of other common English words in this implementation.
[0049] According to the above example, utterance 19 expressing "Load myfile.csv", utterance 19 expressing "Import data from the file myfile.csv", and utterance 19 expressing "Upload the dataset myfile.csv" all express the same intention.
[0050] The second example below shows a pattern "extract_date_parts" that corresponds to the intent 23 to extract parts such as "day", "month" and "year" from a data string in a dataset.
number
[0051] The above pattern statement specifies two identifiers, EXTRACT and FROM. Note that the word from was ignored in the previous example pattern, but in the second example pattern the CNLP device 22 is configured to identify FROM as an identifier.
[0052] The second pattern has three entities. The date_parts entity can be a list of parts that the user wants to extract from the data string. Since the date_parts entity is specified as a location entity, it may occur between the extract identifier and the from identifier in the utterance 19. The date parts that the user wants to extract can be taken from the list "day", "month", "year", etc., specified in the second example above. The CNLP device 22 may prompt the user 16 when any other value is specified in the list.
[0053] The Column entity in the second example above may be positional and may have a value that is the name of a column that is part of an existing data set stored in a corresponding one of the databases 26. The Column parser function (i.e., Column() in the above example) called by the CNLP device 22 to retrieve this value may identify which data set stored in the corresponding one of the databases 26 the user 16 intends to access, which data set stored in the corresponding one of the databases 26 the user 16 intends to correct a typos in a name specified by the user 16, etc.
[0054] A user 16 may use the names_list entity to specify a list of names for new rows that contain data parts extracted from a data column. The names_list entity is a keyword entity that is specified only when a user 16 specifies the keywords "names" or "calling".
[0055] CNLP device 22 may parse valid utterances using patterns including "Extract day, month and year from BirthDate" and "Extract month and year from BirthDate, calling them BirthMonth, BirthYear."
[0056] The third example shown below provides a pattern "plot_bubble_chart" that corresponds to the intent 23 of visualizing a dataset in the form of a bubble chart.
number
[0057] The third pattern statement shown above specifies the identifier PLOT, the identifier BUBBLE, and the identifier CHART. Both PLOT and CHART each have two synonyms.
[0058] This third pattern has four keyword entities that specify the columns to be used for the x-axis and y-axis of the CHART and the size and color of the BUBBLE. As in the previous example, the CNLP device 22 invokes the Column parser to read the column names and corrects any typos.
[0059] An example utterance of this pattern is "Plot a bubble chart with x-axis Year, y-axis Population using bubble color Continent and size of the bubble GDP."
[0060] The fourth example below provides a pattern "move_legend" that corresponds to the intent 23 to change the position of the chart's legend.
number
[0061] Above, the "only_after" field now introduced specifies that the field is meaningful to move the legend only after plotting the chart. Thus, user 16 may only invoke intent 23 after invoking one of the specified intents 23.
[0062] In a fifth example, we provide a pattern "show_loans" that is specific to the domain of lending loan analysis.
number
[0063] The fifth pattern may allow utterances such as "Show me the loans approved in 2016" and "Show me the loans approved in 2018 in the state of Wisconsin."
[0064] The fifth pattern illustrates how the language surface can be customized for a particular domain to be understood by the CLNP device 22. In some examples, the basic realization of the intent 23 described above may use a more generic intent such as filter_data, which may use language such as tables, rows, columns, etc.
[0065] The CNLP device 22 may provide a platform for running the pattern parser described above to identify distinct intents 23. The platform provided by the CNLP device 22 is extensible to allow for the development, improvement, addition or removal of pattern parsers. The CNLP device 22 may utilize an entity parser built into the pattern parser to extract various entities, as described above. When various entities are not specified in the input 19, the CNLP device 22 may invoke a prompt built into the pattern parser for the above example. In response to outputting the prompt, the CNLP device 22 may receive additional input 19 identifying the unspecified entities, thereby parsing the input 19 to identify patterns that may be related to intent 23.
[0066] In this manner, the CNLP device 22 may analyze the various inputs 19 to identify the intent 23. The CNLP device 22 may provide the intent 23 to the server 28, which may invoke one or more of the execution platforms 24 and pass the intent 23 to the execution platforms 24 in the form of patterns and associated entities, keywords, etc. The invoked ones of the execution platforms 24 may execute processing associated with the intent 23 to perform actions on corresponding ones of the database 26 and obtain results. The invoked ones of the execution platforms 24 may provide results 25 (of the execution of the actions) to the server 28, which may provide the results 25 via the interface 21 to the client device 14 that interacts with the host device 12 to enter the input 19.
[0067] Each pattern (examples of which are provided above) may be associated with a function (i.e., procedure) that can identify whether the pattern has been exposed to the user at this stage of the current user session. For example, the "plot_bubble_chart" pattern described in the third example above may be associated with a procedure that determines whether there is at least one data set that has been previously loaded by the user (possibly using the "load_data_from_file" pattern described in the first example above, or "load_data_from_database," which functions similarly but loads data from a database instead of a file). When such procedures are associated with each data visualization pattern of the system (such as "plot_histogram," "plot_line_chart," etc.), the data visualization pattern may be conceptualized as forming a linguistic surface.
[0068] Since these patterns are only exposed when using one of the pattern-loading data (forming the other linguistic subsurfaces), the CNLP device 22 may efficiently link linguistic subsurfaces to each other. Since the user can only execute utterances belonging to a data visualization linguistic subsurface after meeting the above requirements, the user is provided with a structure related to the so-called "thought process" in performing the task of interest, which allows the user to (naturally) discover the system's capabilities step by step, reducing the cognitive load during the discovery process.
[0069] Thus, the CNLP device 22 can facilitate better operation of the host device 12 that interacts with the user 16 according to a natural language interface such as a so-called "digital assistant" or "chatbot." Rather than wasting processing cycles trying to process ambiguous input that may have multiple different interpretations, by posing follow-up questions to clarify the exact meaning intended by the user with the input, the CNLP device 22 can process the input 19 more efficiently by limiting the available language to one or more subsurfaces 18. By reducing processing cycles, the host device 12 operates better, consumes less power, less state is created to consume less memory and utilize less memory bandwidth (both of which further reduce power consumption), and more processing bandwidth is preserved for other operations.
[0070] The CNLP device 22 may introduce different language subsurfaces 18 through auto-complete prompts, questions, or dynamic suggestion mechanisms, thereby exposing additional natural subsurfaces to the user in a more natural (i.e., interactive) manner. The natural exploration that occurs through linked subsurfaces can promote acceptability and natural learning of the language used by the CNLP technology and avoid frustration from frequently encountering edge cases that typically arise due to user inexperience due to insufficient understanding of the language in which the CNLP technology works. In this sense, the CNLP technology can balance naturalness, precision, and accuracy by allowing the user to naturally expose subsurfaces that utilize limited ambiguity in the language to allow for precision and accuracy in expressing intent to avoid ambiguous edge cases.
[0071] For example, consider a chatbot designed to perform various classes of data analysis, including loading and cleaning data, slicing and dicing data to answer various business-related questions, visualizing data to recognize patterns, and using machine learning to predict future trends. Using the techniques described herein, designers of such systems can specify a large language surface in which users can express intent corresponding to a variety of tasks, while at the same time limiting utterances to only those that may be ambiguously understood by the system, thereby avoiding edge cases. Furthermore, by using an autocomplete mechanism, the language surface can be tailored to ensure that even novice users can focus on the specific task they want to perform without being overwhelmed by all the other capabilities of the system. For example, when a user begins to express an intent to plot a chart summarizing data, the system can suggest various chart forms from which the user can choose. When the user selects a chart form (e.g., a line chart), the system suggests axes, colors, and other options that the user can configure.
[0072] A system designer can specify the language subsurfaces (e.g., data loading utterances, data visualization utterances, and machine learning utterances) and the conditions under which they are exposed to the user. For example, a data visualization subsurface may be exposed only when a user loads some data into the system, and a machine learning subsurface may be exposed only when the system designer recognizes that the user is aware of subtleties and pitfalls in building and interpreting machine learning models. That is, this process of gradually revealing details and complexities in natural language utterances extends both among and within the language subsurfaces.
[0073] Taken together, CNLP techniques can be used to build systems with easy-to-use user interfaces (e.g., potentially with little training and limited cognitive load) that programmatically recognize diverse intents with high accuracy to support users with diverse needs and levels of knowledge. These techniques thus enable new system designs that achieve a balance between capability and usefulness that is difficult or impossible to achieve.
[0074] FIG. 2 illustrates an example interface 21A presented by an interface device 20 of a host device 12 having a plurality of different applications 100A-100F executed by an execution platform 24. Application 100A illustrates a generic chatbot interface for performing data analysis on one or more of the databases 26. Application 100B illustrates a loan analysis application for analyzing loan data stored in one or more of the databases 26. Application 100C illustrates a sales manager productivity application for analyzing sales manager productivity stored in one or more of the databases 26. Application 100D illustrates a medical cost analysis application for analyzing medical cost data stored in one or more of the databases 26. Application 100E illustrates a scientific data analysis application for analyzing experimental data regarding the prevalence of different mosquito species collected by a scientific research group and stored in one or more of the databases 26. Application 100F illustrates a machine learning application for performing machine learning on data stored in one or more of the databases 26.
[0075] 3A-3H are diagrams illustrating interfaces 21B-21H presented by an interface device of a host device illustrated in FIG. 1 that facilitates sales manager productivity analysis via a sales manager productivity application illustrated in FIG. 2 according to various aspects of the CNLP technology described in this disclosure. In the example of FIG. 3A, interface 21B includes a text display portion 200 that displays a dialogue and a result display portion 202 that displays a result 25. Text display portion 200 includes a text input area where user 16 interacts to enter input 19 as illustrated in FIG. 3A. Result display portion 202 displays result 25 in response to identifying intent associated with the 'PLOT a BUBBLE CHART' pattern. That is, result display portion 202 displays a bubble chart showing win / loss rates of deal owners in association with sales manager productivity application 100C illustrated in FIG. 2.
[0076] In Fig. 3B, the interface device 20 shows an interface 21C in response to the user 16 selecting a bubble 250 in the bubble chart shown in the results display portion 202 shown in interface 21B of Fig. 3A. In response to the selection of the bubble 250, the server 28 may interact with the corresponding execution platform 24 to obtain results 25 related to the opportunity owner identified as "Jennifer Keller". The interface device 20 generates or obtains the interface 21C having a win / loss metrics element 252 and provides the interface 21C to the user 16 via the client 30.
[0077] In the example of FIG. 3C, the interface device 20 displays the interface 21D in response to the user 16 entering the input 19 as the text "Show" in the text entry area 300 of the text display portion 200. The server 28 may receive the input 19 and analyze the input 19 to automatically perform an autocomplete operation to expose one of the language subsurfaces 18 indicated by an autocomplete entry shown in an autocomplete display area 302 overlaid on the text display area 200. Although not shown in the example of FIG. 3C, the server 28 may make a suggestion to expose one of the language subsurfaces 18, the suggestion differing from the autocomplete entry in that the input 19 based on the autocomplete entry is not provided by the user 16 (the suggestion may expose the entire portion of the language corresponding to the exposed one of the language subsurfaces, whereas the autocomplete entry may show only a subset of the portion of the language related or consistent with the input 19).
[0078] In the example of FIG. 3D , the interface device 20 presents the interface 21E in response to the user 16 entering an input 19 specifying “Show me the ratio of wins to losses for each state” as shown in the recorded interaction area 350. In response to entering the input 19 specifying “Show me the ratio of wins to losses for each state”, the server 28 may interact with the corresponding execution platform 24 to obtain the results 25 that are displayed in a table 352 in the results display portion 202. The interface device 20 may generate or obtain the interface 21E having the table 352 and provide the interface 21E to the user 16 via the client 30.
[0079] In the example of FIG. 3E , the interface device 20 presents the interface 21F in response to the user 16 entering an input 19 specifying “Show me the ratio of wins to losses in the year 2017” as shown in the recorded interaction area 500. In response to entering the input 19 specifying “Show me the ratio of wins to losses in the year 2017”, the server 28 may interact with the corresponding execution platform 24 to obtain the results 25 that are displayed in a table 502 of the results display portion 202. The interface device 20 may generate or obtain the interface 21F having the table 502 and provide the interface 21F to the user 16 via the client 30.
[0080] In the example of FIG. 3F, the interface device 20 presents an interface 21F in response to a user 16 entering an input 19 specifying "list all datasets" as shown in the recorded interaction area 500. In response to entering an input 19 specifying "list all datasets", the server 28 may interact with a corresponding execution platform 24 to obtain results 25 that are displayed in a table 552 of the results display portion 202. The interface device 20 may generate or obtain an interface 21G having the table 552 and provide the interface 21G to the user 16 via the client 30.
[0081] In the example of FIG. 3G, the interface device 20 presents an interface 21F in response to a user 16 entering an input 19 specifying "load data from the file npi.csv" as shown in the recorded interaction area 500, where "load data from the file npi.csv" corresponds to the load filename pattern described in more detail above.
[0082] In the example of FIG. 3H, interface device 20 presents interface 21H in response to user 16 entering input 19 specifying "S" as shown in text entry area 300. In response to entering input 19 specifying S", server 28 exposes one of language subsurfaces 28 and provides suggestions in suggestion display area 650 to enable user 16 to better understand the exposed one of language subsurfaces 28 and further learn patterns.
[0083] Taken in sequence, Figures 3H and 3C show how the design of the language surface can be combined with an auto-complete mechanism to potentially limit the cognitive load on the user. All patterns in the systems shown in Figures 3H and 3C start with an identifier. Identifiers may be judiciously reused between patterns to group identifiers that are meaningfully related to one another in the language sub-surface.
[0084] For example, all data visualization patterns start with the identifier "Plot". As shown in FIG. 3H, when starting a new utterance, the user indicates only the various start identifiers of the patterns. Thus, even if there are many different data visualization patterns (corresponding to different chart forms) supported by the system, only a single "Plot" identifier can be shown in the autocomplete suggestions, incorporating all of these patterns. Because the user in FIG. 3H selected to specify "S" as shown in the text entry area 300, the displayed list 650 excludes the "Plot" identifier (because the word "Plot" does not contain the letter "S"), thereby removing all data visualization patterns. In the absence of the CNLP mechanism described herein, the user would have had to process the significant data visualization patterns in this example simultaneously with many other patterns, such as "list all datasets" and "show win loss ratio" shown herein.
[0085] In a next step, when the user enters the word "Show" (or when the user selects the word "Show" from list 650 of FIG. 3H), the interface switches to the interface shown in FIG. 3C, where list 302 contains only different patterns that start with the identifier "Show". In particular, this list has utterances that correspond to the patterns "show win loss ratio" and "show average age".
[0086] In the context of the discovery process described above, occurrences corresponding to the group of data visualization patterns beginning with the identifier "Plot" may all be considered to belong to a language subsurface contained in a hierarchy of utterances. A particular subset of utterances corresponding to the "plot_bubble_chart" pattern may exist in this hierarchy below (i.e., contained within) the data visualization language subsurface. In this manner, the structure of the language surface naturally arranges a large set of all utterances recognizable by the system into a multi-level hierarchy through the use of identifiers and entity typification. This hierarchy of utterances (or language subsurface), in combination with an autocomplete mechanism, lends itself to a structured discovery process where the user only needs to focus on processing a small number of options at any one time (in the form of a dynamic suggestion list), and then descends this hierarchy one step at a time to increase the usability of the system.
[0087] Figure 4 is a block diagram illustrating a data structure 700 that may be used to represent the language surface 18 shown in the example of Figure 1 in accordance with various aspects of the techniques described in this disclosure. As shown in the example of Figure 4, the data structure 700 may have a subsurface root node 702 (SS-RN 702), a number of hierarchically arranged subsurface child nodes 704A-704N (SS-CN 704), 706A-706N (SS-CN 706), 708A-708N (SS-CN 708), and subsurface leaf nodes 710A-710N (SS-LN 710).
[0088] The subsurface root node 702 may represent a starting node that exposes a base subsurface, thereby limiting the exposure of subsurfaces that depend on it, such as SS-RN 704. Initially, the CNLP device 22 may expose to a new user 16 only a limited set of patterns, each having an identifier, location entity, and keyword entity, and ignored words, as described above. The CNLP device 22 may traverse from SS-RN 702 to one of SS-CN 407 based on context (which may mean one or a combination of the history of the current session, identified user capabilities, user preferences, etc.). Thus, the CNLP device 22 may traverse hierarchically arranged nodes (e.g., from SS-RN 702 to SS-CN 704 and SS-CN 706 / 708 to SS-LF 710) to balance discoverability and cognitive load.
[0089] As described above, all of the patterns in a language surface may start with an identifier, and these identifiers are reused among the patterns to group the identifiers into the language surfaces 702-710. For example, all data visualization intents start with "Plot". Upon starting to enter speech into the text box, the user 16 may see an autocomplete suggestion list that includes one first identifier (such as "Plot", "Load"). Once the user 16 fills in the first identifier, the CNLP device 22 may expose only other patterns that belong to the language subsurface for further filling in. In the above example, only when the user specifies only "Plot" as the first word, the CNLP device 22 invokes the autocomplete mechanism to suggest various chart formats (such as line charts, bubble charts, histograms, etc.). In response to the user 16 identifying one of the autocomplete suggestions (e.g., line chart), the CNLP device 22 may expose entities that the user 16 needs to specify to configure the chart (such as columns on axes, colors, sliders, etc.).
[0090] Conceptually, the set of all utterances (the language surface) may be considered as being decomposed into subsets (subsurfaces) arranged hierarchically (based on identifiers and entities of the utterances), where each level of the hierarchy has all utterances / patterns that form an underlying subset. By using the autocomplete mechanism, the user 16 navigates this hierarchy one step at a time from the top to the bottom. At each step, the user 16 may be shown only a small set of next steps as suggestions. This allows the CNLP device 22 to balance discoverability with cognitive load. In other words, this aspect of the technology is about how to structure patterns using a pattern specification language. The design choices here (such as "patterns start with an identifier") are not imposed by the pattern specification language itself.
[0091] Thus, a given linguistic subsurface is only exposed when the corresponding condition is met. For example, the CNLP device 22 may expose a data visualization subsurface only if there is at least one already loaded data set. This is achieved by associating with each pattern a function / procedure that looks at the current situation (this session's history, the user's capabilities and preferences, etc.) to determine if the pattern is currently exposed.
[0092] Figure 5 is a block diagram illustrating components of an example of the host device 12 and / or client device 14 shown in the example of Figure 1. In the example shown in Figure 5, the device 12 / 14 includes a processor 412, a graphics processing unit (GPU) 414, a system memory 416, a display processor 418, one or more integrated speakers 105, a display 103, a user interface 420, and a transceiver module 422. In examples where the source device 12 is a mobile device, the display processor 418 is a mobile display processor (MDP). In some examples, such as examples where the source device 12 is a mobile device, the processor 412, the GPU 414, and the display processor 418 may be formed as an integrated circuit (IC).
[0093] For example, an IC may be considered a processing chip within a chip package or may be a system on a chip (SoC). In some examples, two of the processor 412, GPU 414, and display processor 418 may be housed together in the same IC and the others may be housed in different integrated circuits (i.e., different chip packages), or all three may be housed in different ICs or the same IC. However, in examples where source device 12 is a mobile device, the processor 412, GPU 414, and display processor 418 may all be housed in different integrated circuits.
[0094] Examples of the processor 412, GPU 414, and display processor 418 include, but are not limited to, one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. The processor 412 may be a central processing unit (CPU) of the source device 12. In some examples, the GPU 414 may be dedicated hardware having integrated and / or discrete logic circuits that provide the GPU 414 with massively parallel processing capabilities suitable for graphics processing. In some examples, the GPU 414 may have general-purpose processing capabilities and may be referred to as a general-purpose GPU (GPGPU) when implementing general-purpose processing tasks (i.e., tasks not related to graphics). The display processor 418 may be dedicated integrated circuit hardware designed to retrieve image content from the system memory 416, compose the image content into image frames, and output the image frames to the display 103.
[0095] The processor 412 may execute various types of applications. Examples of applications 29 include a web browser, an email application, a spreadsheet, a video game, other applications that generate objects that are visible on a display, or any of the applications described in more detail above. The system memory 416 may store instructions for the execution of applications 20. Execution of one or more of the applications 20 on the processor 412 causes the processor 412 to reproduce image data of the image content to be displayed and audio data 21 to be reproduced. The processor 412 transmits image data of the image content to the GPU 414 for further processing based on instructions or commands that the processor 412 transmits to the GPU 414.
[0096] The processor 412 may communicate with the GPU 414 according to a particular application processing interface (API). Examples of such APIs include DirectX® by Microsoft®, OpenGL® or OpenGL ES® and OpenCL® by the Khronos Group, although aspects of the present disclosure are not limited to DirectX®, OpenGL®, or penCL® and may extend to other types of APIs. Additionally, the techniques described in this disclosure do not require functionality according to an API, and the processor 412 and GPU 414 may utilize any technique for communication.
[0097] System memory 416 may be memory of source device 12. System memory 416 may comprise one or more computer-readable media. Examples of system memory 416 include, but are not limited to, random access memory (RAM), electrically erasable programmable read-only memory (EEPROM), flash memory, or other medium that can be used to hold or store desired program code in the form of instructions and / or data structures and that can be accessed by a computer or processor.
[0098] In some examples, system memory 416 may include instructions that cause processor 412, GPU 414, and / or display processor 418 to perform functions described in this disclosure. Thus, system memory 416 may be a computer-readable storage medium that stores instructions that, when executed, cause one or more processors (e.g., processor 412, GPU 414, and / or display processor 418) to perform various functions.
[0099] System memory 416 may include a non-transitory storage medium. The term "non-transitory" means that the storage medium is not embodied by a carrier wave or a propagated signal. However, the term "non-transitory" should not be interpreted to mean that system memory 416 is not portable or that the contents are static. As an example, system memory 416 may be removed from source device 12 and moved to another device. As another example, memory substantially similar to system memory 416 may be inserted into device 12 / 14. In certain examples, non-transitory storage media may store data that changes over time (e.g., in RAM).
[0100] User interface 420 may represent one or more hardware or virtual (meaning a combination of hardware and software) user interfaces through which a user may interact with source device 12. User interface 420 may include physical buttons, switches, toggle switches, lights, or virtual versions thereof. User interface 420 may also include a physical or virtual keyboard, a touch interface such as a touch screen, haptic feedback, etc.
[0101] The processor 412 may include one or more hardware devices (including so-called "processing cores") configured to perform all or some of the operations described above for the various devices / modules / etc. The transceiver module 422 may represent a device configured to establish and maintain wireless connections between the devices 12 / 14. The transceiver module 422 may represent one or more receivers and one or more transmitters capable of wireless communication according to one or more wireless communication protocols.
[0102] In each of the various examples described above, the device 12 / 14 may perform the method or may comprise means for performing each step of the method described above with the device 12 / 14 as performing it. In some examples, the means may comprise one or more processors. In some examples, the one or more processors may represent special-purpose processors configured by instructions stored on a non-transitory computer-readable storage medium. In other words, various aspects of the techniques in each of the sets of encoding examples may provide a non-transitory computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to perform the method configured to perform the device 12 / 14.
[0103] 6 is a flow chart illustrating operation of the example host device of FIG. 1 in carrying out various aspects of the techniques described in this disclosure. As described above, CNLP device 22 may provide limited exposure to, and may expose only selected ones of language subsurfaces 18 to, an initial user (considered user 16 for purposes of illustration). Thus, CNLP device 22 provides a natural language grammar that specifies the grammar of a natural language as a hierarchical arrangement of multiple language subsurfaces 18. inclusion A language subsurface may be exposed (800) that specifies the hierarchy.
[0104] The CNLP device 22 may receive (802) via the interface device 20 an input 19 that matches a portion of the language provided by the exposed language subsurface, and process (804) the input 19 to identify an intent 23 of the user 16 from a plurality of intents 23 associated with the language. That is, when designing the CNLP device 22 that supports the server 28, a designer may select a set of intents 23 that the server 28 will support (in relation to supporting the parsing of the input 19 via the CNLP device 22).
[0105] Additionally, CNLP device 22 may optionally increase precision for each of intents 23 by supporting one or more entities, as described above. CNLP device 22 may extract any entities that occur in utterance 19 after performing a parsing process to identify that utterance 19 belongs to a given one of the set of intents 23. In other words, CNLP device 22 may determine whether an entity is present (806). When CNLP device 22 identifies that the input has one or more entities (YES in 806), CNLP device 22 may parse entities from the input (808).
[0106] After parsing entities from the input or when no entities are present (No at 806), the CNLP device 22 may determine whether the input has a pattern (810). When the CNLP device 22 identifies a pattern (Yes at 810), the CNLP device 22 may identify a pattern from the input (812). That is, the CNLP device 22 may associate each of the intentions 23 provided by the language 18 with one or more patterns. Thus, the CNLP device 22 may process the input 19 to identify a pattern from a plurality of patterns associated with the language 18, each of the plurality of patterns being associated with a different one of the plurality of intentions 23. The CNLP device 22 may then identify an intention 23 of the user 16 from a plurality of intentions associated with the portion of the language based on the identified entities and / or patterns (814).
[0107] In this manner, the CNLP device 22 may analyze the various inputs 19 to identify the intent 23. The CNLP device 22 may provide the intent 23 to the server 28, which may invoke one or more of the execution platforms 24, passing the intent 23 to the execution platforms 24 in the form of patterns and associated entities, keyboards, etc. The invoked one of the execution platforms 24 may execute operations associated with the intent 23 to obtain results 25 as well as perform operations associated with corresponding ones of the database 26 (816). The invoked one of the execution platforms 24 may output the results 25 (e.g., provide the results 25 to the server 28, which may provide the results 25 via the interface 212 to the client device 14 that interacts with the host device 12 to receive the input 19) (818).
[0108] In this regard, various aspects of the technology are directed to the following.
[0109] 1. A constrained natural language framework that describes patterns that can be analyzed unambiguously by an algorithm (executed by a computing device such as that shown in FIG. 4). The analysis may involve both categorization of the user's intent 23 and extraction of relevant entities present in the utterance 19.
[0110] 2. A parser generator algorithm (executed by a computing device such as that shown in FIG. 4) that synthesizes an intent recognizer and intent extractor based on one or more patterns in the above framework.
[0111] 3. A mechanism for eliciting a user response that includes values of entities required by the server 28 to process the intent but not included in the user's utterance 19.
[0112] 4. A verification algorithm (executed by a computing device such as that shown in FIG. 4) that ensures that the entities extracted from the utterance 19 have some meaning. For example, the timing in the meeting-scheduler example above is "5pm" or "noon", but not "Wisconsin".
[0113] 5. A static checking algorithm (executed by a computing device such as that shown in FIG. 4) that ensures that patterns associated with different intents 19 do not conflict with each other by selecting an identical set of intents 23. Such an algorithm ensures that an utterance 19 is always parsed unambiguously.
[0114] 6. A mechanism for automatically generating or augmenting lists of synonyms based on machine-readable dictionaries or thesauruses such as WordNet®.
[0115] 7. An auto-complete mechanism that suggests or recommends completions for partial utterances 19 that a user may provide in a text-based user interface. The auto-complete mechanism may rank completions based on pure syntactic ranking (based only on the similarity of the partial utterance 19 to the pattern-based potential completions), a statistical ranking scheme (based on the frequency and order of use of the intents used by the user), or a combination thereof.
[0116] 8. A discovery mechanism that allows a user 16 to obtain a list of intents 23 and patterns that the list of intents 23 supports from the server 28, and optionally filters the list to only entities that are relevant to predefined search terms that the user 16 may select.
[0117] 9. A discovery mechanism by which the user can obtain from the server 28 a list of entities relevant to the intent 23 and the extent to which such entities are included in the utterance 19.
[0118] 10. An ambiguity resolution mechanism that allows the server 28 designer / developer to include a custom handler to process the utterance 19 when the intent 23 of the user utterance 19 is unclear (ambiguous), potentially due to the occurrence of only a subset of identifiers common to multiple patterns.
[0119] 11. A mechanism for maintaining the context of a dialogue (including but not limited to the history of utterances 19 previously made by the user in this session or possibly other sessions) and inferring the value of an entity based on the context. For example, after making the statement "Send an email to John...", a user may make the utterance "schedule an appointment with him". The parser (e.g., CNLP device 22) infers that "John" intends to attend a meeting.
[0120] 12. A mechanism that enables advanced patterns, which transform / rephrases a given utterance 19 into a phrase that can be parsed by other patterns. For example, an advanced pattern may transform an utterance 19 of the form "I would like to set up an appointment" into the utterance "schedule an appointment," which can be parsed using the meeting-scheduler pattern in the example above. Such advanced patterns can be used to systematically improve the naturalness of a user's utterance 19 that can be accurately parsed by the CNLP device 22.
[0121] 13. Mechanisms for augmenting restricted natural language with other approaches (including conventional keyword-based or machine learning-based methods or other heuristic-based methods) to process utterances 19 that cannot be fully or partially processed by the CNLP device 22. For example, a parser based on a deep neural network may be trained to parse utterances 19 that are analyzed as belonging to the intent of meeting-scheduler based on patterns, but whose entities cannot be accurately extracted by the CNLP device 22.
[0122] 14. A mechanism that allows a given subset of patterns (forming the linguistic surface) to be parsed by the pattern parser of the CNLP device 22 only if they are not covered by given previous patterns. For example, the "schedule meeting" pattern mentioned above may not cover "change frequency" or "email attendees". "Not covering" here means that the latter set of patterns can only be uttered by the user (and recognized by the parser) after the user has made an utterance 19 associated with the "schedule meeting" pattern (in other words, the user 16 needs to schedule the meeting before he can change the frequency or send emails to the attendees). Such a mechanism can also be used to support users with different levels of expertise / sophistication. More advanced users can reveal patterns that only advanced users can use correctly.
[0123] Moreover, various aspects of the technology may be represented by the following terms:
[0124] Item 1A. A device configured to process data representing an input, the device comprising: one or more processors configured to: expose language subsurfaces that specify a natural language containment hierarchy that articulates a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of the language subsurfaces specifying a corresponding set of syntactic rules and strings permitted in a natural language with which a user may interact to enter data representing the input; receive data representing the input that matches a portion of the language provided by the exposed language subsurfaces; process the data representing the input to identify a user intent from a plurality of intents associated with the portion of the language; and perform processing associated with the identified intent to perform an action; and a memory configured to store the data representing the input.
[0125] Item 2A. The device of item 1A, wherein the one or more processors are configured to expose only a language subsurface of the plurality of language subsurfaces.
[0126] Clause 3A. The device of any combination of clauses 1A or 2A, further configured to: determine that the user can evoke a plurality of intentions associated with portions of language within a threshold; in response to determining that the user can evoke a plurality of intentions, expose a second language subsurface of the plurality of language subsurfaces, the second language subsurface providing a second portion of language with which the user can interact to enter second data representing a second input; receive second data representing the second input matching the second portion of language provided by the exposed second language subsurface; process the second data representing the second input to identify a second intention of the user from the second plurality of intentions associated with the second portion of language; and perform processing associated with the identified second intention to perform a second operation.
[0127] Item 4A. The device of any combination of items 1A-3A, wherein the one or more processors are further configured to present an interface having a text input area that automatically provides one or more suggestions for exposing a language subsurface.
[0128] Clause 5A. The device of any combination of clauses 1A-4A, wherein the one or more processors are further configured to present an interface having a text entry region that automatically performs an autocomplete operation to expose a language subsurface.
[0129] Clause 6A. The device of any combination of clauses 1A-5A, wherein the language subsurface comprises a first language subsurface, the first language subsurface specifying a transition to a second language subsurface of the plurality of language subsurfaces, and the one or more processors are further configured to expose a second language subsurface of the plurality of language subsurfaces in response to second data from the user identifying the transition, the second language subsurface providing a second portion of the language with which the user can interact to input second data representing a second input.
[0130] Clause 7A. The device of clause 6A, wherein the one or more processors are further configured to present an interface having a text entry area that automatically performs an autocomplete operation to facilitate entry of data identifying the transition.
[0131] Clause 8A. The device of clause 6A, wherein the one or more processors are further configured to receive second data representing a second input matching a second portion of language provided by the exposed second language subsurface, process the second data representing the second input to identify a second intent of the user from a second plurality of intents associated with the second portion of language, and perform a second process associated with the identified second intent to perform a second operation.
[0132] Clause 9A. The device of any combination of clauses 1A-8A, further configured to: process the data representing the input to identify a pattern from a plurality of patterns associated with the language, each of the plurality of patterns associated with a different intent of the plurality of intents, and identify the user's intent from the plurality of intents associated with the portion of the language based on the identified pattern.
[0133] Clause 10A. The device of clause 9A, wherein the pattern has an identifier, and the one or more processors are further configured to analyze the data representing the input to identify the identifier, and identify the pattern based on the identifier.
[0134] Item 11A. The device of item 10A, wherein the pattern has both an identifier and a location entity, and the one or more processors are further configured to analyze data representing the input to identify the location entity, and identify the pattern based on the identifier and the location entity.
[0135] Item 12A. The device of any combination of items 9-11, wherein the pattern has a keyword, and the one or more processors are further configured to analyze the data representing the input to identify the keyword, and identify the pattern based on the keyword.
[0136] Clause 13A. The device of any combination of clauses 9A-12A, wherein the pattern has an entity, and the one or more processors are further configured to determine that the data representing the input corresponds to the pattern but does not have the entity, and in response to determining that the data representing the input corresponds to the pattern but does not have the entity, output a prompt requesting data representing additional input identifying the entity.
[0137] Clause 14A. The device of clause 13A, wherein the one or more processors are further configured to receive data representing additional input identifying the entity, and identify a pattern based on the data representing the input and the data representing the additional input.
[0138] Clause 15A. The device of any combination of clauses 1A to 14A, wherein the one or more processors are further configured to obtain a result of execution of the operation and provide the result to a client that interacts with the device via the interface to input data representing the input.
[0139] Item 16A. A method of processing data representing an input, comprising: exposing a language subsurface specifying a natural language containment hierarchy that articulates a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of the language subsurfaces specifying a corresponding set of syntactic rules and strings permitted for a natural language with which a user may interact to enter data representing the input; receiving data representing the input that matches a portion of the language provided by the exposed language subsurface; processing the data representing the input to identify a user intent from a plurality of intents associated with the portion of the language; and performing processing associated with the identified intent to perform an action.
[0140] Item 17A. The method of item 16A, wherein exposing the language subsurface comprises exposing only the language subsurface of the plurality of language subsurfaces.
[0141] Clause 18A. The method of any combination of clauses 16A and 17A, further comprising: determining that the user can evoke a plurality of intentions associated with a portion of language within a threshold; and in response to determining that the user can evoke a plurality of intentions, exposing a second language subsurface of the plurality of language subsurfaces, the second language subsurface providing a second portion of language with which the user can interact to input second data representing a second input; receiving second data representing a second input that matches the second portion of language provided by the exposed second language subsurface; processing the second data representing the second input to identify a second intention of the user from the second plurality of intentions associated with the second portion of language; and performing processing associated with the identified second intention to perform a second operation.
[0142] Clause 19A. The method of any combination of clauses 16A-18A, further comprising presenting an interface having a text entry area that automatically provides one or more suggestions for exposing a language subsurface.
[0143] Clause 20A. The method of any combination of clauses 16A-19A, further comprising presenting an interface having a text entry region that automatically performs an autocomplete operation to expose a language subsurface.
[0144] Clause 21A. The method of any combination of clauses 16A-20A, further comprising: exposing a second language subsurface of the plurality of language subsurfaces in response to second data from the user identifying the transition, the second language subsurface of the plurality of language subsurfaces providing a second portion of the language with which the user can interact to input second data representing a second input.
[0145] Clause 22A. The method of clause 21A, further comprising presenting an interface having a text entry area that automatically autocompletes to facilitate entry of data identifying the transition.
[0146] Clause 23A. The method of clause 21A, further comprising receiving second data representing a second input matching a second portion of language provided by the exposed second language subsurface, processing the second data representing the second input to identify a second intent of the user from a second plurality of intents associated with the second portion of language, and performing a second process associated with the identified second intent to perform a second action.
[0147] Item 24A. The method of any combination of items 16A to 23A, wherein processing the data representing the input comprises processing the data representing the input to identify a pattern from a plurality of patterns associated with the language, each of the plurality of patterns associated with a different one of the plurality of intents, and identifying a user intent from a plurality of intents associated with the portion of the language based on the identified pattern.
[0148] Item 25A. The method of item 24A, wherein the pattern has an identifier, and processing the data representing the input to identify the pattern comprises analyzing the data representing the input to identify the identifier, and identifying the pattern based on the identifier.
[0149] Clause 26A. The method of clause 25A, wherein the pattern has both an identifier and a location entity, and analyzing the data representing the input to identify the identifier comprises analyzing the data representing the input to identify the location entity, and identifying the pattern based on the identifier and the location entity.
[0150] Clause 27A. The method of any combination of clauses 24A-26A, wherein the pattern has a keyword, and analyzing the data representing the input to identify the identifier comprises analyzing the data representing the input to identify the keyword, and identifying the pattern based on the keyword.
[0151] Clause 28A. The method of any combination of clauses 24A-27A, wherein the pattern has an entity, and analyzing the data representing the input to identify the identifier comprises: determining that the data representing the input corresponds to the pattern but does not have the entity; and in response to determining that the data representing the input corresponds to the pattern but does not have the entity, outputting a prompt requesting data representing additional input that identifies the entity.
[0152] Clause 29A. The method of clause 28A, wherein receiving data representing the input comprises receiving data representing additional input identifying an entity, and processing the data representing the input further comprises identifying a pattern based on the data representing the input and the data representing the additional input.
[0153] Item 30A. The method of any combination of items 16A to 29A, further comprising obtaining a result of execution of the operation and providing the result to a client interacting with the device via the interface to input data representing the input.
[0154] Item 31A. A device for processing data representing an input, comprising: means for exposing a language subsurface specifying a natural language containment hierarchy specifying a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of the language subsurfaces specifying a corresponding set of syntactic rules and character strings permitted for a natural language with which a user may interact to enter data representing the input; means for receiving data representing the input that matches a portion of the language provided by the exposed language subsurface; means for processing the data representing the input to identify a user intent from a plurality of intents associated with the portion of the language; and means for performing processing associated with the identified intent to perform an action.
[0155] Clause 32A. The device of clause 31A, wherein the means for exposing a language subsurface comprises means for exposing only a language subsurface of the plurality of language subsurfaces.
[0156] Clause 33A. The device of any combination of clauses 31A and 32A, further comprising: means for determining that the user is capable of recalling a plurality of intentions associated with portions of language within a threshold; and in response to determining that the user is capable of recalling a plurality of intentions, means for exposing a second language subsurface of the plurality of language subsurfaces, the second language subsurface providing a second portion of language with which the user may interact to input second data representing a second input; means for receiving second data representing a second input matching the second portion of language provided by the exposed second language subsurface; means for processing the second data representing the second input to identify a second intention of the user from the second plurality of intentions associated with the second portion of language; and means for performing processing associated with the identified second intention to perform a second operation.
[0157] Clause 34A. The device of any combination of clauses 31A-33A, further comprising means for presenting an interface having a text entry area that automatically provides one or more suggestions for exposing a language subsurface.
[0158] Clause 35A. The device of any combination of clauses 31A-34A, further comprising means for presenting an interface having a text entry area that automatically performs an autocomplete operation to expose a language subsurface.
[0159] Clause 36A. The device of any combination of clauses 31A-35A, wherein the language subsurface comprises a first language subsurface, the first language subsurface specifying a transition to a second language subsurface of the plurality of language subsurfaces, and in response to second data from the user identifying the transition, exposing the second language subsurface of the plurality of language subsurfaces, the second language subsurface further comprising means for providing a second portion of the language with which the user can interact to input second data representing a second input.
[0160] Clause 37A. The device of clause 36A, further comprising means for presenting an interface having a text entry area that automatically autocompletes to facilitate entry of data identifying the transition.
[0161] Clause 38A. The device of clause 36A, further comprising: means for receiving second data representing a second input matching a second portion of language provided by the exposed second language subsurface; means for processing the second data representing the second input to identify a second intent of the user from a second plurality of intents associated with the second portion of language; and means for performing a second process associated with the identified second intent to perform a second operation.
[0162] Clause 39A. A device of any combination of clauses 31A to 38A, comprising: means for processing the data representing the input to identify a pattern from a plurality of patterns associated with the language, each of the plurality of patterns associated with a different intent of the plurality of intents; and means for identifying a user intent from a plurality of intents associated with the portion of the language based on the identified pattern.
[0163] Clause 40A. The device of clause 39A, wherein the pattern has an identifier, and the means for processing the data representing the input to identify the pattern comprises means for analyzing the data representing the input to identify the identifier, and means for identifying the pattern based on the identifier.
[0164] Item 41A. The device of item 40A, wherein the pattern has both an identifier and a location entity, and the means for analyzing the data representing the input to identify the identifier comprises: means for analyzing the data representing the input to identify the location entity; and means for identifying the pattern based on the identifier and the location entity.
[0165] Clause 42A. The device of any combination of clauses 39A to 41A, wherein the pattern has a keyword, and the means for analyzing the data representing the input to identify the identifier comprises: means for analyzing the data representing the input to identify the keyword; and means for identifying the pattern based on the keyword.
[0166] Clause 43A. The device of any combination of clauses 39A to 42A, wherein the pattern has an entity, and the means for analyzing the data representing the input to identify the identifier comprises: means for determining that the data representing the input corresponds to the pattern but does not have the entity; and means for outputting a prompt requesting data representing additional input identifying the entity, in response to determining that the data representing the input corresponds to the pattern but does not have the entity.
[0167] Clause 44A. The device of clause 43A, wherein the means for receiving data representing the input comprises means for receiving data representing additional input identifying an entity, and the means for processing the data representing the input further comprises means for identifying a pattern based on the data representing the input and the data representing the additional input.
[0168] Clause 45A. A device of any combination of clauses 31A to 44A, comprising means for obtaining a result of execution of the operation, and means for providing the result to a client interacting with the device via an interface to input data representative of the input.
[0169] Item 46A. A computer-readable medium having stored thereon instructions that, when executed, expose, by one or more processors, a language subsurface specifying a natural language containment hierarchy that specifies a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of the language subsurfaces specifying a corresponding set of syntactic rules and strings permitted for a natural language with which a user may interact to enter data representing an input, receive data representing an input that matches a portion of the language provided by the exposed language subsurfaces, process the data representing the input to identify a user intent from a plurality of intents associated with the portion of the language, and perform processing associated with the identified intent to perform an action.
[0170] Clause 47A. A system configured to process data representing an input, comprising: a host device having one or more processors configured to expose language subsurfaces that specify a natural language containment hierarchy that articulates a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of the language subsurfaces specifying a corresponding set of syntactic rules and strings permitted for a natural language with which a user may interact to enter data representing the input; and a client device having one or more processors configured to receive data representing the input that matches portions of the language provided by the exposed language subsurfaces, and output data representing the input to the host device, wherein the one or more processors of the host device are further configured to process the data representing the input to identify a user's intent from a plurality of intents associated with the portions of the language, and perform processing associated with the identified intent to perform an action.
[0171] The described functions may be implemented in hardware, software, firmware, or a combination thereof. If implemented in software, the functions may be stored or transmitted as one or more instructions or code on a computer-readable medium and executed by a hardware-based processor. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium of expression such as a data storage medium. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, code and / or data structures to implement the techniques described in this disclosure. A computer program product may include a computer-readable medium.
[0172] Similarly, it should be understood that in each of the various examples described above, the receiving device 14 may perform the method or may comprise means for performing each step of the method that the receiving device 14 is configured to perform. In some examples, the means may comprise one or more processors. In some examples, the one or more processors may represent general-purpose processors configured by instructions stored on a non-transitory computer-readable storage medium. In other words, various aspects of the techniques in each of the encoding example sets provide a non-transitory computer-readable storage medium that stores instructions that, when executed, perform the method that the receiving device 14 is configured to perform by one or more processors.
[0173] By way of example, such non-transitory computer-readable storage media may include, but are not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, other magnetic disk storage, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. However, computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but contemplate non-transitory tangible media of expression. As used herein, "disk" includes compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where a disk typically reproduces data magnetically and a disc reproduces data optically using a laser. Combinations of the above should also be included within the scope of computer-readable media.
[0174] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general purpose microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Thus, the term "processor" as used herein may refer to the above structures or any other structure suitable for implementing the techniques described herein. Additionally, in some instances, the functionality described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding or combined in a combined codec. Also, the techniques may be fully implemented in one or more circuit or logic elements.
[0175] The techniques of this disclosure may be implemented in a variety of devices or equipment, including a mobile phone, an integrated circuit (IC) or a set of ICs (e.g., a chipset). Various components, modules or devices have been described in this disclosure to highlight functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require implementation in distinct hardware devices. As discussed above, the various devices may be combined in a codec hardware device or may be provided by a collection of interoperable hardware devices including one or more of the processors described above and appropriate software and / or firmware.
[0176] Various aspects of the technology have been described. These and other aspects of the technology are within the scope of the following claims.< / filename> < / filename>
Claims
1. A device for processing data representing input entered by a user, comprising: exposing to the user a language subsurface specifying a natural language containment hierarchy specifying a grammar for a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of said language subsurfaces specifying a corresponding set of syntax rules and character strings permitted for said natural language with which the user may interact to input data representing said input; receiving data representing the input that corresponds to a portion of language provided by the language subsurface exposed to a user; In response to determining that the data representative of the input includes a pattern among a plurality of patterns each associated with a different one of a plurality of intents associated with the portion of language, identifying an intent of the user based on the one pattern; performing a process associated with the identified intent to perform an action; one or more processors configured to a memory configured to store data representative of the input; A device comprising:
2. The device of claim 1 , wherein the one or more processors are configured to expose only a language subsurface of the plurality of language subsurfaces to a user.
3. The one or more processors: determining that a user can recall a plurality of intents associated with the portion of the language within a threshold; in response to determining that the user is able to recall the plurality of intents, exposing a second language subsurface of the plurality of language subsurfaces to the user, the second language subsurface providing a second portion of the language with which the user may interact to input second data representing a second input; receiving second data representing the second input that matches a second portion of the language provided by the second language subsurface exposed to a user; In response to determining that the data representative of the input includes a second pattern among a second plurality of patterns each associated with a different intent of a second plurality of intents associated with a second portion of the language, identifying a second intent of the user based on the second pattern; performing a process associated with the identified second intention to perform a second action; The device according to any one of claims 1 to 2, further configured as follows:
4. The device of any one of claims 1 to 3, wherein the one or more processors are further configured to present an interface having a text entry area that automatically provides one or more suggestions for exposing the linguistic subsurface to a user.
5. 5. The device of claim 1, wherein the one or more processors are further configured to present an interface having a text entry area that automatically performs an autocomplete operation to expose the language subsurface to a user.
6. The language subsurface comprises a first language subsurface; the first language subsurface designates a transition of the plurality of language subsurfaces to a second language subsurface; 6. The device of claim 1, wherein the one or more processors are further configured to: in response to second data from a user identifying the transition, expose a second language subsurface of the plurality of language subsurfaces to the user, the second language subsurface providing a second portion of the language with which the user can interact to input second data representing a second input.
7. The device of claim 6 , wherein the one or more processors are further configured to present an interface having a text entry area that automatically autocompletes to facilitate entry of data identifying the transition.
8. The one or more processors: receiving second data representing the second input that matches a second portion of the language provided by the second language subsurface exposed to a user; In response to determining that the data representative of the input includes a second pattern among a second plurality of patterns each associated with a different intent of a second plurality of intents associated with a second portion of the language, identifying a second intent of the user based on the second pattern; performing a second process associated with the identified second intent to perform a second action; The device of claim 6 further configured to:
9. The device of claim 1 , wherein the pattern comprises an identifier.
10. The device of claim 9 , wherein the pattern comprises both an identifier and a location entity.
11. The device according to any one of claims 1 to 10, wherein the pattern comprises a keyword.
12. The one or more processors: Obtaining a result of performing said operations; providing said results to a client that interacts with said device via an interface to input data representative of said input; The device according to any one of claims 1 to 11, further configured to:
13. A method for processing data representing input entered by a user, comprising the steps of: one or more processors exposing to a user a language subsurface specifying a natural language containment hierarchy specifying a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of said language subsurfaces specifying a corresponding set of syntax rules and character strings permitted for said natural language with which the user may interact to input data representing said input; receiving, by the one or more processors, data representing the input that corresponds to a portion of language provided by the language subsurface exposed to a user; in response to determining that the data representative of the input includes a pattern among a plurality of patterns each associated with a different one of a plurality of intents associated with the portion of language, identifying an intent of the user based on the one pattern; executing, by the one or more processors, a process associated with the identified intent to perform an action; and A method comprising:
14. 14. The method of claim 13, wherein the one or more processors exposing the language subsurface to a user comprises the one or more processors exposing only a language subsurface of the plurality of language subsurfaces to a user.
15. determining, by the one or more processors, that a user can recall a plurality of intents associated with the portion of the language within a threshold; in response to the one or more processors determining that the user is capable of recalling the plurality of intents, exposing a second language subsurface of the plurality of language subsurfaces to the user, the second language subsurface providing a second portion of the language with which the user may interact to input second data representing a second input; receiving, by the one or more processors, second data representing the second input that matches a second portion of the language provided by the second language subsurface exposed to a user; in response to determining that the data representative of the input includes a second pattern among a second plurality of patterns each associated with a different intent of a second plurality of intents associated with a second portion of the language, identifying a second intent of the user based on the second pattern; executing, by the one or more processors, a process associated with the identified second intent to perform a second action; and The method of any one of claims 13 to 14, further comprising:
16. 16. The method of claim 13, further comprising the one or more processors presenting an interface having a text entry area that automatically provides one or more suggestions for exposing the linguistic subsurface to a user.
17. 17. The method of claim 13, further comprising the one or more processors presenting an interface having a text entry area that automatically performs an autocomplete operation to expose the language subsurface to a user.
18. The language subsurface comprises a first language subsurface; the first language subsurface designates a transition of the plurality of language subsurfaces to a second language subsurface; 18. The method of any one of claims 13 to 17, further comprising the one or more processors exposing a second language subsurface of the plurality of language subsurfaces to a user in response to second data from a user identifying the transition, the second language subsurface providing a second portion of the language with which a user can interact to input second data representing a second input.
19. 20. The method of claim 18, further comprising the one or more processors presenting an interface having a text entry area that automatically autocompletes to facilitate entry of data identifying the transition.
20. receiving, by the one or more processors, second data representing the second input that matches a second portion of the language provided by the second language subsurface exposed to a user; and in response to determining that the data representative of the input includes a second pattern among a second plurality of patterns each associated with a different intent of a second plurality of intents associated with a second portion of the language, identifying a second intent of the user based on the second pattern. executing, by the one or more processors, a second process associated with the identified second intent to perform a second action; and 20. The method of claim 18, further comprising:
21. The method of claim 13 , wherein the pattern comprises an identifier.
22. The method of claim 21 , wherein the pattern comprises both an identifier and a location entity.
23. The method according to any one of claims 21 to 22, wherein the pattern comprises a keyword.
24. obtaining, by the one or more processors, a result of execution of the operations; and providing the results to a client, the one or more processors interacting with the device via an interface to input data representative of the input; The method of any one of claims 13 to 23, further comprising:
25. A device for processing data representative of input entered by a user, comprising: means for exposing to a user a language subsurface specifying a natural language containment hierarchy that articulates a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of said language subsurfaces specifying a corresponding set of syntax rules and character strings permitted for said natural language with which the user may interact to input data representing said input; means for receiving data representing said input that corresponds to a portion of language provided by said language subsurface exposed to a user; means for identifying a user's intent based on a plurality of patterns in response to determining that the data representative of the input includes a plurality of patterns each associated with a different one of a plurality of intents associated with the portion of language; means for performing processing associated with the identified intent to perform an action; A device comprising:
26. 26. The device of claim 25, wherein the means for exposing a language subsurface to a user comprises means for exposing only a language subsurface of the plurality of language subsurfaces to a user.
27. means for determining that a user can recall a plurality of intents associated with portions of the language within a threshold; means for exposing a second language subsurface of the plurality of language subsurfaces to the user in response to determining that the user is able to recall the plurality of intents, the second language subsurface providing a second portion of the language with which the user may interact to input second data representing a second input; means for receiving second data representing the second input that matches a second portion of the language provided by the second language subsurface exposed to a user; means for identifying a second intent of the user based on a second pattern in response to determining that the data representative of the input includes a second pattern among a second plurality of patterns each associated with a different intent of a second plurality of intents associated with a second portion of the language; means for executing a process associated with the identified second intent to perform a second action; The device of any one of claims 25 to 26, further comprising:
28. A device according to any one of claims 25 to 27, further comprising means for presenting an interface having a text entry area that automatically provides one or more suggestions for exposing the linguistic subsurface to a user.
29. A device according to any one of claims 25 to 28, further comprising means for presenting an interface having a text entry area that automatically performs an auto-complete operation to expose the language subsurface to a user.
30. The language subsurface comprises a first language subsurface; the first language subsurface designates a transition of the plurality of language subsurfaces to a second language subsurface; 30. A device as claimed in any one of claims 25 to 29, further comprising means for exposing a second language subsurface of the plurality of language subsurfaces to the user in response to second data from a user identifying the transition, the second language subsurface providing a second portion of the language with which the user can interact to input second data representing a second input.
31. 31. The device of claim 30, further comprising means for presenting an interface having a text entry area that automatically autocompletes to facilitate entry of data identifying the transition.
32. means for receiving second data representing the second input that corresponds to a second portion of the language provided by the second language subsurface exposed to a user; means for identifying a second intent of the user based on a second pattern in response to determining that the data representative of the input includes a second pattern among a second plurality of patterns each associated with a different intent of a second plurality of intents associated with a second portion of the language; means for performing a second process associated with the identified second intent to perform a second action; 31. The device of claim 30, further comprising:
33. The device of claim 25 , wherein the pattern comprises an identifier.
34. 34. The device of claim 33, wherein the pattern comprises both an identifier and a location entity.
35. The device according to any one of claims 33 to 34, wherein the pattern comprises a keyword.
36. means for obtaining a result of execution of said operation; means for providing said results to a client that interacts with said device via an interface to input data representative of said input; A device according to any one of claims 25 to 35, comprising:
37. One or more processors exposing to the user a language subsurface specifying a natural language containment hierarchy that articulates a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of said language subsurfaces specifying a corresponding set of syntax rules and character strings permitted for said natural language with which the user may interact to input data representing an input; receiving data representing the input that corresponds to a portion of language provided by the language subsurface exposed to a user; In response to determining that the data representative of the input includes a pattern among a plurality of patterns each associated with a different one of a plurality of intents associated with the portion of language, identifying an intent of the user based on the one pattern; performing processing associated with the identified intent to perform an action; A computer-readable recording medium storing a program for executing the above.
38. A system for processing data representative of input entered by a user, comprising: a host device comprising one or more processors configured to expose to a user a language subsurface specifying a natural language containment hierarchy that articulates a grammar of a natural language as a hierarchical arrangement of a plurality of language subsurfaces, each of said language subsurfaces specifying a corresponding set of syntax rules and character strings permitted for said natural language with which the user may interact to input data representing said input; receiving data representing the input that corresponds to a portion of language provided by the language subsurface exposed to a user; outputting data representative of said input to said host device; a client device comprising one or more processors configured to Equipped with The one or more processors of the host device: In response to determining that the data representative of the input includes a pattern among a plurality of patterns each associated with a different one of a plurality of intents associated with the portion of language, identifying an intent of the user based on the one pattern; performing a process associated with the identified intent to perform an action; The system further comprises:
Citation Information
Patent Citations
Method and Apparatus for Hierarchical Object Model Based Conditional Language Interpreter-Parser
JP2007514991A
Methods and systems for facilitating text input
JP2014505939A
Topic-based search guidance provided.
JP2014528134A
Message extension system and method
JP2017138954A
