WO2021047169A1 - Information query method and apparatus, storage medium, and smart terminal - Google Patents

Information query method and apparatus, storage medium, and smart terminal Download PDF

Info

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
Application number
PCT/CN2020/083561
Other languages
French (fr)
Chinese (zh)
Inventor
简仁贤
马永宁
Original Assignee
竹间智能科技(上海)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 竹间智能科技(上海)有限公司 filed Critical 竹间智能科技(上海)有限公司
Publication of WO2021047169A1 publication Critical patent/WO2021047169A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9532Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural 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

An information query method and apparatus, a storage medium, and a smart terminal. The information query method comprises: acquiring a natural language query statement inputted by a user (S101); determining, from a knowledge base, an entity to be queried in the natural language query statement (S102); recognizing a query intention of the natural language query statement (S103); and determining an answer corresponding to the natural language query statement according to a combination of a query entity name and the query intention and a predetermined mapping relationship (S104). Said method can allow a user to query information by using a natural language, improving the accuracy and convenience of query.

Description

信息查询方法及装置、存储介质、智能终端Information query method and device, storage medium and intelligent terminal 技术领域Technical field
本发明涉及自然语言处理技术领域,尤其涉及一种信息查询方法及装置、存储介质、智能终端。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.
背景技术Background technique
对于目前面向客户的虚拟产品,例如基金产品和保险产品等,产品种类繁多。如对于同样类型的基金,可能由于基金经理或者基金公司的不同而有很大收益差距,面对如此众多的基金,普通用户很难去选择比较。For current customer-oriented virtual products, such as fund products and insurance products, there are many types of products. For example, for the same type of funds, there may be a large income gap due to different fund managers or fund companies. In the face of so many funds, it is difficult for ordinary users to choose and compare.
现有技术中,获取上述产品相关信息的方式通常是通过搜索引擎去查询,例如在搜索引擎中输入“华夏沪深300指数基金”来查询。In the prior art, 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.
但是,现有技术中的查询方式查询到的信息一般都是笼统而冗杂的,而用户通常是带有明确意图去查询的,例如用户可能只想看下这个基金持仓的股票有哪些,或者看下某个基金的基金经理的历史业绩如何,现有技术中的搜索引擎很难一步查询到位,需要在首次查询后在进行信息的二次筛选过滤才能获到有效信息。However, 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.
发明内容Summary of the invention
本发明解决的技术问题是如何提升查询的准确性和便捷性。The technical problem solved by the present invention is how to improve the accuracy and convenience of query.
为解决上述技术问题,本发明实施例提供一种信息查询方法,所述信息查询方法包括:获取用户输入的自然语言查询语句;从知识库中确定所述自然语言查询语句中的待查询实体,所述待查询实体包括查询实体名称;识别所述自然语言查询语句的查询意图;根据所述查询实体名称和所述查询意图的组合与预设映射关系确定所述自然语言查询语句对应的答案。In order to solve the above technical problem, 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.
可选的,所述根据所述查询实体名称和所述查询意图的组合与预设映射关系确定所述自然语言查询语句对应的答案包括:将所述查询实体名称与多个预设映射关系中的实体名称进行匹配;如果存在预设映射关系中的实体名称与所述查询实体名称相匹配,则将匹配的预设映射关系中的意图与所述查 询意图进行匹配;如果所述匹配的预设映射关系中的意图与所述查询意图相匹配,则将所述匹配的预设映射关系中的答案作为所述自然语言查询语句对应的答案。Optionally, 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.
可选的,所述将所述匹配的预设映射关系中的答案作为所述自然语言查询语句对应的答案包括:直接将所述匹配的预设映射关系中实体名称和意图的组合对应的答案作为所述自然语言查询语句对应的答案;或者,确定所述匹配的预设映射关系中实体名称和意图的组合对应的查询指令,并将执行所述查询指令得到的答案作为所述自然语言查询语句对应的答案。Optionally, 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.
可选的,所述从知识库中确定所述自然语言查询语句中的待查询实体包括:根据用户输入的所述自然语言查询语句,对所述知识库中的实体列表进行排序,并将排序靠前的实体作为所述待查询实体。Optionally, 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.
可选的,采用以下算法对所述知识库中的实体列表进行排序:learning-to-rank模型,或者句法分析。Optionally, the following algorithms are used to sort the list of entities in the knowledge base: learning-to-rank model, or syntax analysis.
可选的,所述识别所述自然语言查询语句的查询意图包括:根据所述待查询实体以及所述自然语言查询语句,对所述待查询实体所对应的有限意图集合进行排序。Optionally, 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.
可选的,采用以下算法对所述待查询实体所对应的有限意图集合进行排序:learning-to-rank模型,或者句法分析的方式。Optionally, 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.
可选的,所述从知识库中确定所述自然语言查询语句中的待查询实体之前还包括:将所述自然语言查询语句中各个词语的拼音与预设实体名称列表中各个预设实体名称的拼音进行匹配,以得到匹配结果,所述预设实体名称列表包括多个预设实体名称及其拼音;如果所述匹配结果表示存在预设实体名称的拼音与所述自然语言查询语句中的词语的拼音相匹配,则将所述词语更新为匹配的预设实体名称。Optionally, 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.
可选的,所述从知识库中确定所述自然语言查询语句中的待查询实体之前还包括:对所述自然语言查询语句进行预处理操作,所述预处理操作选自过滤敏感词和字体转换。Optionally, 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.
可选的,所述实体名称选自基金产品、基金经理以及基金公司的名称, 或者选自保险产品、保险经理以及保险公司的名称,或者选自理财产品、理财经理以及理财公司的名称。Optionally, 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.
为解决上述技术问题,本发明实施例还公开了一种信息查询装置,信息查询装置包括:自然语言查询语句获取模块,用以获取用户输入的自然语言查询语句;实体名称识别模块,用以从知识库中确定所述自然语言查询语句中的待查询实体,所述待查询实体包括查询实体名称;意图识别模块,用以识别所述自然语言查询语句的查询意图;答案确定模块,用以根据所述查询实体名称和所述查询意图的组合与预设映射关系确定所述自然语言查询语句对应的答案。In order to solve the above technical problem, 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.
与现有技术相比,本发明实施例的技术方案具有以下有益效果:Compared with the prior art, the technical solutions of the embodiments of the present invention have the following beneficial effects:
本发明技术方案中,对于用户输入的自然语言查询语句,可以识别确定自然语言查询语句中的查询实体名称以及自然语言查询语句的查询意图;通过预先建立的预设映射关系,可以确定实体名称和意图的组合与答案的对应关系,由此,可以利用自然语言查询语句中的查询实体名称、自然语言查询语句的查询意图以及预设映射关系确定自然语言查询语句的答案。本发明技术方案利用实体名称与意图的组合来确定答案的方式,可以保证答案确定的准确性和针对性,避免了现有技术中需要用户二次查询才能确定答案的方式,提升了信息查询的便捷性以及用户体验。In the technical scheme of the present invention, for the natural language query sentence input by the user, 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.
进一步地,在确定自然语言查询语句的答案时,需要确定预设映射关系中的实体名称与查询实体名称相匹配,并且该预设映射关系中的意图与查询意图相匹配,才确定该预设映射关系中的答案为自然语言查询语句的答案,通过实体名称和意图均匹配的方式来保证匹配到的答案的准确性。Further, 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 determining the preset 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.
进一步地,将所述实体名称的拼音与预设实体名称列表中各个预设实体 名称的拼音进行模糊匹配,以得到匹配结果,所述预设实体名称列表包括多个预设实体名称及其拼音;如果所述匹配结果表示匹配,则将所述实体名称更新为匹配的预设实体名称。本发明技术方案中,为了避免用户输入的自然语言查询语句中的错别字导致的查询错误,可以通过拼音匹配的方式更新实体名称,从而进一步保证最终匹配到的答案的准确性。Further, 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. In the technical scheme of the present invention, 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.
附图说明Description of the drawings
图1是本发明实施例一种信息查询方法的流程图;FIG. 1 is a flowchart of an information query method according to an embodiment of the present invention;
图2是图1所示步骤S104的一种具体实施方式的流程图;FIG. 2 is a flowchart of a specific implementation of step S104 shown in FIG. 1;
图3是本发明实施例一种信息查询方法的部分流程图;FIG. 3 is a partial flowchart of an information query method according to an embodiment of the present invention;
图4是本发明实施例一种信息查询装置的结构示意图。Fig. 4 is a schematic structural diagram of an information query device according to an embodiment of the present invention.
具体实施方式detailed description
如背景技术中所述,现有技术中的查询方式查询到的信息一般都是笼统而冗杂的,而用户通常是带有明确意图去查询的,例如用户可能只想看下这个基金持仓的股票有哪些,或者看下某个基金的基金经理的历史业绩如何,现有技术中的搜索引擎很难一步查询到位,需要在首次查询后在进行信息的二次筛选过滤才能获到有效信息。As mentioned in the background art, 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.
本发明技术方案中,对于用户输入的自然语言查询语句,可以识别确定自然语言查询语句中的查询实体名称以及自然语言查询语句的查询意图;通过预先建立的预设映射关系,可以确定实体名称和意图的组合与答案的对应关系,由此,可以利用自然语言查询语句中的查询实体名称、自然语言查询语句的查询意图以及预设映射关系确定自然语言查询语句的答案。本发明技术方案利用实体名称与意图的组合来确定答案的方式,可以保证答案确定的准确性和针对性,避免了现有技术中需要用户二次查询才能确定答案的方式,提升了信息查询的便捷性以及用户体验。In the technical scheme of the present invention, for the natural language query sentence input by the user, 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. Specifically, the preset mapping relationship may include a combination of multiple entity names and intents and their correspondences. s answer.
为使本发明的上述目的、特征和优点能够更为明显易懂,下面结合附图对本发明的具体实施例做详细的说明。In order to make the above objectives, features and advantages of the present invention more obvious and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
图1是本发明实施例一种信息查询方法的流程图。Fig. 1 is a flowchart of an information query method according to an embodiment of the present invention.
图1所示的信息查询方法可以由任意能够与用户进行交互的智能终端设备来执行,所述智能终端设备具体可以是计算机、智能机器人等任意能够与用户进行交互的设备。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:
步骤S101:获取用户输入的自然语言查询语句;Step S101: Obtain a natural language query sentence input by the user;
步骤S102:从知识库中确定所述自然语言查询语句中的待查询实体,所述待查询实体包括查询实体名称;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;
步骤S103:识别所述自然语言查询语句的查询意图;Step S103: Identify the query intention of the natural language query sentence;
步骤S104:根据所述查询实体名称和所述查询意图的组合与预设映射关系确定所述自然语言查询语句对应的答案。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.
需要指出的是,本实施例中各个步骤的序号并不代表对各个步骤的执行顺序的限定。例如,步骤S102与步骤103可以是同时执行的,也可以是步骤S102早于步骤S103执行,或者步骤S103早于步骤S102执行,本发明实施例对此不作限制。It should be pointed out that the sequence number of each step in this embodiment does not represent a limitation on the execution order of each step. For example, 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.
本实施例中,用户输入的自然语言查询语句可以是自然语言。更具体地,自然语言查询语句可以是文本、语音等格式。例如在一个具体应用场景中,用户输入语音数据,可以先将该语音数据转换为文本,后续的实体名称识别以及意图识别过程均以该文本为基础进行。In this embodiment, 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.
在步骤S102的具体实施中,可以对知识库的实体列表,针对用户输入的自然语言查询语句进行排序,以排序的top 1结果确定自然语言查询语句中的查询实体名称。关于具体的排序算法,可以采用基于深度学习的learning-to-rank算法,也可以使用其他任意可实施的实体名称识别算法,例如句法分析算法,本发明实施例对此不作限制。In the specific implementation of step S102, 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. Regarding the specific ranking algorithm, 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.
关于learning-to-rank算法(或learning-to-rank模型)、句法分析算法的具体实施方式可参照现有技术,本发明实施例在此不再赘述。Regarding the specific implementation of the learning-to-rank algorithm (or learning-to-rank model) and the syntax analysis algorithm, reference may be made to the prior art, and the details of the embodiment of the present invention will not be repeated here.
以基金产品为例,实体名称可以包括以下三种类别:基金产品、基金经理以及基金公司。用户输入自然语言查询语句“天虹基金公司好不好”,通过步骤S102可以得到实体名称“天虹基金公司”。Taking fund products as an example, 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.
在步骤S103的具体实施中,可以识别获得自然语言查询语句的查询意图。具体可以通过预先训练好的模型,根据确定的实体名称,对该实体所对应的意图进行排序,以排序的top 1结果作为意图结果。关于具体的排序算法,可以采用基于深度学习的learning-to-rank算法,也可以使用其他任意可实施的算法,例如句法分析算法,本发明实施例对此不作限制。In the specific implementation of step S103, the query intention of obtaining the natural language query sentence can be identified. Specifically, 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. Regarding the specific ranking algorithm, 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.
具体地,利用训练完成的神经网络训练learning-to-rank模型对所述自然语言查询语句进行意图识别。Specifically, a learning-to-rank model is trained using a trained neural network to perform intention recognition on the natural language query sentence.
例如,用户输入自然语言查询语句“天虹基金公司好不好”,通过步骤S103可以得到查询意图为“公司概况”。For example, if the user inputs the natural language query sentence "Is Rainbow Fund Company good", the query intention can be obtained as "company profile" through step S103.
至此,通过步骤S102和步骤S103可以确定自然语言查询语句的查询实体名称以及查询意图,上述两种参数的组合可以明确地指示用户想要的内容。So far, 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.
本实施例中,在获取用户的自然语言查询语句之前,可以预先建立预设映射关系,以建立实体名称和意图的组合与答案的对应关系。In this embodiment, before acquiring the natural language query sentence of the user, 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.
进而在步骤S104中,可以利用自然语言查询语句中的查询实体名称、自然语言查询语句的查询意图以及预设映射关系确定自然语言查询语句的答案。所述预设映射关系包括多个实体名称和意图的组合及其对应的答案。Furthermore, in step S104, 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.
在具体的实现中,预设映射关系还可以是实体名称和意图的组合与查询指令的映射关系,每一查询指令可以通过查询操作确定唯一的答案。例如,查询指令可以是结构化查询语言(Structured Query Language,SQL)语句,通过该SQL语句可以在数据库中查询到答案,并将该答案反馈给用户。In a specific implementation, 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. For example, 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.
具体地,预设映射关系可以存储在数据库中,在需要时,可以从数据库中调用预设映射关系。Specifically, 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.
本发明一个非限制性的实施例中,所述实体名称选自基金产品、基金经理以及基金公司的名称,或者选自保险产品、保险经理以及保险公司的名称,或者选自理财产品、理财经理以及理财公司的名称。In a non-limiting embodiment of the present invention, 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.
换句话说,本发明实施例的信息查询方法可以对基金相关信息、保险相关信息以及理财相关信息进行查询,以满足用户在不同应用场景下的不同需求。In other words, 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.
在本发明一个具体实施例中,图1所示信息查询方法还可以包括以下步骤:将所述答案反馈给所述用户。In a specific embodiment of the present invention, the information query method shown in FIG. 1 may further include the following step: feeding back the answer to the user.
具体而言,可以将所述答案以预设的格式展示给用户,例如可以以文本的方式进行展示;或者,可以将所述答案以语音的方式进行播报,还可以将所述答案以文字和答案相结合的方式进行展示。Specifically, 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.
在本发明一个具体实施例中,请参照图2,图1所示步骤S104可以包括以下步骤:In a specific embodiment of the present invention, please refer to FIG. 2. Step S104 shown in FIG. 1 may include the following steps:
步骤S201:将所述查询实体名称与多个预设映射关系中的实体名称进行匹配;Step S201: Match the query entity name with entity names in multiple preset mapping relationships;
步骤S202:如果存在预设映射关系中的实体名称与所述查询实体名称相匹配,则将匹配的预设映射关系中的意图与所述查询意图进行匹配;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;
步骤S203:如果所述匹配的预设映射关系中的意图与所述查询意图相匹 配,则将所述匹配的预设映射关系中的答案作为所述自然语言查询语句对应的答案。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.
需要指出的是,关于步骤S201和步骤S202,也可以替换为以下步骤:先将查询意图与多个预设映射关系中的意图进行匹配;如果存在预设映射关系中的意图与所述查询意图相匹配,则将所述预设映射关系中的实体名称与所述查询实体名称进行匹配,本发明实施例对此不作限制。It should be noted that 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.
本实施例中,在确定自然语言查询语句的答案时,需要确定预设映射关系中的实体名称与查询实体名称相匹配,并且该预设映射关系中的意图与查询意图相匹配,才确定该预设映射关系中的答案为自然语言查询语句的答案,通过实体名称和意图均匹配的方式来保证匹配到的答案的准确性。In this embodiment, 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.
进一步而言,如果同一预设映射关系中仅存在意图与查询意图相匹配,或者实体名称与查询实体名称相匹配,则不能确定自然语言查询语句对应的答案。在这种情况下,可以向用户返回预设引导语句,以指示用户更新自然语言查询语句。例如“您的问题可以再具体一些吗”、“您可以问我基金相关的一些知识”等。Furthermore, if there is only an intent matching the query intent in the same preset mapping relationship, or the entity name matches the query entity name, the answer corresponding to the natural language query sentence cannot be determined. In this case, 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.
更具体地,图2所示步骤S203可以包括以下步骤:直接将所述匹配的预设映射关系中实体名称和意图的组合对应的答案作为所述自然语言查询语句对应的答案;或者,确定所述匹配的预设映射关系中实体名称和意图的组合对应的查询指令,并将执行所述查询指令得到的答案作为所述自然语言查询语句对应的答案。More specifically, 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.
也就是说,预设映射关系中实体名称和意图的组合可以直接与答案相对应,预设映射关系包括实体名称和意图的组合以及答案,在这种情况下,可以直接将匹配的预设映射关系中的答案作为自然语言查询语句对应的答案。In other words, 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. In this case, The answer obtained by executing the query instruction may be used as the answer corresponding to the natural language query sentence.
需要说明的是,所述查询指令可以是SQL语句,也可以是其他任意可实 施的能够执行查询操作的非结构化的查询指令,本发明实施例对此不作限制。It should be noted that 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.
在本发明一个优选实施例中,图1所示步骤S102可以包括以下步骤:将所述自然语言查询语句输入至预先训练完成的实体名称识别模型,以得到所述自然语言查询语句中的实体名称,其中,在利用训练数据对所述实体名称识别模型进行训练时,训练数据包括各个实体名称的全称以及简称。In a preferred 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.
在实际的应用中,用户需要查询的实体名称的全称比较长,而用户通常会使用实体名称的简称来进行查询,以基金产品为例,基金的名称通常都很长,例如“华夏乐享健康混合”、“华夏行业龙头混合”,“博时月月盈短期理财债券”等,但是用户一般记不住基金的全称,输入的自然语言查询语句中通常都是省略过的基金名称,例如“华夏乐享”、“华夏龙头混合”,“博士月月盈”,导致查询不到结果。In practical applications, 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. Taking fund products as an example, 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.
在利用实体名称识别模型对自然语言查询语句进行实体名称识别时,为了保证实体名称识别的全面性和准确性,可以利用各个实体名称的全称以及简称来构建训练数据,并利用上述训练数据对实体名称识别模型进行训练,从而使得训练完成的实体名称识别模型可以对各个实体名称的全称或简称进行识别,避免遗漏实体名称,进而保证信息查询的准确性。In order to ensure the comprehensiveness and accuracy of entity name recognition when using the entity name recognition model to recognize the entity name in natural language query sentences, 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.
本发明一个非限制性的实施例中,请参照图3,图1所示步骤S102之前还可以包括以下步骤:In a non-limiting embodiment of the present invention, please refer to FIG. 3. Before step S102 shown in FIG. 1, the following steps may also be included:
步骤S301:将所述自然语言查询语句中各个词语的拼音与预设实体名称列表中各个预设实体名称的拼音进行匹配,以得到匹配结果,所述预设实体名称列表包括多个预设实体名称及其拼音;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;
步骤S302:如果所述匹配结果表示存在预设实体名称的拼音与所述自然语言查询语句中的词语的拼音相匹配,则将所述词语更新为匹配的预设实体名称。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.
具体实施中,由于自然语言查询语句是用户通过输入法输入的,难免会出现错别字,或者用户故意输入错误的情况,因此需要对自然语言查询语句中的错别字进行纠正,尤其是针对自然语言查询语句中的实体名称进行错别 字纠正,以保证后续步骤中实体名称识别的正确性。In the specific implementation, since the natural language query sentence is input by the user through the input method, it is inevitable that there will be typos or the user deliberately enters the error. Therefore, it is necessary to correct the typos in the natural language query sentence, especially for the natural language query sentence Correct the typos in the entity name in the following steps to ensure the correctness of the entity name recognition in the subsequent steps.
具体可以预先建立预设实体名称列表,预设实体名称列表包括多个预设实体名称及其拼音。还可以对自然语言查询语句进行拼音转换,以得到自然语言查询语句中各个词语的拼音。Specifically, 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.
在步骤S301和步骤S302的具体实施中,可以分别将自然语言查询语句中各个词语的拼音与预设实体名称列表中各个预设实体名称的拼音进行匹配,例如可以进行模糊匹配。如果存在与词语的拼音相匹配的预设实体名称的拼音,则将所述词语更新为匹配的预设实体名称。In the specific implementation of step S301 and step S302, 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.
本发明实施例中,为了避免用户输入的自然语言查询语句中的错别字导致的查询错误,可以通过拼音匹配的方式更新实体名称,从而进一步保证最终匹配到的答案的准确性。In the embodiment of the present invention, 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.
在一个具体的应用场景中,用户输入自然语言查询语句“天虹基金公司好不好”,其中,“天虹基金”的拼音与预设实体名称列表中“天弘基金”的拼音相同,故而将“天虹基金”更新为“天弘基金”;通过实体名称识别步骤识别得到查询实体名称为“天弘基金”,自然语言查询语句的意图为“公司概况”。In a specific application scenario, 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".
本发明一个非限制性的实施例中,图1所示步骤S102之前还可以包括以下步骤:对所述自然语言查询语句进行预处理操作,所述预处理操作选自过滤敏感词和字体转换。In a non-limiting embodiment of the present invention, 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.
具体实施中,在执行实体名称识别和意图识别之前,可以对自然语言查询语句中的敏感词进行过滤,例如敏感词可以包括辱骂词语、敏感性人名、敏感性名词等。当在自然语言查询语句中匹配到了敏感词时,可以直接将该敏感词进行过滤,并进行后续的步骤。或者也可以直接返回预设的语句,不会进行后续的处理流程。In specific implementation, before performing entity name recognition and intention recognition, sensitive words in natural language query sentences can be filtered. For example, sensitive words can include abusive words, sensitive names, and sensitive nouns. When a sensitive word is matched in the natural language query sentence, 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.
具体实施中,在执行实体名称识别和意图识别之前,还可以对自然语言查询语句的字体进行字体转换,以使得自然语言查询语句中各个词语的字体一致。具体如自然语言查询语句为中文时,将自然语言查询语句统一转为为简体中文。In specific implementation, before performing entity name recognition and intent recognition, 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. Specifically, when the natural language query sentence is in Chinese, the natural language query sentence is unified into simplified Chinese.
关于具体的敏感词的设置或者具体的转换字体的设置,可以根据实际的 应用环境进行适应性的配置和修改,本发明实施例对此不作限制。Regarding the setting of specific sensitive words or the setting of specific conversion fonts, adaptive configuration and modification can be made according to the actual application environment, which is not limited in the embodiment of the present invention.
在一个具体的应用场景中,用户输入自然语言查询语句“华夏公司垃圾”,识别出敏感词“垃圾”,在这种情况下可以直接返回特定的话术,也可以将该敏感词过滤,得到“华夏公司”,并继续执行后续的步骤。In a specific application scenario, the user enters the natural language query sentence "Huaxia Company Garbage" to identify the sensitive word "garbage". In this case, it can directly return to specific words, or filter the sensitive word to get " Huaxia Company" and continue to implement the subsequent steps.
请参照图4,本发明实施例还公开了一种信息查询装置40,信息查询装置40可以包括自然语言查询语句获取模块401、实体名称识别模块402、意图识别模块403和答案确定模块404。4, 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.
其中,自然语言查询语句获取模块401用以获取用户输入的自然语言查询语句;实体名称识别模块402用以通过所述自然语言查询语句,对实体列表中的实体进行排序;意图识别模块403用以通过实体名称识别模块402所确定的实体名称,对该实体对应的意图进行排序,以得到所述自然语言查询语句的查询意图;答案确定模块404用以根据所述查询实体名称和所述查询意图的组合与预设映射关系确定所述自然语言查询语句对应的答案,所述预设映射关系包括多个实体名称和意图的组合及其对应的答案。Among them, 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.
本发明实施例中,对于用户输入的自然语言查询语句,可以识别确定自然语言查询语句中的查询实体名称以及自然语言查询语句的查询意图;通过预先建立的预设映射关系,可以确定实体名称和意图的组合与答案的对应关系,由此,可以利用自然语言查询语句中的查询实体名称、自然语言查询语句的查询意图以及预设映射关系确定自然语言查询语句的答案。本发明实施例利用实体名称与意图的组合来确定答案的方式,可以保证答案确定的准确性和针对性,避免了现有技术中需要用户二次查询才能确定答案的方式,提升了信息查询的便捷性以及用户体验。In the embodiment of the present invention, for the natural language query sentence input by the user, 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.
关于所述信息查询装置40的工作原理、工作方式的更多内容,可以参照图1至图3中的相关描述,这里不再赘述。For more details about the working principle and working mode of the information query device 40, reference may be made to the related descriptions in FIGS. 1 to 3, which will not be repeated here.
本发明实施例还公开了一种存储介质,其上存储有计算机指令,所述计算机指令运行时可以执行图1、图2或图3中所示方法的步骤。所述存储介质可以包括ROM、RAM、磁盘或光盘等。所述存储介质还可以包括非挥发性存储器(non-volatile)或者非瞬态(non-transitory)存储器等。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.
本发明实施例还公开了一种智能终端,所述智能终端可以包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的计算机指令。所述处理器运行所述计算机指令时可以执行图1、图2或图3中所示方法的步骤。所述智能终端包括但不限于手机、计算机、平板电脑等终端设备。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.
虽然本发明披露如上,但本发明并非限定于此。任何本领域技术人员,在不脱离本发明的精神和范围内,均可作各种更动与修改,因此本发明的保护范围应当以权利要求所限定的范围为准。Although the present invention is disclosed as above, the present invention is not limited to this. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be subject to the scope defined by the claims.

Claims (13)

  1. 一种信息查询方法,其特征在于,包括: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.
  2. 根据权利要求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.
  3. 根据权利要求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.
  4. 根据权利要求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.
  5. 根据权利要求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.
  6. 根据权利要求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.
  7. 根据权利要求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.
  8. 根据权利要求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.
  9. 根据权利要求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.
  10. 根据权利要求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.
  11. 一种信息查询装置,其特征在于,包括: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.
  12. 一种存储介质,其上存储有计算机指令,其特征在于,所述计算机指令运行时执行权利要求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.
  13. 一种智能终端,包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的计算机指令,其特征在于,所述处理器运行所述计算机指令时执行权利要求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.
PCT/CN2020/083561 2019-09-12 2020-04-07 Information query method and apparatus, storage medium, and smart terminal WO2021047169A1 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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