Source: https://patents.google.com/patent/JP2009087345A/en
Timestamp: 2020-01-18 19:41:59
Document Index: 677054671

Matched Legal Cases: ['Application No. 2002', 'Application No. 2004', 'Application No. 2004', 'Application No. 2002', 'Application No. 2004', 'Application No. 2004']

JP2009087345A - Natural language based service selection system and method, and service query system and method - Google Patents
Natural language based service selection system and method, and service query system and method Download PDF
JP2009087345A
JP2009087345A JP2008249046A JP2008249046A JP2009087345A JP 2009087345 A JP2009087345 A JP 2009087345A JP 2008249046 A JP2008249046 A JP 2008249046A JP 2008249046 A JP2008249046 A JP 2008249046A JP 2009087345 A JP2009087345 A JP 2009087345A
JP2008249046A
JP5073630B2 (en
ヒュ ウェイソン
ザイ ホンウェイ
2007-09-30 Priority to CN200710180648.1 priority Critical
2007-09-30 Priority to CN 200710180648 priority patent/CN101398835B/en
2008-09-26 Application filed by Nec (China) Co Ltd, エヌイーシー（チャイナ）カンパニー， リミテッドＮＥＣ（Ｃｈｉｎａ）Ｃｏ．，Ｌｔｄ． filed Critical Nec (China) Co Ltd
2009-04-23 Publication of JP2009087345A publication Critical patent/JP2009087345A/en
2012-11-14 Publication of JP5073630B2 publication Critical patent/JP5073630B2/en
<P>PROBLEM TO BE SOLVED: To provide a natural language based service selection system which effectively processes incomplete queries. <P>SOLUTION: In this service selection system, a natural language based service selection system which complements incomplete queries includes a semantic analyzing device 20 which analyzes an incomplete query from a user semantically, a service selecting device 30 which complements the incomplete query based on the semantic-analyzed query so as to acquire the corresponding selected service, and a retrieving device 40 which retrieves an answer according to the selected service. <P>COPYRIGHT: (C)2009,JPO&INPIT
The present invention relates to the field of natural language processing, and more particularly, natural language based service selection that can supplement an incomplete query to obtain a selected service and provide a corresponding query answer. The present invention relates to systems and methods, and service query systems and methods.
Existing service selection systems based on natural language allow users to query various services in natural language, then select any service corresponding to the user's query from these services and feed back answers to the user .
There are several natural language based service selection systems that can parse and retrieve a service database according to a query entered by a user to select a service corresponding to a user query from a variety of services.
Patent Document 1 (Japanese Patent Application No. 2002-351913) discloses a history of user access to all types of Web services (especially, user names, longest waiting times, services, etc.) in order to avoid an excessive load on networks and services. In accordance with the type, the latest access time, etc.), a method is proposed in which a web service having an optimum waiting time can be selected from such web services.
Patent Document 2 (Japanese Patent Application No. 2004-054781) discloses a method of extracting a search keyword from a user query in a natural language, and then selecting a service corresponding to the search keyword from various services. is doing.
Patent Document 3 (Japanese Patent Application No. 2004-288118) selects not only a service corresponding to a user query but also other services related to the service from a plurality of services based on service register data provided by a service provider. Offers a way that can be.
Japanese Patent Application No. 2002-351913 Japanese Patent Application No. 2004-054781 Japanese Patent Application No. 2004-288118
However, only the complete natural language query from the user can be processed by the service selection system based on the natural language described in each of the above-mentioned patent documents. If the user enters an incomplete query, i.e., there are no critical parameters in the query, the system struggles to process such queries effectively, especially to find missing parts of the queries.
The present invention has been made to address the above problems. It is an object of the present invention to provide a natural language based service selection system and method, service query system and method that effectively process incomplete queries. In other words, even if the query entered by the user is not complete, the present invention can process it accordingly to obtain the selected service and the answer to the query.
According to the first aspect of the present invention, a semantic analysis device that semantically analyzes an incomplete query from a user and a corresponding analyzed service to obtain a corresponding selected service. A natural language based service selection system that supplements an incomplete query is provided that includes a service selection device that supplements a complete query and a search device that retrieves answers according to a selected service.
According to the second aspect of the present invention, a semantic analysis step for semantically analyzing an incomplete query from a user, and a query based on the semantically analyzed query to obtain a corresponding selected service. A natural language based service selection method for supplementing an incomplete query is provided that includes a service selection step for supplementing the complete query and a search step for searching for answers according to the selected service.
According to a third aspect of the present invention, a query receiving device that receives a user query, a semantic analysis device that parses the user query and semantically analyzes the query, and a corresponding selected service A query system comprising: a service selection device that supplements an incomplete query based on a semantically analyzed query; a search device that searches for an answer according to the selected service; and an answer transmission device that transmits an answer to a user Is provided.
According to a fourth aspect of the present invention, a query receiving step for receiving a user query, a semantic analysis step for parsing the user query and semantically analyzing the query, and a corresponding selected service are obtained. A query method comprising: a service selection step for supplementing an incomplete query based on the semantically analyzed query; a search step for searching for an answer according to the selected service; and an answer sending step for sending the answer to the user Is provided.
According to the fifth aspect of the present invention, a query receiving device that receives a user query, a semantic analysis device that parses the user query and semantically analyzes the query, and whether the user query is a complete user query. A determination device for determining whether to obtain a first selected service, a first service selection device for performing a process in a complete query, and a second selected service for obtaining a first selected service. A second service selection device that supplements the complete query; a search device that searches for an answer according to the first selected service or the second selected service; and an answer transmission device that sends the answer to the user. A query system is provided.
According to the sixth aspect of the present invention, a query receiving step for receiving a user query, a semantic analysis step for parsing the user query and semantically analyzing the query, and whether the user query is a complete user query A decision step for determining whether to obtain a first selected service, a first service selection step for performing a process in a complete query, and a second selected service for obtaining a first selected service. A second service selection step for supplementing the complete query; a search step for searching for an answer according to the first selected service or the second selected service; and an answer sending step for sending the answer to the user. A query method is provided.
According to the present invention, an incomplete query can be processed effectively.
Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. Throughout the drawings, like elements are given like reference symbols and numbers. In the following description, details of any known functions or configurations will not be repeated as they may obscure the subject matter of the present invention.
In general, existing query devices cannot process a query entered by a user if the query is incomplete, and therefore cannot provide the user with an expected query answer. However, the service selection system according to the present invention supplements an incomplete query from the user and can therefore retrieve the answer that the user desires. FIG. 1 shows a natural language based service selection system according to the present invention, which comprises a query receiving apparatus 10 for receiving a natural language query inputted by a user via a mobile terminal such as a mobile phone, and a construction thereof. In order to obtain the obtained semantic analysis result, the semantic analysis device 20 that analyzes the received natural language query, and the content that is missing in the incomplete query based on the semantic analysis result to obtain the selected service Service selection device 30 for determining and supplementing, search device 40 for searching for an answer according to the selected service, and answer transmission device 50 for transmitting the searched answer to the user terminal. The service selection system further includes a storage device 16 such as a hard disk that stores a service mapping rule base 160, a user query history base 162, and a fact base (facts base) 164.
FIG. 2 shows a flowchart of a natural language based service selection method. In step S <b> 101, the query reception device 10 receives a natural language query transmitted from a user via a mobile terminal such as a mobile phone, and transmits the query to the semantic analysis device 20. In step S102, the semantic analyzer 20 analyzes the received natural language query. FIG. 7 illustrates a known semantic analyzer including a query word segmentation unit 401 and a semantic markup unit 402 as well as serving to understand a user's natural language query to obtain a constructed semantic analysis result. A block diagram is shown. Query word segmentation unit 401 segments words in a natural language query by a word database, such as a dictionary, and then semantic marking unit 402 typically includes a requirement and a semantic analysis consisting of a set of parameters and parameter values. In order to generate a result, the segmentation results are semantically marked based on semantic knowledge. Each parameter corresponds to its parameter value. For example, referring to FIG. 7, if the natural language query input by the user is “How many times is the temperature in Beijing today?”, The natural language query is segmented by the query word segmentation unit 401, The word split result “temperature is several times in Beijing, today” is generated. This result is then subjected to semantic analysis by semantic marking unit 402. The semantic marking unit can learn, in particular, according to the semantic knowledge base, “Beijing represents a place” and “Today represents a date”. Accordingly, the semantic marking unit 402 marks “Beijing” in the natural language query as the parameter value of the first parameter “Place” and “Today” as the parameter value of the second parameter “Date”. Mark it. The semantic marking unit further extracts the question sentence “how many times is temperature” as a requirement. Finally, the result obtained is “Requirements: Temperature is several times, Location: Beijing, Date: Today”.
In step S103, the service selection device 30 analyzes the semantically parsed query in terms of completeness by using the service mapping rule base 160, the user query history base 162, or the fact base (facts base) 164, and then Supplement any missing content to obtain a selected service from various services provided from the service mapping rule base according to the user query. In step S104, the search device 40 searches for a corresponding answer based on the selected service. The search device, as shown in FIG.
(1) Information search, that is, finding a service provider corresponding to the service type in the selected service, and then transmitting service parameters in the selected service to the service provider that searches the corresponding search result and returns it; ,
(2) Only the answer corresponding to the user query can be returned via a method that includes answer generation, i.e. generating a final answer according to the search results returned by the service provider. If there are several service providers, each search result needs to be integrated. The integration can be performed in any relevant known manner, such as ranking these results based on the credit status of each service provider.
Referring to the above example of the user query "How many times is the temperature in Beijing today?" Based on the selected service "Service Type: Weather, Location: Beijing, Date: Today", the system is the China Meteorological Bureau, Find a service provider corresponding to the service type “weather” such as a weather query website, send the service parameter “location: Beijing, date: today” to the service provider, and receive and integrate the search results returned by them. be able to.
The search device 40 can also return other related answers, as shown in FIG. 25, in which case there is a step of searching for related services, i.e. searching for other services related to the user query. For example, when a user inquires about how to go to a location, in addition to providing a route, the system can provide information on related services, such as weather and traffic. This can be accomplished, for example, in a prior art manner by predefining a service association table that records the associations between different service types and then locating the relevant service type based on the service association table.
The retrieved answer is sent to the user terminal by the answer sending device 102 in step S105.
In the present invention, the service selection device 30 in the service selection system uses the service mapping rule base 160, the user query history base 162, or the fact base 164 to determine the missing content in the query, and as a result, the corresponding service is selected. Supplement the missing content to select. Accordingly, the following description is made with respect to the structure of the service mapping rule base 160, the user query history base 162, and the fact base 164 with respect to FIGS. A detailed description of the inventive service selection system will then be given in the context of a service mapping rule base, a user query history base, and a fact base.
The service mapping rule base 160 stores a plurality of sets of service mapping rules. Once a match is established between the user's natural language query and a service mapping rule in the service mapping rule base 160, the service corresponding to the rule can be located. FIG. 3 shows an example of the service mapping rule base 160. As shown in FIG. 3, one service mapping rule generally consists of a number, a requirement, a service type, and a service parameter. The requirement represents what is the question from the user query, i.e. which service is relevant to the answer expected by the user. The service type defines the service category to which the query question belongs. Service parameters describe the service type and service invocation interface, and the service provider can perform a search based on the service parameters. Each rule stored in the service mapping rule base 160 represents “a service type to which the query corresponds and a corresponding service parameter when the user query meets the specified requirements”.
Taking the first mapping rule in FIG. 3 as an example, since the requirement in the user query is “temperature is several times”, the query corresponds to the service type “weather”, and the service parameters are location and date. It is.
FIG. 4 shows an example of a method for generating a service mapping rule base. First, a set of actual user queries are collected from each service provider. A query corpus is then established from the collected user queries. Here, any semantic analysis method in the prior art can be used to analyze each user query and obtain a semantic analysis result for the purpose of establishing a query corpus. Finally, the similarity between the marking results of all queries for each service type is analyzed in the query corpus and any service mapping rules are extracted from the similarity and written to the service mapping rule base.
For example, frequently asked queries are first collected from weather service providers, such as “How many times is the temperature in Beijing today?” And “How many times is the temperature in Shanghai tomorrow?”. A query corpus is then established from the semantic analysis results obtained through semantic analysis, and all queries related to the service type “weather” are analyzed to eventually generate a service mapping rule for “weather” In addition, the common requirement “how many times the temperature is” and the common parameters “location” and “date” are extracted. While the above method automatically generates a service mapping rule base, this base can also be generated manually by combining various service mapping rules by an operator. Alternatively, the service mapping rule base can be generated semi-automatically, ie by automatically generating service mapping rules first and then correcting them manually.
FIG. 5 shows an example of a user query history base that stores all user query records. In general, a user query record consists of users, query questions, query times, service types, and query parameters, which may include a set of parameters each having a corresponding parameter value.
Taking the first user query record in FIG. 5 as an example, this indicates that Tom made the query “Where is the Beijing Hotel?” At 16:25 on August 2, 2007, in this case The service type is “location” and the parameter “location” has a value of “Beijing Hotel”.
The user query history is automatically generated. Specifically, each time processing on a single user query is completed, the system stores the user, query question, query time, and selected service as a single query record.
FIG. 6 shows an example of a fact base describing factual or default knowledge. As shown in FIG. 6, each fact typically consists of a number, service type, missing parameter, and default value, “If a user queries for a service and it is missing, the parameter defaults "What is the value of?" Taking the first fact as an example, this fact is “when a user queries for transportation services, if the user does not specify a time, the time is assumed to be now (ie, current) by default”. Means. The second fact represents that “when a user queries for a weather service, if the user has not specified a date, the date is by default assumed to be today (ie, today)”. The fact base is created primarily by manually combining the characteristics of each service.
FIG. 8 shows a schematic block diagram of a service selection device according to the present invention. Generally speaking, natural language queries entered by a user may be incomplete and may lack some required parameter values. For example, a user wants to query “How often is the temperature in Beijing today?” And “How do I get to Beijing Airport from Zhongguancun?” Enter the queries "How many times is the temperature in?" And "How do I get to Beijing Airport?", Which are missing the parameter values "Today" and "From Zhongguancun", respectively. Existing natural language-based service selection systems cannot handle such incomplete queries, and therefore the user cannot obtain answers related to the desired service. On the other hand, the service selection device according to the present invention can acquire the selected service by automatically or semi-automatically supplementing such an incomplete query. Therefore, even if the user inputs an incomplete query, the application of the service selection device according to the present invention can generate a complete query and provide a corresponding query answer to the user.
Next, referring to FIG. 8, the service selection device includes an input section (not shown) that receives a user-parsed user query, a service mapping rule base 160 to obtain the selected service, a user query history. An automatic service selection section 51, an automatic service selection section 51 that automatically supplements an incomplete query based on the user's natural language query using at least one of the base 162 or the fact base 164 When not getting the selected service, supplement the incomplete query through user interaction to get the selected service, or the result from the automatic service selection section 51 is Semi-automatic service selection that supplements an incomplete query if you think you are not following the query An output section for outputting section 52, and the selected service (not shown).
FIG. 9 shows a flowchart of a service selection method according to the present invention. In step S501, the service selection device receives a semantically analyzed query. In step S502, the automatic service selection section 51 uses at least one of the service mapping rule base 160, the user query history base 162, or the fact base 164 to obtain the selected service. Automatically supplement incomplete queries based on user natural language queries. When the automatic service selection section 51 has not acquired the selected service, or when the user thinks that the result from the automatic service selection section 51 does not conform to the query, in step S503, the semi-automatic service selection section 52 Supplement the incomplete query through user interaction to get the selected service. FIG. 10 shows a detailed block diagram of the semi-automatic service selection section 52 according to the present invention. The semi-automatic service selection section 52 compares an input unit 61 that receives the semantic analysis result obtained from the analysis of the natural language query, and compares the semantic analysis result with the service mapping rule in the service mapping rule base, and selects a matching service mapping rule. A missing content search unit 62 for finding and then extracting the service type and the missing service parameters in the query, a user interaction unit 63 for interacting with the user and obtaining feedback information from the user, and an important missing parameter from the user feedback information A parameter value extraction unit 64 for extracting a service type, a missing service parameter, and a missing parameter value to the semantic analysis result to generate an incomplete query It includes a query supplementary unit 65 to supplement, after the above supplementary, and an output unit 66 for outputting the selected service.
FIG. 11 shows a flowchart of the semi-automatic service selection method. In step S601, the input unit 61 receives a query subjected to semantic analysis in a natural language from a user terminal. In step S602, the missing content search unit 62 collates the semantic analysis result with the service mapping rule in the service mapping rule base, finds a matching service mapping rule, and determines a missing service parameter. Next, the missing content search unit 62 extracts the service type to which the query belongs and the service parameter missing in the query from the matching service mapping rules. Here, the matching method used by the missing content search unit is (1) the requirement of the service mapping rule is the same as the requirement of the semantic analysis result, and (2) the service parameter of the service mapping rule is the parameter of the semantic analysis result. Including including. In step S603, prompt information prompting the user to enter a missing parameter value based on the missing parameter found in step S602 is generated and transmitted to the user, and then feedback information is received from the user regarding the prompt information. . Since user feedback information may include some words in addition to missing parameter values, after receiving user feedback, missing parameter values must be extracted from the feedback information in step S604. Here, using the same semantic marking method used in the above semantic analysis, the user's feedback information can be marked semantically to find the word corresponding to the missing parameter as the missing parameter value. it can. In step S605, the query supplementation unit 65 puts the service type, the missing service parameter, and the missing parameter value in the semantic analysis result to supplement the incomplete query and generate the selected service. Finally, the output unit 66 outputs the selected service in step S606. In addition to the semi-automatic service selection described above via user interaction, automatic service selection can be performed.
FIG. 12 shows an example of automatic service selection. In this case, the user query is “How many times is the temperature in Beijing?” And the semantic analysis result is “Requirements: How many times is the temperature? : Beijing ".
* First step to search for missing content: The first rule in the service mapping rule base has the same requirement “how many times?” As in the semantic analysis result, and the service parameter “<location>;<Date> ”includes the parameter“ location ”of the semantic analysis result, so the first rule is considered a matching rule, the service type“ weather ”is extracted, and“ date ”is missing in the query It becomes a parameter.
* Second step of interacting with the user: Prompt information “How many days do you want to specify in the weather query?” Is generated and sent to the user, and then the user feedback “I want to inquire about today's weather” Receive.
* 3rd step of extracting parameter value: “Today” in the user feedback belongs to the missing parameter “date”, so this word is regarded as a missing parameter value.
* The last step to supplement the query: add service type “weather”, missing parameter “date”, and missing parameter value “today” to the semantic analysis results, then select the selected service “service type: weather, location: Beijing , Date: Today ”.
FIG. 13 shows a first embodiment of an automated service selection section 61 according to the present invention that supplements an incomplete natural language query from a user based on a current user query history base. The automatic service selection section 61 includes an input unit 71 that receives input semantic analysis results, a current user query history base 77 that stores all records of queries by users who are users of the current query, and semantic analysis. Match the result with the service matching rule in the service mapping rule base to find the matching service mapping rule, determine the missing service parameter, and from the matching service mapping rule, the service type to which the query belongs, and the missing service parameter in the query If the latest user query history is detected, that is, the last query made by the user is detected, and the missing parameter in the current query is included in the latest user query, If there is no parameter value extracted by the latest query detection unit 73 and the latest query detection unit 73 for extracting the missing parameter value, the current query query base is based on the history query including the missing parameter in the current query as a similar query. If a search is performed from 77 and a missing parameter is included in the current query, a similar query detection unit 74 that extracts a parameter value corresponding to the missing parameter in the current query from the similar query and the selected service are acquired. To that end, a query supplemental unit 75 that adds the service type, missing parameters, and parameter values to the semantic analysis query and an output unit 76 that outputs the selected service are included.
FIG. 14 shows a flowchart of the first embodiment of the automatic service selection method. In step S701, the input unit 71 receives a semantic analysis query in a natural language from a user. In step S702, the missing content search unit 72 compares the semantic analysis result with the service mapping rule in the service mapping rule base 160, finds the matching service mapping rule, and determines the missing service parameter. The missing content search unit then extracts the service type to which the query belongs and the service parameters missing in the query from the matching service mapping rules. Here, the collation method used by the missing content search unit 72 is the same as that used in the method shown in FIG.
In step S703, the latest query detection unit 73 searches for the last query performed by the user. Since the user may omit some words while running several queries in succession, detection of the latest query, ie the last query made by the user, may initially accelerate the query process . The detailed method is to search the current user query history base 77 for the latest query made by the user at a query interval set to be below a certain threshold, and the latest query is missing in the current query. To check whether the included parameter is included, and if the answer is Yes, extract the corresponding parameter value as a missing parameter value, then perform step S705, otherwise perform step S704 It is.
In step S704, the similar query detection unit 74 searches the current user query history base for a query similar to the current query, and if it contains a missing parameter in the current query, Extract parameter values corresponding to missing parameters in the query. Similar query determination means (1) if the service type obtained in the missing content detection step is the same as that of the historical query in the current user query history base and / or (2) the query parameter of the historical query means If the query parameters of the parsed query (preferably both queries have the same query parameter value) are included, the query is made to be considered a similar query.
In step S705, the service type, missing parameters, and parameter values are added to the semantic analysis query to obtain the selected service. Finally, in step S706, the selected service is output.
FIG. 15 shows an example of implementation of service selection. In this case, Tom who is a user makes a query “contact method”, and the semantic analysis result is “requirement: contact method”.
(1) First step of searching for missing contents: The second rule in the service mapping rule base has the same requirement “contact method” as that of the semantic analysis result, and there is no parameter in the semantic analysis result. The second rule is considered a matching rule, the service type “phone” is extracted, and the service parameter “location” is the missing parameter in the query.
(2) Second step of finding the latest query: The last query made by Tom is “Where is the Beijing Hotel?” And the query parameter is “Location: Beijing Hotel”, which is Since the missing parameter “location” is included, the corresponding parameter value “Beijing hotel” is extracted.
(3) If the latest query detection is successful, similar queries are not detected.
(4) The last step to supplement the query: add service type “phone”, missing parameter “location” and missing parameter value “Beijing hotel” to the semantic analysis results, and select the selected service “service type: phone, "Location: Beijing Hotel" to get.
FIG. 16 shows a second embodiment of the automatic service selection section according to the present invention.
This automated service selection section of the second embodiment supplements natural language queries from users based on other users' query history bases. These service selection sections include an input unit 81 that receives input semantic analysis results, another user's query history base 86 that stores all records of queries by other users, and semantic analysis results as service mapping rule bases. Search for missing service parameters by matching service mapping rules in, searching for matching service mapping rules, determining missing service parameters, and extracting the service type to which the query belongs and the missing service parameters in the query from the matching service mapping rules A similar query detection unit 8 that searches for a query similar to the current query from the unit 82 and another user's query history base 86 and extracts a parameter value from the similar query as a missing parameter value in the current query. When provided in order to obtain a selected service, service type, missing parameter, and query supplementary unit 84 to add a parameter value to the semantic analysis query, and an output unit 85 for outputting the selected service.
FIG. 17 shows a flowchart of the second embodiment of the automatic service selection method.
In step S801, the input unit 81 receives a semantic analysis query in natural language from the user. In step S802, the missing content search unit 82 compares the semantic analysis result with the service mapping rule in the service mapping rule base 160, finds the matching service mapping rule, and determines the missing service parameter. The missing content search unit then extracts the service type to which the query belongs and the service parameters missing in the query from the matching service mapping rules. Here, the collation method used by the missing content search unit 82 is the same as that used in the method shown in FIG.
In step S803, the similar query detection unit 83 searches another user's query history base for a query similar to the current query, and if it contains a missing parameter in the current query, Extract parameter values corresponding to missing parameters in the current query. Similar query determinations can be made when (1) the service type obtained in the missing content detection step is the same as that of the historical query in the query history base of other users and / or (2) query parameters of the historical query Is included such that the query is considered a similar query if it contains query parameters of a semantically parsed query (preferably both queries have the same query parameter value).
In step S804, the service type, missing parameter, and parameter value are added to the semantic analysis query to obtain the selected service. Finally, in step S805, the selected service is output.
FIG. 18 shows an example of implementation of service selection. In this case, the user makes a query “How many times is the temperature in Beijing?” And the semantic analysis result is “requirement: how many times the temperature is. Location: Beijing.
(1) First step of searching for missing content: The first rule in the service mapping rule base has the same requirement “how many times is the temperature?” As in the semantic analysis result, and the service parameter “<location >;<Date> ”includes the parameter“ location ”of the semantic analysis result, the first rule is regarded as a matching rule, the service type“ weather ”is extracted, and“ date ”is included in the query. Missing parameter.
(2) Second step of detecting a similar query: there is a query made by another user, John, “How many times is the temperature in Beijing today?”, Where the service type is “weather” Since the query parameter “location: Beijing, date: today” includes the parameter “location” in the semantic analysis result and both parameter values are “Beijing”, this query is considered a similar query. Since the similar query includes the missing parameter “date”, the corresponding parameter value “today” is extracted.
(3) The last step to supplement the query: add service type “weather”, missing parameter “date”, and missing parameter value “today” to the semantic analysis results, and select the selected service “service type: weather, location : Beijing, Date: Get today's.
FIG. 19 is a schematic diagram illustrating a third embodiment of an automatic service selection section according to the present invention.
This automated service selection section of the third embodiment supplements the natural language query from the user based on the fact base.
Such a service selection section matches the input unit 91 that receives the input semantic analysis result, the service analysis rule in the service mapping rule base with the input semantic analysis result, finds a matching service mapping rule, and sets the matching service mapping rule. A missing service parameter is determined based on the service type to which the query belongs and the missing service parameter in the query is extracted from the matching service mapping rule; A fact matching unit 93 that matches facts, finds matching facts, and extracts default values in the matching facts as missing parameter values in the current query; To get the service, it comprises service type, and the missing parameter query supplementary unit 94 to add, and a parameter value of the missing parameters semantic analysis query, and an output unit 95 for outputting the selected service.
FIG. 20 shows a flowchart of the third embodiment of the automatic service selection method according to the present invention.
In step S901, the input unit 91 receives a semantic analysis query in a natural language from a user. In step S902, the missing content search unit 92 compares the semantic analysis result with the service mapping rule in the service mapping rule base 160, finds a matching service mapping rule, and determines a missing service parameter. The missing content search unit then extracts the service type to which the query belongs and the service parameters missing in the query from the matching service mapping rules. Here, the collation method used by the missing content search unit 92 is the same as that used in the method shown in FIG.
In step S903, the fact matching unit 93 matches the semantic analysis result with each fact in the fact base 96, and extracts a default value in the matched fact as a missing parameter value in the current query, thereby matching the facts. Find out. The matching facts are determined by (1) the service type obtained in the missing content search step being the same as that of the fact in the fact base and / or (2) missing parameters in the fact are obtained in the missing content search step. If so, the fact is done so that it is considered a matching query.
In step S904, the service type, the missing parameter, and the parameter value of the missing parameter are added to the semantic analysis result in order to obtain the selected service. Finally, in step S905, the selected service is output.
FIG. 21 shows an example of implementation of service selection. In this case, the user makes a query “How many times is the temperature in Beijing?” And the semantic analysis result is “requirement: how many times the temperature is. Location: Beijing.
(2) Second step of fact matching: the service type of the second fact is “weather” and the missing parameter is “date”, so this fact is considered a matching fact, The default value “Today” is extracted from the fact.
FIG. 22 illustrates a natural language based service query system according to one embodiment of the invention. The difference between FIGS. 22 and 1 is that the natural language based service query system in FIG. 22 further includes a decision device 70 and a full query processor 80. The determination device 70 determines whether the query entered by the user is complete. If the query is determined to be incomplete, it is processed by the service selection device 30, otherwise it is forwarded to the full query processing device 80.
The determination device 70 compares the semantic analysis result with all service mapping rules to determine whether a rule that exactly matches the semantic analysis result of the user query can be found, and the matching rule is found. If it is, the semantic analysis result and the number of the matching rule are transmitted to the complete query processing device 80. Otherwise, the semantic analysis result is transmitted to the service selection device 30. Here, when the following conditions are satisfied, the rule can be regarded as a matching rule.
(1) The rule has the same requirements as those of the semantic analysis result.
(2) All service parameters required by the rule are included in the semantic analysis result.
As shown in FIG. 23, the user makes a query “How many times is the temperature in Beijing today?” And the semantic analysis result is “requirement: several times in temperature, place: Beijing, date: today”. It is. This result exactly matches the first rule in the service mapping rule base. This is because the requirements of the result are the same as those of the rule, and the result includes all the parameters “location” and “date” of the rule. Therefore, the semantic analysis result and the number of the matching rule are both transmitted to the complete query processing device 80.
Full query processor 80 is configured to process these complete (missing missing) queries to obtain the selected service. Find the matching rule from the service mapping rule base according to the number of the matching rule obtained by the decision unit, extract the service type, and then combine the semantic analysis results to generate the selected service. Here, the selected service typically includes one service type and a set of service parameters.
As an example of a user query “How many times is the temperature in Beijing today?”, This exactly matches the first rule in the service mapping rule base. Therefore, the service type “weather” of this rule is extracted, and the selected service is generated as “service type: weather, place: Beijing, date: today”.
In conclusion, the service query system described above can handle both incomplete and complete queries, and therefore can find answers corresponding to incomplete or complete queries.
FIG. 26 and FIG. 27 show schematic diagrams in which the service selection device according to the present invention is applied to a mobile terminal and an ASP (Active Server Page), respectively. As shown in FIG. 26, the semantic analysis device, the service selection device, and the search device can be incorporated into the mobile terminal together. Referring now to FIG. 27, the semantic analysis device, service selection device, and search device can also be incorporated into the ASP, thus providing a more convenient fast query service to the user.
Although the invention has been described with reference to the specific embodiments above, it is intended that the invention be defined by the appended claims other than these specific embodiments. It will be apparent to those skilled in the art that any modification or variation can be made without departing from the spirit and scope of the invention.
1 is a schematic diagram illustrating a natural language based service selection system according to the present invention. 4 is a flowchart illustrating a natural language based service selection method according to the present invention. It is a block diagram which shows an example of the service mapping rule base by this invention. It is a flowchart which shows the method of producing | generating a service mapping rule base. It is a block diagram which shows an example of the user query history base by this invention. It is a block diagram which shows an example of the fact base by this invention. It is a schematic diagram which shows a known semantic analyzer. It is a schematic diagram which shows the service selection apparatus by this invention. It is a schematic diagram which shows the service selection method by this invention. FIG. 6 is a block diagram illustrating a semi-automatic service selection section according to the present invention. It is a flowchart which shows the semiautomatic service selection method. It is a figure which shows an example of a semi-automatic service selection. FIG. 3 is a block diagram illustrating an automatic service selection section according to the first embodiment of the present invention. 4 is a flowchart illustrating an automatic service selection method according to the first embodiment of the present invention. An example of service selection is shown. FIG. 6 is a block diagram illustrating a service selection section according to a second embodiment of the present invention. 6 is a flowchart illustrating a service selection method according to a second embodiment of the present invention. Fig. 4 shows another example of service selection. FIG. 6 is a block diagram illustrating a service selection section according to a third embodiment of the present invention. 7 is a flowchart illustrating a service selection method according to a third embodiment of the present invention. Fig. 4 shows yet another example of service selection according to the present invention. 1 is a block diagram illustrating a natural language based service query system according to an embodiment of the present invention. FIG. FIG. 2 is a schematic diagram illustrating how a natural language based service query system performs a query process. 3 shows a flowchart of first and second embodiments of a search method. 3 shows a flowchart of first and second embodiments of a search method. 1 shows a service selection device used in a mobile terminal and an ASP. 1 shows a service selection device used in a mobile terminal and an ASP.
10: Query reception device 20: Semantic analysis device 30: Service selection device 40: Search device 50: Response transmission device 160: Service mapping rule base 162: User query history base 164: Fact base 51: Automatic service selection section 52: Semi-automatic Expression service selection section 63: User interaction unit 64: Parameter value extraction unit 65: Query supplement unit 71: Input unit 72: Missing content search unit 73: Latest query detection unit 74: Similar query detection unit 75: Query supplement unit 76: Output Unit 77: Current user query history base 81: Input unit 82: Missing content search unit 83: Similar query detection unit 84: Query supplemental unit 85: Output unit 86: Query history of other users Base 91: Input unit 92: Missing content search unit 93: Fact collation unit 94: Query supplement unit 95: Output unit 96: Fact base 70: Determination device 80: Complete query processing device
A natural language based service selection system that supplements incomplete queries,
A semantic analyzer that semantically analyzes incomplete queries from users;
A service selection device that supplements an incomplete query based on a semantically parsed query to obtain a corresponding selected service;
A natural language-based service selection system comprising: a search device that searches for an answer according to a selected service.
The service selection device includes a semi-automatic service selection unit that searches for missing contents in a query using a service mapping rule base and supplements the missing contents by interaction with a user to generate the selected service. The natural language based service selection system according to claim 1.
The semi-automatic service selection unit
A missing content search unit that matches the semantically analyzed query with a service mapping rule in the service mapping rule base to extract a service type to which the query belongs and a parameter that is missing in the query;
A user interaction unit that prompts the user to enter prompt information for parameter values corresponding to the missing parameters and receives feedback information including parameter values from the user;
A parameter value extraction unit for extracting parameter values from user feedback information;
The natural language of claim 2, comprising: a query supplemental unit that adds a service type, missing parameters, and parameter values to the semantically parsed query to generate the selected service. Based service selection system.
The missing content search unit is a matched service mapping rule,
The service mapping rule request is identical to the semantically parsed query request;
Service parameters of the service mapping rule include parameters of the semantically parsed query;
4. The natural language-based service selection system according to claim 3, wherein a service mapping rule that satisfies the following condition is searched from the service mapping rule base.
4. The natural language based service selection system according to claim 3, wherein the parameter value extraction unit retrieves parameter values corresponding to missing parameters by semantically marking user feedback information.
The service selection device is
A first auto that uses a service mapping rule base to search for missing content in the current query and supplements the missing content by searching the current user query history base to generate the selected service The natural language-based service selection system according to claim 1, further comprising a service selection unit.
The first automatic service selection unit is
A missing content search unit that matches the semantically parsed query with a service mapping rule in the service mapping rule base to extract a service type to which the current query belongs and a missing parameter in the current query;
A latest query detection unit that searches the current user query history base for a latest query including a missing parameter in the current query and extracts a parameter value corresponding to the missing parameter in the current query;
The natural language of claim 6, comprising: a query supplemental unit that adds a service type, missing parameters and parameter values to the semantically parsed query to generate the selected service. Based service selection system.
When the first automatic service selection unit has no parameter value extracted by the latest query detection unit, the history query including the missing parameter in the current query is searched as a similar query from the current user query history base. 7. The natural language-based service selection system according to claim 6, further comprising a similar query detection unit that extracts a parameter value corresponding to a missing parameter in the current query from the similar query.
The request in the service mapping rule is the same as the request for the semantically parsed query;
Service parameters in the service mapping rule include parameters of the semantically parsed query;
The natural language-based service selection system according to claim 7, wherein a service mapping rule that satisfies the following condition is searched from the service mapping rule base.
The similar query detection unit is a similar query, and the service type of the historical query is the same as the service type to which the current query belongs,
Query parameters of the historical query include query parameters of the semantically parsed query;
9. The natural language-based service selection system according to claim 8, wherein a history query satisfying the condition is searched from the current user query history base.
The service selection device searches for a missing content of a current query using a service mapping rule base, and retrieves a missing content by searching other user query history bases to generate the selected service. The natural language based service selection system according to claim 1, further comprising a second automatic service selection unit to supplement.
The second automatic service selection unit;
A similar query detection unit that searches a history query including a missing parameter in the current query from the other user query history base as a similar query, and extracts a parameter value corresponding to the missing parameter in the current query from the similar query When,
The natural language of claim 11, comprising a query supplemental unit that adds a service type, missing parameters and parameter values to the semantically parsed query to generate the selected service. Based service selection system.
The natural language-based service selection system according to claim 12, wherein a service mapping rule that satisfies the following condition is searched from the service mapping rule base.
The similar query detection unit is a similar query.
The service type of the historical query is the same as the service type to which the current query belongs,
The natural language-based service selection system according to claim 12, wherein a history query satisfying the condition is searched from the other user query history base.
The service selection device searches for missing content in a current query using a service mapping rule base and supplements the missing content by searching a fact base to generate the selected service. The natural language-based service selection system according to claim 1, further comprising an automatic service selection unit.
The third automatic service selection unit;
A missing content search unit that matches the semantically parsed query with a service mapping rule in the service mapping rule base to extract a service type to which the query belongs and a parameter that is missing in the query;
A fact matching unit that matches the semantically parsed query with facts in the fact base to find a matched fact and extracts a default value from the matched fact as a missing parameter value;
The natural language of claim 15, comprising: a query supplemental unit that adds a service type, missing parameters and parameter values to the semantically parsed query to generate the selected service. Based service selection system.
The natural language-based service selection system according to claim 16, wherein a service mapping rule satisfying the following condition is searched from the service mapping rule base.
The fact matching unit is a matched fact:
The service type of the fact is the same as the service type to which the query belongs,
The missing parameter in the fact is the same as the missing parameter in the query,
The natural language-based service selection system according to claim 16, wherein a fact satisfying the following condition is searched from the fact base.
The current user query history base, the other user query history base, or the fact base is used to search for missing contents in the current query using the service mapping rule base and generate the selected service. An automatic service selector that supplements missing content by searching;
If the selected service generated by the automatic service selector is not accurate, the service mapping rule base is used to search for missing content in the query and to interact with the user to generate the selected service The natural language-based service selection system according to claim 15, further comprising: a semi-automatic service selection unit that supplements content lost by
A natural language-based service selection method that complements incomplete queries,
A semantic analysis step that semantically analyzes an incomplete query from a user;
A service selection step that supplements an incomplete query based on a semantically parsed query to obtain a corresponding selected service;
A natural language-based service selection method comprising: a search step of searching for an answer according to the selected service.
The service selection step includes a semi-automatic service selection step that searches for missing content in a query using a service mapping rule base and supplements the missing content by user interaction to generate the selected service. 21. The natural language based service selection method according to claim 20, wherein:
The semi-automatic service selection step includes:
A missing content search step of matching the semantically analyzed query with a service mapping rule in the service mapping rule base to extract a service type to which the query belongs and a parameter missing in the query;
A user interaction step that prompts the user to enter prompt information for a parameter value corresponding to the missing parameter and receives feedback information including the parameter value from the user;
A parameter value extraction step for extracting a parameter value from user feedback information;
The natural language of claim 21, comprising a query supplementation step of adding a service type, missing parameters and parameter values to the semantically parsed query to generate the selected service. Based service selection method.
In the missing content search step, as a matched service mapping rule,
23. The natural language-based service selection method according to claim 22, wherein a service mapping rule that satisfies the following condition is searched from the service mapping rule base.
The natural language based service selection method according to claim 22, wherein the parameter value extraction step searches for parameter values corresponding to missing parameters by semantically marking user feedback information.
The service selection step includes:
A first auto that uses a service mapping rule base to search for missing content in the current query and supplements the missing content by searching the current user query history base to generate the selected service 21. The natural language based service selection method according to claim 20, further comprising a service selection step.
The first automatic service selection step comprises:
A missing content search step of matching the semantically parsed query with a service mapping rule in the service mapping rule base to extract a service type to which the current query belongs and a parameter missing in the current query;
A latest query detection step of searching a latest query including a missing parameter in the current query from the current user query history base, and extracting a parameter value corresponding to the missing parameter in the current query;
The natural language of claim 25, comprising: a query supplementation step of adding a service type, missing parameters and parameter values to the semantically parsed query to generate the selected service. Based service selection method.
When the first automatic service selection step does not have the parameter value extracted by the latest query detection step, the history query including the missing parameter in the current query is searched as a similar query from the current user query history base. 26. The natural language based service selection method according to claim 25, further comprising a similar query detection step of extracting a parameter value corresponding to a missing parameter in a current query from the similar query.
27. The natural language-based service selection method according to claim 26, wherein a service mapping rule that satisfies the following condition is searched from the service mapping rule base.
In the similar query detection step, as a similar query, the service type of the history query is the same as the service type to which the current query belongs,
28. The natural language-based service selection method according to claim 27, wherein a history query that satisfies the following condition is searched from the current user query history base.
The service selection step searches for missing contents of the current query using a service mapping rule base and searches for other contents of the user query history base to generate the selected service. 21. The natural language based service selection method according to claim 20, further comprising a second automatic service selection step to supplement.
The second automatic service selection step comprises:
A similar query detection step of searching a history query including a missing parameter in the current query from the other user query history base as a similar query, and extracting a parameter value corresponding to the missing parameter in the current query from the similar query When,
The natural language of claim 30 including a query supplementation step of adding a service type, missing parameters and parameter values to the semantically parsed query to generate the selected service. Based service selection method.
32. The natural language-based service selection method according to claim 31, wherein a service mapping rule that satisfies the following condition is searched from the service mapping rule base.
In the similar query detection step, as a similar query,
32. The natural language-based service selection method according to claim 31, wherein a history query that satisfies the following condition is searched from the other user query history base.
The service selection step uses a service mapping rule base to search for missing content in the current query, and supplements the missing content by searching the fact base to generate the selected service. 21. The natural language based service selection method according to claim 20, further comprising: an automatic service selection step.
The third automatic service selection step comprises:
A fact matching step of matching the semantically parsed query with facts in the fact base to find a matched fact and extracting a default value from the matched fact as a missing parameter value;
The natural language of claim 34, comprising: a query supplementation step of adding a service type, missing parameters and parameter values to the semantically parsed query to generate the selected service. Based service selection method.
36. The natural language-based service selection method according to claim 35, wherein a service mapping rule satisfying the following condition is searched from the service mapping rule base.
In the fact matching step, as a matched fact,
36. The natural language-based service selection method according to claim 35, wherein a fact satisfying the following condition is searched from the fact base.
The current user query history base, the other user query history base, or the fact base is used to search for missing contents in the current query using the service mapping rule base and generate the selected service. An automatic service selection step to supplement missing content by searching;
If the selected service generated by the automatic service selection step is not accurate, the service mapping rule base is used to search for missing content in a query and to interact with the user to generate the selected service 35. A natural language based service selection method according to claim 34, further comprising: a semi-automatic service selection step of supplementing contents lost by.
A query receiving device for receiving a user query;
A semantic analyzer that parses user queries and parses the queries semantically;
A search device for searching for answers according to the selected service;
A query system comprising: an answer transmission device that transmits an answer to a user.
A query receiving step for receiving a user query;
A semantic analysis step that parses the user query and parses the query semantically;
A search step for searching for answers according to the selected service;
An answer sending step for sending an answer to the user.
A determining device for determining whether the user query is a complete user query;
A first service selection device that processes in a complete query to obtain a first selected service;
A second service selection device that supplements the incomplete query to obtain a second selected service;
A search device for searching for answers according to a first selected service or a second selected service;
The determination device checks the semantically analyzed query against a service mapping rule in a service mapping rule base, and if it matches, sends a user query to the first service selection device. The query system according to claim 41, wherein the query system sends the second service selection device to the second service selection device.
43. The query system according to claim 42, wherein a match is determined according to the condition:
A decision step for determining whether the user query is a complete user query;
A first service selection step of performing a process in a complete query to obtain a first selected service;
A second service selection step that supplements the incomplete query to obtain a second selected service;
A search step for searching for answers according to a first selected service or a second selected service;
The determining step checks the semantically parsed query against a service mapping rule in a service mapping rule base, and if it matches, sends a user query to the first service selection step; 45. The query method according to claim 44, wherein the query method is sent to the second service selection step.
46. The query method according to claim 45, wherein a match is determined according to the condition:
JP2008249046A 2007-09-30 2008-09-26 Natural language based service selection system and method, service query system and method Expired - Fee Related JP5073630B2 (en)
CN200710180648.1 2007-09-30
JP2009087345A true JP2009087345A (en) 2009-04-23
JP5073630B2 JP5073630B2 (en) 2012-11-14
JP2008249046A Expired - Fee Related JP5073630B2 (en) 2007-09-30 2008-09-26 Natural language based service selection system and method, service query system and method
JP2013527959A (en) * 2010-04-21 2013-07-04 ヤフー！ インコーポレイテッド Selective addition of social aspects to web search
JP2014505939A (en) * 2011-01-05 2014-03-06 グーグル・インコーポレーテッド Method and system for facilitating text entry
JP2014085947A (en) * 2012-10-25 2014-05-12 Nippon Telegr & Teleph Corp <Ntt> Apparatus, method and program for answering question
JP2014106927A (en) * 2012-11-29 2014-06-09 Toyota Motor Corp Information processing system
JP2015517711A (en) * 2012-05-24 2015-06-22 アリババ・グループ・ホールディング・リミテッドＡｌｉｂａｂａ Ｇｒｏｕｐ Ｈｏｌｄｉｎｇ Ｌｉｍｉｔｅｄ Completing the application interface using search query keywords
JP2015185009A (en) * 2014-03-25 2015-10-22 Kddi株式会社 Information integration program, device and method compensating attribute value of integrated events
JP2016502696A (en) * 2012-10-11 2016-01-28 ベベオ， インコーポレイテッド Method for adaptive conversation state management with filtering operator applied dynamically as part of conversational interface
CN104951456B (en) * 2014-03-26 2018-07-24 上海智臻智能网络科技股份有限公司 A kind of method, apparatus and equipment for obtaining answer information
CN105677795B (en) * 2015-12-31 2019-09-06 上海智臻智能网络科技股份有限公司 Recommended method, recommendation apparatus and the recommender system of abstract semantics
CN105608218B (en) * 2015-12-31 2018-11-27 上海智臻智能网络科技股份有限公司 The method for building up of intelligent answer knowledge base establishes device and establishes system
CN106933875A (en) * 2015-12-31 2017-07-07 北京城市网邻信息技术有限公司 Data query method and device
CN105787134B (en) * 2016-04-07 2019-09-20 上海智臻智能网络科技股份有限公司 Intelligent answer method, apparatus and system
CN106503239A (en) * 2016-11-07 2017-03-15 上海智臻智能网络科技股份有限公司 A kind of method and apparatus of legal information inquiry
CN106682222B (en) * 2017-01-04 2019-06-14 上海智臻智能网络科技股份有限公司 More service response method, apparatus and question answering system for question answering system
JP2003015686A (en) * 2001-06-29 2003-01-17 Toshiba Corp Device and method for voice interaction and voice interaction processing program
CN101398835B (en) 2012-08-29