WO2021047169A1 - Information query method and apparatus, storage medium, and smart terminal - Google Patents
Information query method and apparatus, storage medium, and smart terminal Download PDFInfo
- Publication number
- WO2021047169A1 WO2021047169A1 PCT/CN2020/083561 CN2020083561W WO2021047169A1 WO 2021047169 A1 WO2021047169 A1 WO 2021047169A1 CN 2020083561 W CN2020083561 W CN 2020083561W WO 2021047169 A1 WO2021047169 A1 WO 2021047169A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- query
- natural language
- entity
- sentence
- language query
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000013507 mapping Methods 0.000 claims abstract description 62
- 238000006243 chemical reaction Methods 0.000 claims description 6
- 238000007781 pre-processing Methods 0.000 claims description 6
- 238000001914 filtration Methods 0.000 claims description 4
- 238000012549 training Methods 0.000 description 4
- 238000013135 deep learning Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000003058 natural language processing Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9532—Query formulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/332—Query formulation
- G06F16/3329—Natural language query formulation or dialogue systems
Definitions
- the present invention relates to the technical field of natural language processing, in particular to an information query method and device, a storage medium, and an intelligent terminal.
- the way to obtain the above-mentioned product-related information is usually to query through a search engine, for example, enter "China CSI 300 Index Fund" in the search engine to query.
- the information queried by the query method in the prior art is generally general and complicated, and the user usually queries with a clear intention. For example, the user may only want to see which stocks the fund holds, or see What is the historical performance of the fund manager of a certain fund? It is difficult for the search engine in the prior art to find it in one step, and it is necessary to filter the information after the first query to obtain effective information.
- the technical problem solved by the present invention is how to improve the accuracy and convenience of query.
- an embodiment of the present invention provides an information query method.
- the information query method includes: obtaining a natural language query sentence input by a user; determining the entity to be queried in the natural language query sentence from a knowledge base; The entity to be queried includes a query entity name; identifying a query intention of the natural language query sentence; and determining an answer corresponding to the natural language query sentence according to a combination of the query entity name and the query intention and a preset mapping relationship.
- the determining the answer corresponding to the natural language query sentence according to the combination of the query entity name and the query intention and a preset mapping relationship includes: combining the query entity name with a plurality of preset mapping relationships If the entity name in the preset mapping relationship matches the query entity name, match the intent in the matching preset mapping relationship with the query intent; if the matching preset Assuming that the intent in the mapping relationship matches the query intent, the answer in the matched preset mapping relationship is used as the answer corresponding to the natural language query sentence.
- the using the answer in the matched preset mapping relationship as the answer corresponding to the natural language query sentence includes: directly corresponding the answer to the combination of the entity name and the intent in the matched preset mapping relationship As the answer corresponding to the natural language query sentence; or, determine the query instruction corresponding to the combination of entity name and intent in the matched preset mapping relationship, and use the answer obtained by executing the query instruction as the natural language query The answer to the sentence.
- the determining the entity to be queried in the natural language query sentence from the knowledge base includes: sorting the list of entities in the knowledge base according to the natural language query sentence input by the user, and sorting The preceding entity is used as the entity to be queried.
- the following algorithms are used to sort the list of entities in the knowledge base: learning-to-rank model, or syntax analysis.
- the identifying the query intention of the natural language query sentence includes: sorting the limited intent set corresponding to the entity to be queried according to the entity to be queried and the natural language query sentence.
- the following algorithm is used to sort the limited intent set corresponding to the entity to be queried: a learning-to-rank model, or a way of syntactic analysis.
- the method before determining the entity to be queried in the natural language query sentence from the knowledge base, the method further includes: comparing the pinyin of each word in the natural language query sentence with each preset entity name in the preset entity name list The pinyin of the preset entity name is matched to obtain a matching result.
- the preset entity name list includes a plurality of preset entity names and their pinyin; if the matching result indicates that the pinyin of the preset entity name exists and the natural language query sentence If the pinyin of the word matches, the word is updated to the matching preset entity name.
- the method before determining the entity to be queried in the natural language query sentence from the knowledge base, the method further includes: performing a preprocessing operation on the natural language query sentence, and the preprocessing operation is selected from filtering sensitive words and fonts. Conversion.
- the entity name is selected from the names of fund products, fund managers, and fund companies, or the names of insurance products, insurance managers, and insurance companies, or the names of wealth management products, wealth management managers, and wealth management companies.
- the embodiment of the present invention also discloses an information query device.
- the information query device includes: a natural language query sentence acquisition module for acquiring a natural language query sentence input by a user; an entity name recognition module for receiving The entity to be queried in the natural language query sentence is determined in the knowledge base, and the entity to be queried includes the name of the query entity; an intention recognition module is used to identify the query intention of the natural language query sentence; an answer determination module is used according to The combination of the query entity name and the query intention and the preset mapping relationship determine the answer corresponding to the natural language query sentence.
- the embodiment of the present invention also discloses a storage medium on which computer instructions are stored, and the steps of the information query method are executed when the computer instructions are run.
- the embodiment of the present invention also discloses an intelligent terminal, including a memory and a processor, the memory stores computer instructions that can run on the processor, and the processor executes the information when the computer instructions are executed. The steps of the query method.
- the query entity name in the natural language query sentence and the query intention of the natural language query sentence can be identified; the entity name and the query intention can be determined through the preset mapping relationship established in advance.
- the combination of intents and the corresponding relationship between the answers, so that the query entity name in the natural language query sentence, the query intention of the natural language query sentence, and the preset mapping relationship can be used to determine the answer to the natural language query sentence.
- the technical solution of the present invention uses the combination of entity name and intent to determine the answer, which can ensure the accuracy and pertinence of answer determination, avoids the way in the prior art that requires a second query by the user to determine the answer, and improves the information query Convenience and user experience.
- the answer in the mapping relationship is the answer to the natural language query sentence, and the accuracy of the matched answer is ensured by matching the entity name and intent.
- the pinyin of the entity name is fuzzy matched with the pinyin of each preset entity name in the preset entity name list to obtain a matching result.
- the preset entity name list includes a plurality of preset entity names and their pinyin ; If the matching result indicates a match, the entity name is updated to the matching preset entity name.
- the entity name in order to avoid query errors caused by typos in the natural language query sentence input by the user, the entity name can be updated by means of pinyin matching, thereby further ensuring the accuracy of the finally matched answer.
- FIG. 1 is a flowchart of an information query method according to an embodiment of the present invention
- FIG. 2 is a flowchart of a specific implementation of step S104 shown in FIG. 1;
- FIG. 3 is a partial flowchart of an information query method according to an embodiment of the present invention.
- Fig. 4 is a schematic structural diagram of an information query device according to an embodiment of the present invention.
- the information queried by the query methods in the prior art is generally general and complicated, and users usually query with clear intentions. For example, users may only want to see the stocks held by this fund. Which ones? Or look at the historical performance of the fund manager of a certain fund. It is difficult for the search engine in the prior art to find it in one step, and it is necessary to perform a secondary screening and filtering of the information after the first query to obtain effective information.
- the query entity name in the natural language query sentence and the query intention of the natural language query sentence can be identified; the entity name and the query intention can be determined through the preset mapping relationship established in advance.
- the combination of intents and the corresponding relationship between the answers, so that the query entity name in the natural language query sentence, the query intention of the natural language query sentence, and the preset mapping relationship can be used to determine the answer to the natural language query sentence.
- the technical solution of the present invention uses the combination of entity name and intent to determine the answer, which can ensure the accuracy and pertinence of answer determination, avoids the way in the prior art that requires a second query by the user to determine the answer, and improves the information query Convenience and user experience.
- the "natural language query sentence” referred to in the embodiment of the present invention refers to a sentence input by a user for query, which may specifically be text or voice data.
- the "query entity name” mentioned in the embodiment of the present invention refers to the name of the entity appearing in the natural language query sentence, such as the name of the fund, the name of the fund manager, and the name of the fund company.
- the "query intention” in the embodiment of the present invention refers to the intention expressed by a natural language query sentence, such as querying positions, querying company profiles, and so on.
- the "preset mapping relationship" referred to in the embodiment of the present invention refers to a pre-established correspondence relationship between a combination of entity name and intent and an answer.
- the preset mapping relationship may include a combination of multiple entity names and intents and their correspondences. s answer.
- Fig. 1 is a flowchart of an information query method according to an embodiment of the present invention.
- the information query method shown in FIG. 1 can be executed by any smart terminal device capable of interacting with the user, and the smart terminal device may specifically be any device capable of interacting with the user, such as a computer or an intelligent robot.
- the information query method may include the following steps:
- Step S101 Obtain a natural language query sentence input by the user
- Step S102 Determine the entity to be queried in the natural language query sentence from the knowledge base, where the entity to be queried includes the name of the query entity;
- Step S103 Identify the query intention of the natural language query sentence
- Step S104 Determine the answer corresponding to the natural language query sentence according to the combination of the query entity name and the query intention and a preset mapping relationship.
- step S102 and step 103 may be executed simultaneously, or step S102 may be executed earlier than step S103, or step S103 may be executed earlier than step S102, which is not limited in the embodiment of the present invention.
- the natural language query sentence input by the user may be natural language. More specifically, the natural language query sentence may be in text, voice, and other formats. For example, in a specific application scenario, when a user inputs voice data, the voice data may be converted into text first, and subsequent entity name recognition and intention recognition processes are performed on the basis of the text.
- the entity list of the knowledge base can be sorted for the natural language query sentences input by the user, and the query entity name in the natural language query sentence can be determined based on the top 1 result of the sorting.
- a learning-to-rank algorithm based on deep learning can be used, or any other implementable entity name recognition algorithm, such as a syntax analysis algorithm, can be used, which is not limited in the embodiment of the present invention.
- entity names can include the following three categories: fund products, fund managers, and fund companies.
- the user inputs the natural language query sentence "Is Rainbow Fund Company good", and the entity name "Rainbow Fund Company” can be obtained through step S102.
- the query intention of obtaining the natural language query sentence can be identified.
- a pre-trained model can be used to sort the intents corresponding to the entity according to the determined entity name, and the top 1 result of the sorting is used as the intent result.
- a learning-to-rank algorithm based on deep learning may be used, or any other implementable algorithm, such as a syntax analysis algorithm, may be used, which is not limited in the embodiment of the present invention.
- a learning-to-rank model is trained using a trained neural network to perform intention recognition on the natural language query sentence.
- the query intention can be obtained as "company profile” through step S103.
- the query entity name and query intention of the natural language query sentence can be determined through step S102 and step S103, and the combination of the above two parameters can clearly indicate the content that the user wants.
- a preset mapping relationship may be established in advance to establish the correspondence relationship between the combination of the entity name and the intention and the answer.
- the query entity name in the natural language query sentence, the query intention of the natural language query sentence, and the preset mapping relationship may be used to determine the answer to the natural language query sentence.
- the preset mapping relationship includes a combination of multiple entity names and intentions and their corresponding answers.
- the preset mapping relationship may also be a mapping relationship between a combination of entity name and intent and a query instruction, and each query instruction can determine a unique answer through a query operation.
- the query instruction may be a Structured Query Language (SQL) statement, through which the answer can be queried in the database, and the answer is fed back to the user.
- SQL Structured Query Language
- the preset mapping relationship may be stored in a database, and when needed, the preset mapping relationship may be called from the database.
- the embodiment of the present invention uses the combination of the entity name and the intention to determine the answer, which can ensure the accuracy and pertinence of the answer determination, avoids the way in the prior art that requires the user to make a second query to determine the answer, and improves the information query. Convenience and user experience.
- the entity name is selected from the names of fund products, fund managers, and fund companies, or the names of insurance products, insurance managers, and insurance companies, or selected from wealth management products, wealth management managers And the name of the wealth management company.
- the information query method of the embodiment of the present invention can query fund-related information, insurance-related information, and financial-related information to meet different needs of users in different application scenarios.
- the information query method shown in FIG. 1 may further include the following step: feeding back the answer to the user.
- the answer may be displayed to the user in a preset format, for example, it may be displayed in text; or, the answer may be broadcast in voice, and the answer may also be displayed in text and The combination of answers is displayed.
- Step S104 shown in FIG. 1 may include the following steps:
- Step S201 Match the query entity name with entity names in multiple preset mapping relationships
- Step S202 if there is an entity name in the preset mapping relationship that matches the query entity name, match the intent in the matched preset mapping relationship with the query intent;
- Step S203 If the intent in the matched preset mapping relationship matches the query intent, use the answer in the matched preset mapping relationship as the answer corresponding to the natural language query sentence.
- steps S201 and S202 can also be replaced with the following steps: first match the query intent with the intent in multiple preset mapping relationships; if there is an intent in the preset mapping relationship and the query intent If a match is made, the entity name in the preset mapping relationship is matched with the query entity name, which is not limited in the embodiment of the present invention.
- the answer to the natural language query sentence when determining the answer to the natural language query sentence, it is necessary to determine that the entity name in the preset mapping relationship matches the query entity name, and the intent in the preset mapping relationship matches the query intent, before the determination is made.
- the answer in the preset mapping relationship is the answer to the natural language query sentence, and the accuracy of the matched answer is ensured by matching the entity name and intent.
- a preset guiding sentence can be returned to the user to instruct the user to update the natural language query sentence. For example, “Can your question be more specific”, “You can ask me some knowledge about the fund” and so on.
- step S203 shown in FIG. 2 may include the following steps: directly use the answer corresponding to the combination of the entity name and the intent in the matched preset mapping relationship as the answer corresponding to the natural language query sentence; or, determine the answer corresponding to the natural language query sentence;
- the query instruction corresponding to the combination of the entity name and the intent in the matching preset mapping relationship is described, and the answer obtained by executing the query instruction is used as the answer corresponding to the natural language query sentence.
- the combination of entity name and intent in the preset mapping relationship can directly correspond to the answer.
- the preset mapping relationship includes the combination of entity name and intent and the answer. In this case, you can directly map the matching preset
- the answer in the relation is used as the answer corresponding to the natural language query sentence.
- the combination of entity name and intent in the preset mapping relationship can indirectly correspond to the answer, that is, the preset mapping relationship includes the combination of entity name and intent and query instructions.
- the answer can be obtained by executing the query instruction.
- the answer obtained by executing the query instruction may be used as the answer corresponding to the natural language query sentence.
- the query instruction can be a SQL statement, or any other implementable unstructured query instruction that can perform a query operation, which is not limited in the embodiment of the present invention.
- step S102 shown in FIG. 1 may include the following steps: input the natural language query sentence into a pre-trained entity name recognition model to obtain the entity name in the natural language query sentence Wherein, when the entity name recognition model is trained using training data, the training data includes the full name and abbreviation of each entity name.
- the full name of the entity name that the user needs to query is relatively long, and the user usually uses the abbreviation of the entity name to query.
- the name of the fund is usually very long, such as "China Joy Health "Hybrid”, “China Industry Leading Hybrid”, “Boshiyueyueying Short-term Wealth Management Bonds”, etc., but users generally cannot remember the full name of the fund.
- the natural language query sentence entered is usually the omitted fund name, such as "Huaxia "Lexiang”, “Huaxia Leading Mix”, and “Doctor Yueyueying” resulted in no query results.
- the full name and abbreviation of each entity name can be used to construct training data, and the above training data can be used to identify the entity.
- the name recognition model is trained, so that the trained entity name recognition model can recognize the full name or abbreviation of each entity name, avoid omitting the entity name, and ensure the accuracy of information query.
- step S102 shown in FIG. 1 please refer to FIG. 3. Before step S102 shown in FIG. 1, the following steps may also be included:
- Step S301 Match the pinyin of each word in the natural language query sentence with the pinyin of each preset entity name in the preset entity name list to obtain a matching result.
- the preset entity name list includes a plurality of preset entities Name and its pinyin;
- Step S302 If the matching result indicates that the pinyin of the preset entity name matches the pinyin of the word in the natural language query sentence, update the word to the matched preset entity name.
- a preset entity name list may be established in advance, and the preset entity name list includes multiple preset entity names and their pinyin. It is also possible to perform pinyin conversion on the natural language query sentence to obtain the pinyin of each word in the natural language query sentence.
- the pinyin of each word in the natural language query sentence can be matched with the pinyin of each preset entity name in the preset entity name list, for example, fuzzy matching can be performed. If there is a pinyin of the preset entity name that matches the pinyin of the word, update the word to the matched preset entity name.
- the entity name in order to avoid query errors caused by typos in the natural language query sentence input by the user, the entity name can be updated by means of pinyin matching, thereby further ensuring the accuracy of the finally matched answer.
- the user enters the natural language query sentence "Is Tianhong Fund Company good?", in which the pinyin of "Tianhong Fund” is the same as the pinyin of "Tianhong Fund” in the preset entity name list, so “Tianhong Fund” is changed to “Tianhong Fund”. "Fund” is updated to "Tianhong Fund”; through the entity name identification step, the query entity name is identified as “Tianhong Fund”, and the intent of the natural language query sentence is "Company Profile".
- step S102 shown in FIG. 1 before step S102 shown in FIG. 1, the following step may be further included: performing a preprocessing operation on the natural language query sentence, and the preprocessing operation is selected from filtering sensitive words and font conversion.
- sensitive words in natural language query sentences can be filtered.
- sensitive words can include abusive words, sensitive names, and sensitive nouns.
- the sensitive word can be filtered directly, and the subsequent steps can be performed. Or you can directly return to the preset sentence without performing subsequent processing.
- font conversion may be performed on the font of the natural language query sentence, so that the font of each word in the natural language query sentence is consistent.
- the natural language query sentence is in Chinese
- the natural language query sentence is unified into simplified Chinese.
- adaptive configuration and modification can be made according to the actual application environment, which is not limited in the embodiment of the present invention.
- the user enters the natural language query sentence "Huaxia Company Garbage” to identify the sensitive word “garbage”.
- it can directly return to specific words, or filter the sensitive word to get “ Huaxia Company” and continue to implement the subsequent steps.
- the embodiment of the present invention also discloses an information query device 40.
- the information query device 40 may include a natural language query sentence acquisition module 401, an entity name recognition module 402, an intention recognition module 403, and an answer determination module 404.
- the natural language query sentence obtaining module 401 is used to obtain the natural language query sentence input by the user; the entity name recognition module 402 is used to sort the entities in the entity list through the natural language query sentence; the intention recognition module 403 is used to According to the entity name determined by the entity name recognition module 402, the intents corresponding to the entities are sorted to obtain the query intent of the natural language query sentence; the answer determination module 404 is used to determine the query entity name and the query intent according to the query entity name and the query intent.
- the combination of and a preset mapping relationship determines the answer corresponding to the natural language query sentence, and the preset mapping relationship includes a combination of multiple entity names and intentions and their corresponding answers.
- the query entity name in the natural language query sentence and the query intention of the natural language query sentence can be identified; the entity name and the query intention can be determined through the preset mapping relationship established in advance.
- the combination of intents and the corresponding relationship between the answers, so that the query entity name in the natural language query sentence, the query intention of the natural language query sentence, and the preset mapping relationship can be used to determine the answer to the natural language query sentence.
- the embodiment of the present invention uses the combination of the entity name and the intention to determine the answer, which can ensure the accuracy and pertinence of the answer determination, avoids the way in the prior art that requires the user to make a second query to determine the answer, and improves the information query. Convenience and user experience.
- the embodiment of the present invention also discloses a storage medium on which computer instructions are stored, and the computer instructions can execute the steps of the method shown in FIG. 1, FIG. 2 or FIG. 3 when the computer instruction is running.
- the storage medium may include ROM, RAM, magnetic disk or optical disk, etc.
- the storage medium may also include non-volatile memory (non-volatile) or non-transitory memory, etc.
- the embodiment of the present invention also discloses an intelligent terminal.
- the intelligent terminal may include a memory and a processor, and computer instructions that can run on the processor are stored in the memory. When the processor runs the computer instructions, the steps of the method shown in FIG. 1, FIG. 2 or FIG. 3 can be executed.
- the smart terminal includes, but is not limited to, terminal devices such as mobile phones, computers, and tablets.
Abstract
Description
Claims (13)
- 一种信息查询方法,其特征在于,包括:An information query method, characterized in that it comprises:获取用户输入的自然语言查询语句;Obtain the natural language query sentence input by the user;从知识库中确定所述自然语言查询语句中的待查询实体,所述待查询实体包括查询实体名称;Determine the entity to be queried in the natural language query sentence from the knowledge base, where the entity to be queried includes the name of the query entity;识别所述自然语言查询语句的查询意图;Identifying the query intention of the natural language query sentence;根据所述查询实体名称和所述查询意图的组合与预设映射关系确定所述自然语言查询语句对应的答案。The answer corresponding to the natural language query sentence is determined according to the combination of the query entity name and the query intention and a preset mapping relationship.
- 根据权利要求1所述的信息查询方法,其特征在于,所述根据所述查询实体名称和所述查询意图的组合与预设映射关系确定所述自然语言查询语句对应的答案包括:The information query method according to claim 1, wherein the determining the answer corresponding to the natural language query sentence according to the combination of the query entity name and the query intention and a preset mapping relationship comprises:将所述查询实体名称与多个预设映射关系中的实体名称进行匹配;Matching the query entity name with entity names in a plurality of preset mapping relationships;如果存在预设映射关系中的实体名称与所述查询实体名称相匹配,则将匹配的预设映射关系中的意图与所述查询意图进行匹配;If there is an entity name in the preset mapping relationship that matches the query entity name, matching the intent in the matched preset mapping relationship with the query intent;如果所述匹配的预设映射关系中的意图与所述查询意图相匹配,则将所述匹配的预设映射关系中的答案作为所述自然语言查询语句对应的答案。If the intent in the matched preset mapping relationship matches the query intent, the answer in the matched preset mapping relationship is used as the answer corresponding to the natural language query sentence.
- 根据权利要求2所述的信息查询方法,其特征在于,所述将所述匹配的预设映射关系中的答案作为所述自然语言查询语句对应的答案包括:The information query method according to claim 2, wherein the using the answer in the matched preset mapping relationship as the answer corresponding to the natural language query sentence comprises:直接将所述匹配的预设映射关系中实体名称和意图的组合对应的答案作为所述自然语言查询语句对应的答案;Directly using the answer corresponding to the combination of the entity name and the intent in the matched preset mapping relationship as the answer corresponding to the natural language query sentence;或者,确定所述匹配的预设映射关系中实体名称和意图的组合对应的查询指令,并将执行所述查询指令得到的答案作为所述自然语言查询语句对应的答案。Alternatively, the query instruction corresponding to the combination of the entity name and the intent in the matched preset mapping relationship is determined, and the answer obtained by executing the query instruction is used as the answer corresponding to the natural language query sentence.
- 根据权利要求1所述的信息查询方法,其特征在于,所述从知识库中确定所述自然语言查询语句中的待查询实体包括:The information query method according to claim 1, wherein the determining the entity to be queried in the natural language query sentence from the knowledge base comprises:根据用户输入的所述自然语言查询语句,对所述知识库中的实体列表进行排序,并将排序靠前的实体作为所述待查询实体。According to the natural language query sentence input by the user, the entity list in the knowledge base is sorted, and the entity with the highest ranking is used as the entity to be queried.
- 根据权利要求1所述的信息查询方法,其特征在于,采用以下算法对所述知识库中的实体列表进行排序:learning-to-rank模型,或者句法分析。The information query method according to claim 1, wherein the following algorithm is used to sort the list of entities in the knowledge base: learning-to-rank model, or syntactic analysis.
- 根据权利要求1所述的信息查询方法,其特征在于,所述识别所述自然语言查询语句的查询意图包括:The information query method according to claim 1, wherein the identifying the query intention of the natural language query sentence comprises:根据所述待查询实体以及所述自然语言查询语句,对所述待查询实体所对应的有限意图集合进行排序。According to the entity to be queried and the natural language query sentence, the limited intent set corresponding to the entity to be queried is sorted.
- 根据权利要求6所述的信息查询方法,其特征在于,采用以下算法对所述待查询实体所对应的有限意图集合进行排序:learning-to-rank模型,或者句法分析的方式。The information query method according to claim 6, characterized in that the following algorithm is used to sort the limited intent set corresponding to the entity to be queried: a learning-to-rank model, or a way of syntactic analysis.
- 根据权利要求1所述的信息查询方法,其特征在于,所述从知识库中确定所述自然语言查询语句中的待查询实体之前还包括:The information query method according to claim 1, wherein before determining the entity to be queried in the natural language query sentence from the knowledge base, the method further comprises:将所述自然语言查询语句中各个词语的拼音与预设实体名称列表中各个预设实体名称的拼音进行匹配,以得到匹配结果,所述预设实体名称列表包括多个预设实体名称及其拼音;The pinyin of each word in the natural language query sentence is matched with the pinyin of each preset entity name in the preset entity name list to obtain a matching result. The preset entity name list includes multiple preset entity names and their names. pinyin;如果所述匹配结果表示存在预设实体名称的拼音与所述自然语言查询语句中的词语的拼音相匹配,则将所述词语更新为匹配的预设实体名称。If the matching result indicates that the pinyin of the preset entity name matches the pinyin of the word in the natural language query sentence, the word is updated to the matched preset entity name.
- 根据权利要求1所述的信息查询方法,其特征在于,所述从知识库中确定所述自然语言查询语句中的待查询实体之前还包括:The information query method according to claim 1, wherein before determining the entity to be queried in the natural language query sentence from the knowledge base, the method further comprises:对所述自然语言查询语句进行预处理操作,所述预处理操作选自过滤敏感词和字体转换。A preprocessing operation is performed on the natural language query sentence, and the preprocessing operation is selected from filtering sensitive words and font conversion.
- 根据权利要求1所述的信息查询方法,其特征在于,所述实体名称选自基金产品、基金经理以及基金公司的名称,或者选自保险产品、保险经理以及保险公司的名称,或者选自理财产品、理财经理以及理财公司的名称。The information query method according to claim 1, wherein the entity name is selected from the names of fund products, fund managers, and fund companies, or selected from the names of insurance products, insurance managers, and insurance companies, or selected from financial management The name of the product, wealth management manager, and wealth management company.
- 一种信息查询装置,其特征在于,包括:An information query device, characterized in that it comprises:自然语言查询语句获取模块,用以获取用户输入的自然语言查询语句;The natural language query sentence acquisition module is used to acquire the natural language query sentence input by the user;实体名称识别模块,用以从知识库中确定所述自然语言查询语句中的待查询实体,所述待查询实体包括查询实体名称;The entity name recognition module is used to determine the entity to be queried in the natural language query sentence from the knowledge base, and the entity to be queried includes the name of the query entity;意图识别模块,用以识别所述自然语言查询语句的查询意图;An intention recognition module for identifying the query intention of the natural language query sentence;答案确定模块,用以根据所述查询实体名称和所述查询意图的组合与预设映射关系确定所述自然语言查询语句对应的答案。The answer determination module is used to determine the answer corresponding to the natural language query sentence according to the combination of the query entity name and the query intention and a preset mapping relationship.
- 一种存储介质,其上存储有计算机指令,其特征在于,所述计算机指令运行时执行权利要求1至10中任一项所述信息查询方法的步骤。A storage medium having computer instructions stored thereon, wherein the computer instructions execute the steps of the information query method according to any one of claims 1 to 10 when the computer instructions are run.
- 一种智能终端,包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的计算机指令,其特征在于,所述处理器运行所述计算机指令时执行权利要求1至10中任一项所述信息查询方法的步骤。An intelligent terminal, comprising a memory and a processor, the memory stores computer instructions that can run on the processor, wherein the processor executes claims 1 to 10 when the computer instructions are executed. Any of the steps of the information query method.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910869534.0A CN110765342A (en) | 2019-09-12 | 2019-09-12 | Information query method and device, storage medium and intelligent terminal |
CN201910869534.0 | 2019-09-12 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021047169A1 true WO2021047169A1 (en) | 2021-03-18 |
Family
ID=69329796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/083561 WO2021047169A1 (en) | 2019-09-12 | 2020-04-07 | Information query method and apparatus, storage medium, and smart terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110765342A (en) |
WO (1) | WO2021047169A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110765342A (en) * | 2019-09-12 | 2020-02-07 | 竹间智能科技(上海)有限公司 | Information query method and device, storage medium and intelligent terminal |
CN111538894B (en) * | 2020-06-19 | 2020-10-23 | 腾讯科技(深圳)有限公司 | Query feedback method and device, computer equipment and storage medium |
CN112131016A (en) * | 2020-09-15 | 2020-12-25 | 北京值得买科技股份有限公司 | Application program internal data processing method, device and equipment |
CN112287088A (en) * | 2020-11-20 | 2021-01-29 | 四川长虹电器股份有限公司 | Intelligent man-machine interaction query method, system, computer equipment and storage medium |
CN112463932A (en) * | 2020-12-14 | 2021-03-09 | 北京明略软件系统有限公司 | Method, device and equipment for information query |
CN116628004B (en) * | 2023-05-19 | 2023-12-08 | 北京百度网讯科技有限公司 | Information query method, device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160117405A1 (en) * | 2014-02-24 | 2016-04-28 | Huawei Technologies Co., Ltd. | Information Processing Method and Apparatus |
CN106570180A (en) * | 2016-11-10 | 2017-04-19 | 北京百度网讯科技有限公司 | Artificial intelligence based voice searching method and device |
CN108170859A (en) * | 2018-01-22 | 2018-06-15 | 北京百度网讯科技有限公司 | Method, apparatus, storage medium and the terminal device of speech polling |
CN109522393A (en) * | 2018-10-11 | 2019-03-26 | 平安科技(深圳)有限公司 | Intelligent answer method, apparatus, computer equipment and storage medium |
CN109739964A (en) * | 2018-12-27 | 2019-05-10 | 北京拓尔思信息技术股份有限公司 | Knowledge data providing method, device, electronic equipment and storage medium |
CN110765342A (en) * | 2019-09-12 | 2020-02-07 | 竹间智能科技(上海)有限公司 | Information query method and device, storage medium and intelligent terminal |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107918634A (en) * | 2017-06-27 | 2018-04-17 | 上海壹账通金融科技有限公司 | Intelligent answer method, apparatus and computer-readable recording medium |
CN107330120B (en) * | 2017-07-14 | 2018-09-18 | 三角兽(北京)科技有限公司 | Inquire answer method, inquiry answering device and computer readable storage medium |
CN109800407B (en) * | 2017-11-15 | 2021-11-16 | 腾讯科技(深圳)有限公司 | Intention recognition method and device, computer equipment and storage medium |
CN110222045A (en) * | 2019-04-23 | 2019-09-10 | 平安科技(深圳)有限公司 | A kind of data sheet acquisition methods, device and computer equipment, storage medium |
-
2019
- 2019-09-12 CN CN201910869534.0A patent/CN110765342A/en active Pending
-
2020
- 2020-04-07 WO PCT/CN2020/083561 patent/WO2021047169A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160117405A1 (en) * | 2014-02-24 | 2016-04-28 | Huawei Technologies Co., Ltd. | Information Processing Method and Apparatus |
CN106570180A (en) * | 2016-11-10 | 2017-04-19 | 北京百度网讯科技有限公司 | Artificial intelligence based voice searching method and device |
CN108170859A (en) * | 2018-01-22 | 2018-06-15 | 北京百度网讯科技有限公司 | Method, apparatus, storage medium and the terminal device of speech polling |
CN109522393A (en) * | 2018-10-11 | 2019-03-26 | 平安科技(深圳)有限公司 | Intelligent answer method, apparatus, computer equipment and storage medium |
CN109739964A (en) * | 2018-12-27 | 2019-05-10 | 北京拓尔思信息技术股份有限公司 | Knowledge data providing method, device, electronic equipment and storage medium |
CN110765342A (en) * | 2019-09-12 | 2020-02-07 | 竹间智能科技(上海)有限公司 | Information query method and device, storage medium and intelligent terminal |
Also Published As
Publication number | Publication date |
---|---|
CN110765342A (en) | 2020-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021047169A1 (en) | Information query method and apparatus, storage medium, and smart terminal | |
US8627208B2 (en) | Application generator for data transformation applications | |
US11392775B2 (en) | Semantic recognition method, electronic device, and computer-readable storage medium | |
US9201869B2 (en) | Contextually blind data conversion using indexed string matching | |
EP2891075A1 (en) | Contextually blind data conversion using indexed string matching | |
US9043367B2 (en) | Self-learning data lenses for conversion of information from a first form to a second form | |
US10713625B2 (en) | Semi-automatic object reuse across application parts | |
US11526512B1 (en) | Rewriting queries | |
JP2023526116A (en) | Domain-Specific Language Interpreter and Interactive Visual Interface for Rapid Screening | |
CN112580357A (en) | Semantic parsing of natural language queries | |
CN115827819A (en) | Intelligent question and answer processing method and device, electronic equipment and storage medium | |
CN111708867A (en) | Question and answer query method, device and equipment applied to electric power operation and inspection | |
RU2571405C1 (en) | Method for preliminary conversion of structured data array | |
CN113157887A (en) | Knowledge question-answering intention identification method and device and computer equipment | |
US9207917B2 (en) | Application generator for data transformation applications | |
CN117149804A (en) | Data processing method, device, electronic equipment and storage medium | |
CN116737758A (en) | Database query statement generation method, device, equipment and storage medium | |
US11954099B2 (en) | Systems, methods, and program products for providing investment expertise using a financial ontology framework | |
US20220269706A1 (en) | Methods and systems to parse a software component search query to enable multi entity search | |
CN115098657A (en) | Method, apparatus and medium for natural language translation database query | |
CN113434653A (en) | Method, device and equipment for processing query statement and storage medium | |
CN111309773A (en) | Vehicle information query method, device and system and storage medium | |
WO2014168961A1 (en) | Generating data analytics using a domain model | |
RU2571407C1 (en) | Method to generate map of connections of converted structured data array components | |
US9798801B2 (en) | Observation-based query interpretation model modification |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20862163 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20862163 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20862163 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.11.2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20862163 Country of ref document: EP Kind code of ref document: A1 |