WO2021139184A1 - Data query and display method, device, computer system, and readable storage medium - Google Patents

Data query and display method, device, computer system, and readable storage medium Download PDF

Info

Publication number
WO2021139184A1
WO2021139184A1 PCT/CN2020/112517 CN2020112517W WO2021139184A1 WO 2021139184 A1 WO2021139184 A1 WO 2021139184A1 CN 2020112517 W CN2020112517 W CN 2020112517W WO 2021139184 A1 WO2021139184 A1 WO 2021139184A1
Authority
WO
WIPO (PCT)
Prior art keywords
query
carrier
end carrier
tag
pop
Prior art date
Application number
PCT/CN2020/112517
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 WO2021139184A1 publication Critical patent/WO2021139184A1/en

Links

Classifications

    • 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/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • 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/335Filtering based on additional data, e.g. user or group profiles
    • 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/338Presentation of query results
    • 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/9535Search customisation based on user profiles and personalisation
    • 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/9538Presentation of query results
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • This application relates to the field of communication technology, and in particular to a data query and display method, device, computer system, and readable storage medium. It can be applied in the field of artificial intelligence natural language processing technology.
  • search engine When users browse the application, they will obtain the information they want to know through the search engine according to their needs. However, after the user enters the query term, the search engine will usually segment the term to obtain keywords, and then obtain keywords from the Internet according to the keywords. To obtain the required web page information.
  • This method based on keyword matching will result in too many keywords and no classification of keywords, such as the classification of named entities and queryers’ intentions, resulting in search engines based on all keywords at the same time and obtain them from the Internet.
  • the matched information is sorted by time or relevance.
  • the inventor realizes that because the queryer’s intention is not understood, the query workload will be large, the query efficiency will be low, and the query accuracy will be low. .
  • the purpose of this application is to provide a data query display method, device, computer system, and readable storage medium, which are used to solve the problem of the existing technology that does not classify the queryer’s intentions, resulting in a large query workload and query Low efficiency and low query accuracy.
  • this application provides a data query and display method, which includes the following steps:
  • the query result is loaded into the front-end carrier to form a display carrier, and the display carrier is output to the user terminal.
  • this application also provides a data query and display device, including:
  • a creation module configured to create at least one front-end carrier and create a query interface in the front-end carrier, generate a carrier label according to the query interface and associate it with the corresponding front-end carrier;
  • the recognition module is used to receive the query term output by the user terminal, and identify the intent keywords and named entities in the query term;
  • the query module is used to compare the intent keyword with the carrier tag to obtain the target carrier tag corresponding to the intent keyword, and query the target carrier tag that matches the named entity through the query interface corresponding to the target carrier tag search result;
  • the display module is used to load the query result into the front-end carrier to form a display carrier, and output the display carrier to the user terminal.
  • a computer system which includes a plurality of computer devices, each computer device includes a memory.
  • a processor and a computer program stored in the memory and running on the processor, the plurality of computers
  • the data query and display method is implemented, and the data query and display method includes:
  • the query result is loaded into the front-end carrier to form a display carrier, and the display carrier is output to the user terminal.
  • the present application also provides a computer-readable storage medium, which includes multiple storage media, each of which stores a computer program, and when the computer program stored in the multiple storage media is executed by a processor
  • a data query display method is implemented, and the data query display method includes:
  • the query result is loaded into the front-end carrier to form a display carrier, and the display carrier is output to the user terminal.
  • the data query and display method, device, computer system, and readable storage medium provided in this application identify the intent keywords and named entities in the query terms, and obtain the front-end carrier and the query interface that match the intent keywords.
  • the technical effect of accurately understanding the query intent of the query term is achieved, thereby solving the large query workload caused by the large number of query keywords in the prior art.
  • the problem of low query efficiency and low accuracy of query results is achieved.
  • FIG. 1 is a flowchart of Embodiment 1 of the data query and display method of this application;
  • FIG. 2 schematically shows an environmental application diagram of the data query display method according to the first embodiment of the present application
  • Embodiment 3 is a schematic diagram of program modules of Embodiment 2 of the data query and display device of this application;
  • FIG. 4 is a schematic diagram of the hardware structure of the computer equipment in the third embodiment of the computer system of this application.
  • Display module 51 Memory 52. Processor
  • the data query and display method, device, computer system, and readable storage medium provided in this application are suitable for the communication field, and provide a data query and display method based on a creation module, an identification module, a query module, and a display module.
  • a front-end carrier is created and a query interface is created in the front-end carrier, and a carrier tag is generated according to the query interface and associated with the front-end carrier; by identifying intent keywords and named entities in the query entry ;
  • the query result is obtained through the query interface according to the named entity; by loading the query result into the front-end carrier Form a display carrier.
  • a data query display method of this embodiment includes the following steps:
  • S101 Create at least one front-end carrier and create a query interface in the front-end carrier, generate a carrier tag according to the query interface and associate it with the corresponding front-end carrier;
  • S102 Receive the query term output by the user terminal, and identify the intended keywords and named entities in the query term;
  • S103 Compare the intent keyword with the carrier tag to obtain a target carrier tag corresponding to the intent keyword, and query a query result matching the named entity through a query interface corresponding to the target carrier tag;
  • S104 Load the query result into the front-end carrier to form a display carrier, and output the display carrier to the user terminal.
  • the data query and display method of this embodiment runs in the server 2, and the server 2 is connected to multiple clients 4 through the network 3;
  • a front-end carrier is created in the server 2 and a query interface is created in the front-end carrier, and a carrier tag is generated according to the query interface and associated with the front-end carrier.
  • the front-end carrier is a pop-up layer, and the pop-up layer is generated based on the layer component and used to pop up on the display screen as a window for displaying content carriers;
  • the query interface in this application is based on An interface for information query by a named entity, where the interface is a set of named method signatures, which are defined with methods, attributes, and events.
  • the client 4 outputs a query entry containing the intended keywords and named entities.
  • the query entry is output in the form of a data packet from the client to the server 2 through the network 3; the server 2 decodes the received data packet to Obtain query terms, and identify the intended keywords and named entities.
  • the server 2 obtains a front-end carrier that matches the intended keyword.
  • the carrier tag of the method therefore, the intent keyword is compared with the carrier tag of the front-end carrier to obtain the front-end carrier that matches the intent keyword, so as to achieve the front-end carrier that best matches the intent keyword in the query entry
  • the server 2 obtains the query interface of the front-end carrier, calls the query interface and queries from the Internet according to the named entity and obtains the query result.
  • This application uses the intention keyword as the method and the named entity as the object for query, therefore The effect of fitting the user's query intention to the greatest extent is achieved.
  • the server 2 loads the query result into the editable area of the front-end carrier to form a display carrier, and outputs the display carrier to the user terminal 4.
  • Network 3 can include various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices and/ Or wait.
  • the network 3 may include physical links, such as coaxial cable links, twisted pair cable links, optical fiber links, combinations thereof, and/or the like.
  • the network 3 may include wireless links, such as cellular links, satellite links, Wi-Fi links, and/or the like.
  • the user end 4 may include various user end devices, for example, a mobile phone, a desktop computer, a notebook computer, and/or the like.
  • the server 2 may consist of a single or multiple computer devices (eg, servers).
  • the single or multiple computing devices may include virtualized computing instances.
  • Virtualized computing instances may include virtual machines, such as computer system simulations, operating systems, servers, and so on.
  • the computing device may load a virtual machine based on a virtual image and/or other data defining specific software (eg, operating system, dedicated application, server) for simulation. As the demand for different types of processing services changes, different virtual machines can be loaded and/or terminated on one or more computing devices.
  • a hypervisor can be implemented to manage the use of different virtual machines on the same computing device.
  • creating at least one front-end carrier and creating a query interface in the front-end carrier in S101, and generating a carrier label according to the query interface and associating it with the corresponding front-end carrier includes:
  • the pop-up layer components can be layer, jQuery pop-up layer plug-in or réelle Pop-up layer components;
  • Formulate a carrier label used to describe the method in the query interface, and add the carrier label to the front-end carrier to associate it with the front-end carrier; for example, add a text area to the front-end carrier, and add the The carrier label is written into the text area so that it is associated with the front-end carrier.
  • the shape of the pop-up layer is in the form of a card
  • the shape of the pop-up layer is in the form of a card
  • the pop-up layer has a text area where a carrier label can be written. Need to add the part of the text area.
  • the front-end carrier associated with the carrier tag is stored in a preset database.
  • the configuration parameter is a configuration file stored in the pop-up layer component and used to express the configuration information of the pop-up layer size, style, color, text area, and pop-up animation
  • the method in the query interface is The code for querying specified information
  • the carrier tag is the tag information used to describe the method in the query interface
  • the predefined method is a method written by the developer through the computer to perform a specific action, such as "from the Internet "Crawling the stock price charts of various financial institutions", you can use the "stock price chart” in this method as a carrier tag to describe the method.
  • front-end carrier by creating a front-end carrier and its query interface, and adding a carrier tag describing the method in the query interface on the front-end carrier, it is possible to provide a variety of different query methods to meet the query requirements of query terms. It also ensures that the front-end carrier is in a one-to-one correspondence with the query interface and the carrier label, so that the information obtained through the query interface will be loaded into the designated front-end carrier, and then displayed, avoiding the use of a unified carrier to cause some information to be unavailable
  • the loading of the carrier causes the information to be unable to pop up, and the use of a specific front-end carrier to display specific information also improves the recognition of the information displayed on the user side.
  • the following includes:
  • the intention recognition algorithm is an algorithm formed by a combination of a mature CNN model and a softmax function.
  • CNN Convolutional Neural Network, convolutional neural network
  • the CNN is a feed-forward neural network, and its artificial neurons can respond to a part of the surrounding units in the coverage area.
  • Obtain a training entry with an intent label where the intent label is used to express the true intention of the training entry. For example, if the training entry is "I want to see the stock price of Bank of China", then the intent label of the training entry is "stock price” "; Use the training entry to train the CNN model to obtain the parameters of each layer of the CNN model. Specifically, the Chinese word segmentation algorithm of the natural language processing model is first used to segment the training entries to form a vocabulary set.
  • the word embedding (Word Embedding) component or the distributed vector (Distributional Vectors) component of the natural language processing model is used to convert the training entry into a word vector, where the word embedding component and the distributed vector component are words that represent natural language
  • the technology is converted into a vector or matrix form that the computer can understand; by using the word vector in the training entry with the intention label as the input of the initial CNN model, the initial CNN model passes the word vector of each word through the hidden layer (Hidden Layer), After the bottom layers of the convolution layer and the polling layer are processed, they undergo the dropout layer transformation, and then go through the full connect layer (FCL) transformation processing to obtain the processing result; adopt The loss function categorical cross-entropy corresponding to softmax, calculates the loss function according to the processing result and the intention label to obtain the loss function value, and optimizes the CNN model based on the
  • the entity recognition algorithm is a mature RNN model.
  • the RNN (Recurrent Neural Network) model is an artificial neural network in which nodes are directionally connected into a ring. The internal state of this network can exhibit dynamic timing behavior.
  • the Chinese word segmentation algorithm of the natural language processing model is first used to segment the training entries to form a vocabulary set.
  • word embedding component and distributed vector component are technologies that convert words expressed in natural language into vectors or matrices that can be understood by computers; by transforming training words with entity labels The word vector in the bar is used as the input of the initial RNN model, and the RNN named entity recognition model is trained until the iterative condition position is satisfied.
  • the CNN model and the RNN model belong to the existing technology, so those skilled in the art can train the CNN model and the RNN model according to common knowledge, and obtain the target model; and the technical problem to be solved in this application is how Intent keywords and named entities are obtained from query terms. Therefore, intent keywords and named entities are identified by creating an intent recognition algorithm and an entity recognition algorithm to improve the accuracy of recognition; therefore, the specific training of the CNN model and the RNN model The process will not be repeated here.
  • the recognition accuracy is reduced due to the use of a single neural network to recognize multiple types of information at the same time; therefore, the recognition accuracy of intent keywords and named entities is improved.
  • the identification of intent keywords and named entities in the query term in S102 includes:
  • the intent keywords obtained by the intent recognition algorithm are set as the query method of the query term, and the named entities obtained by the entity recognition algorithm are set as the query object of the query term; by setting the query method and the query object from the query The way of separating the entry, separate understanding of the method and purpose of the query entry, in order to more accurately grasp the inquirer's intention.
  • comparing the intent keyword with the front-end carrier in S103 to obtain the target front-end carrier corresponding to the intent keyword includes:
  • the intended keyword is compared with the carrier tag of each of the front-end carriers to obtain a carrier tag matching the intended keyword, and the front-end carrier corresponding to the carrier tag is set as the target front-end carrier.
  • the carrier tag is information describing the method in the query interface of the front-end carrier.
  • the intent keyword is "stock price”
  • the carrier label with the content of "stock price chart” in each front-end carrier is used as the carrier label that matches the intent keyword
  • the front-end carrier corresponding to the carrier label is obtained
  • the The query interface corresponding to the front-end carrier, and the method in the query interface is to crawl the stock price charts of various financial institutions from the Internet.
  • query stock price chart is a method to query information from the Internet to ensure that the user's true intention is implemented, thereby improving the accuracy and reliability of the query.
  • the query result matching the named entity through the query interface corresponding to the target carrier tag in the S103 includes:
  • the query interface is called to query the information matching the named entity on the Internet, and the information is set as the query result.
  • the named entity is "Bank of China”. Since the method in the query interface is "crawling the stock price charts of financial institutions from the Internet", the method in the query interface is called and "Bank of China” is called.
  • the query result can be text information, or PDF format information, or picture format information, or table format information.
  • loading the query result into the front-end carrier in S104 includes:
  • the front-end carrier has an editable area for displaying information
  • Loading the query result into the editable area turns the front-end carrier into a display carrier.
  • the query result is written into the editable area in the form of "paste"; if the query result is PDF format information, or picture format information, or table format information, the query result is written as " Insert into the editable area.
  • the display carrier is quickly and concisely displayed on the user end, and the user can quickly obtain the query results he needs through the display carrier on the user end, which not only improves the efficiency of the user to obtain information, but also because the user end is only concise
  • the display carrier solves the problem of low loading speed of query results caused by the need to display a large amount of redundant or related information on the current user side.
  • the user terminal can manage the display carrier through operations such as movement, deletion, etc., which eliminates the dependence of the user terminal on the system menu. So that users do not need to search for the functions they want in a variety of menus; and because the front-end carrier itself is related to the intent keywords, only the display of the carrier can convey the inquiries of the queryer and the corresponding named entity to the user The information enables users to intuitively know the results they want, reduces user steps, and improves usability and convenience.
  • a data query display device 1 of this embodiment includes:
  • the creation module 11 is configured to create at least one front-end carrier and create a query interface in the front-end carrier, generate a carrier label according to the query interface and associate it with the corresponding front-end carrier;
  • the recognition module 12 is configured to receive the query term output by the user terminal, and identify the intended keywords and named entities in the query term;
  • the query module 13 is configured to compare the intended keyword with the carrier tag to obtain the target carrier tag corresponding to the intended keyword, and query the matching with the named entity through the query interface corresponding to the target carrier tag The result of the query;
  • the display module 14 is configured to load the query result into the front-end carrier to form a display carrier, and output the display carrier to the user terminal.
  • This technical solution is based on the intelligent decision-making technology in the field of artificial intelligence. It uses the intent recognition algorithm composed of the mature CNN model in the neural network and the softmax function to identify the intent keywords in the query entry, and uses the intent recognition algorithm in the neural network.
  • the entity recognition algorithm constituted by the mature RNN model can recognize the named entity in the query entry, and realize the technical effect of accurately judging the intent of the query entry through the classification model established by the intent recognition algorithm and the entity recognition algorithm.
  • the present application also provides a computer system, which includes a plurality of computer devices 5.
  • the components of the data query and display device 1 of the second embodiment can be dispersed in different computer devices, and the computer devices can be executed Program smart phones, tablets, laptops, desktop computers, rack servers, blade servers, tower servers or cabinet servers (including independent servers, or server clusters composed of multiple servers), etc.
  • the computer equipment in this embodiment at least includes but is not limited to: a memory 51 and a processor 52 that can be communicatively connected to each other through a system bus, as shown in FIG. 4. It should be pointed out that FIG. 4 only shows a computer device with components, but it should be understood that it is not required to implement all the illustrated components, and more or fewer components may be implemented instead.
  • the memory 51 (ie, readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), Read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disks, optical disks, etc.
  • the memory 51 may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device.
  • the memory 51 may also be an external storage device of the computer device, such as a plug-in hard disk or a smart memory card (Smart Memory Card) equipped on the computer device.
  • the memory 51 may also include both the internal storage unit of the computer device and its external storage device.
  • the memory 51 is generally used to store an operating system and various application software installed in a computer device, such as the program code of the data query display device in the first embodiment, and so on.
  • the memory 51 can also be used to temporarily store various types of data that have been output or will be output.
  • the processor 52 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips.
  • the processor 52 is generally used to control the overall operation of the computer equipment.
  • the processor 52 is configured to run the program code or process data stored in the memory 51, for example, to run a data query and display device, so as to implement the data query and display method of the first embodiment.
  • this application also provides a computer-readable storage system, which includes multiple storage media.
  • the storage media may be non-volatile or volatile, such as flash memory, hard disk, multimedia card, and card.
  • Type memory for example, SD or DX memory, etc.
  • RAM random access memory
  • SRAM static random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • PROM programmable only Read memory
  • magnetic memory magnetic disks, optical disks, servers, App application malls, etc.
  • the computer-readable storage medium of this embodiment is used to store the data query and display device, and when executed by the processor 52, the data query and display method of the first embodiment is implemented.

Abstract

Provided are a data query and display method, device, computer system, and readable storage medium, based on artificial intelligence technology, and comprising the following steps: creating at least one front-end carrier and creating a query interface in the front-end carrier, and generating a carrier label according to the query interface and associating it with the corresponding front-end carrier (S101); receiving a query term outputted by a user terminal, and identifying an intent keyword and named entity in the query term (S102); comparing the intent keyword with the carrier label to obtain a target carrier label corresponding to the intent keyword, and querying the query result matching the named entity by means of the query interface corresponding to the target carrier label (S103); loading the query result into the front-end carrier to form a display carrier, and outputting the display carrier to the user terminal (S104). The method achieves the technical effect of accurately understanding the query intent of a query term, and solves the problems in the prior art, caused by a large number of query keywords, of large query workload, low query efficiency, and low accuracy of query results.

Description

数据查询展示方法、装置、计算机系统及可读存储介质Data query and display method, device, computer system and readable storage medium
本申请要求2020年01月07日提交中国专利局、申请号为CN 202010012714.X,发明名称为“数据查询展示方法、装置、计算机系统及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on January 07, 2020, the application number is CN 202010012714.X, and the invention title is "Data query display method, device, computer system and readable storage medium". The entire content is incorporated into this application by reference.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种数据查询展示方法、装置、计算机系统及可读存储介质。其可应用在人工智能的自然语言处理技术领域。This application relates to the field of communication technology, and in particular to a data query and display method, device, computer system, and readable storage medium. It can be applied in the field of artificial intelligence natural language processing technology.
背景技术Background technique
用户在浏览应用时,会根据其需求通过搜索引擎获取想要获知的信息,然而,用户在录入查询词条后,搜索引擎通常会将该词条进行分词获得关键字,再根据关键字从互联网中获取所需的网页信息。When users browse the application, they will obtain the information they want to know through the search engine according to their needs. However, after the user enters the query term, the search engine will usually segment the term to obtain keywords, and then obtain keywords from the Internet according to the keywords. To obtain the required web page information.
这种基于关键字匹配的方式会因关键字的数量太多且对关键字没有分类,如对命名实体和查询者意图的分类,导致搜索引擎将同时基于所有关键字,从互联网上获取与之匹配的信息,再对其进行时间或相关度的排序。This method based on keyword matching will result in too many keywords and no classification of keywords, such as the classification of named entities and queryers’ intentions, resulting in search engines based on all keywords at the same time and obtain them from the Internet. The matched information is sorted by time or relevance.
通过这种方式查询的信息虽然具有关键字,但发明人意识到,因没有理解查询者意图,将导致查询工作量大,查询效率低以及查询准确度低的问题发生。。Although the information queried in this way has keywords, the inventor realizes that because the queryer’s intention is not understood, the query workload will be large, the query efficiency will be low, and the query accuracy will be low. .
发明内容Summary of the invention
本申请的目的是提供一种数据查询展示方法、装置、计算机系统及可读存储介质,用于解决现有技术存在的因没有对查询者意图进行分类处理,所导致的查询工作量大,查询效率低以及查询准确度低的问题。The purpose of this application is to provide a data query display method, device, computer system, and readable storage medium, which are used to solve the problem of the existing technology that does not classify the queryer’s intentions, resulting in a large query workload and query Low efficiency and low query accuracy.
为实现上述目的,本申请提供一种数据查询展示方法,包括以下步骤:In order to achieve the above-mentioned purpose, this application provides a data query and display method, which includes the following steps:
创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联;Creating at least one front-end carrier and creating a query interface in the front-end carrier, generating a carrier tag according to the query interface and associating it with the corresponding front-end carrier;
接收由用户端输出的查询词条,并识别所述查询词条中的意图关键词和命名实体;Receiving the query terms output by the user terminal, and identifying the intended keywords and named entities in the query terms;
将所述意图关键词与所述载体标签比对以获得与所述意图关键词对应的目标载体标签,通过所述目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果;Comparing the intent keyword with the carrier tag to obtain a target carrier tag corresponding to the intent keyword, and querying a query result matching the named entity through a query interface corresponding to the target carrier tag;
将所述查询结果载入所述前端载体形成展示载体,将所述展示载体输出至所述用户端。The query result is loaded into the front-end carrier to form a display carrier, and the display carrier is output to the user terminal.
为实现上述目的,本申请还提供一种数据查询展示装置,包括:In order to achieve the above objective, this application also provides a data query and display device, including:
创建模块,用于创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联;A creation module, configured to create at least one front-end carrier and create a query interface in the front-end carrier, generate a carrier label according to the query interface and associate it with the corresponding front-end carrier;
识别模块,用于接收由用户端输出的查询词条,并识别所述查询词条中的意图关键词和命名实体;The recognition module is used to receive the query term output by the user terminal, and identify the intent keywords and named entities in the query term;
查询模块,用于将所述意图关键词与所述载体标签比对以获得与所述意图关键词对应的目标载体标签,通过所述目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果;The query module is used to compare the intent keyword with the carrier tag to obtain the target carrier tag corresponding to the intent keyword, and query the target carrier tag that matches the named entity through the query interface corresponding to the target carrier tag search result;
展示模块,用于将所述查询结果载入所述前端载体形成展示载体,将所述展示载体输出至所述用户端。为实现上述目的,本申请还提供一种计算机系统,其包括多个计算机设备,各计算机设备包括存储器. 处理器以及存储在存储器上并可在处理器上运行的计算机程序,所述多个计算机设备的处理器执行所述计算机程序时实现数据查询展示方法,所述数据查询展示方法包括: The display module is used to load the query result into the front-end carrier to form a display carrier, and output the display carrier to the user terminal. In order to achieve the above object, the present application also provides a computer system, which includes a plurality of computer devices, each computer device includes a memory. A processor and a computer program stored in the memory and running on the processor, the plurality of computers When the processor of the device executes the computer program, the data query and display method is implemented, and the data query and display method includes:
创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联;Creating at least one front-end carrier and creating a query interface in the front-end carrier, generating a carrier tag according to the query interface and associating it with the corresponding front-end carrier;
接收由用户端输出的查询词条,并识别所述查询词条中的意图关键词和命名实体;Receiving the query terms output by the user terminal, and identifying the intended keywords and named entities in the query terms;
将所述意图关键词与所述载体标签比对以获得与所述意图关键词对应的目标载体标签,通过所述目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果;Comparing the intent keyword with the carrier tag to obtain a target carrier tag corresponding to the intent keyword, and querying a query result matching the named entity through a query interface corresponding to the target carrier tag;
将所述查询结果载入所述前端载体形成展示载体,将所述展示载体输出至所述用户端。The query result is loaded into the front-end carrier to form a display carrier, and the display carrier is output to the user terminal.
为实现上述目的,本申请还提供一种计算机可读存储介质,其包括多个存储介质,各存储介质上存储有计算机程序,所述多个存储介质存储的所述计算机程序被处理器执行时实现数据查询展示方法,所述数据查询展示方法包括: To achieve the foregoing objective, the present application also provides a computer-readable storage medium, which includes multiple storage media, each of which stores a computer program, and when the computer program stored in the multiple storage media is executed by a processor A data query display method is implemented, and the data query display method includes:
创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联;Creating at least one front-end carrier and creating a query interface in the front-end carrier, generating a carrier tag according to the query interface and associating it with the corresponding front-end carrier;
接收由用户端输出的查询词条,并识别所述查询词条中的意图关键词和命名实体;Receiving the query terms output by the user terminal, and identifying the intended keywords and named entities in the query terms;
将所述意图关键词与所述载体标签比对以获得与所述意图关键词对应的目标载体标签,通过所述目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果;Comparing the intent keyword with the carrier tag to obtain a target carrier tag corresponding to the intent keyword, and querying a query result matching the named entity through a query interface corresponding to the target carrier tag;
将所述查询结果载入所述前端载体形成展示载体,将所述展示载体输出至所述用户端。The query result is loaded into the front-end carrier to form a display carrier, and the display carrier is output to the user terminal.
本申请提供的数据查询展示方法、装置、计算机系统及可读存储介质,通过识别查询词条中的意图关键词和命名实体,并获得与所述意图关键词匹配的前端载体及其查询接口,通过调用所述查询接口并根据所述命名实体获得查询结果,以实现准确理解查询词条的查询意图的技术效果,进而解决现有技术存在的因查询关键字较多导致的查询工作量大、查询效率低、以及查询结果准确度低的问题。The data query and display method, device, computer system, and readable storage medium provided in this application identify the intent keywords and named entities in the query terms, and obtain the front-end carrier and the query interface that match the intent keywords. By calling the query interface and obtaining query results according to the named entity, the technical effect of accurately understanding the query intent of the query term is achieved, thereby solving the large query workload caused by the large number of query keywords in the prior art. The problem of low query efficiency and low accuracy of query results.
附图说明Description of the drawings
图1为本申请数据查询展示方法实施例一的流程图;FIG. 1 is a flowchart of Embodiment 1 of the data query and display method of this application;
图2示意性示出了根据本申请实施例一的数据查询展示方法的环境应用示意图;FIG. 2 schematically shows an environmental application diagram of the data query display method according to the first embodiment of the present application;
图3为本申请数据查询展示装置实施例二的程序模块示意图;3 is a schematic diagram of program modules of Embodiment 2 of the data query and display device of this application;
图4为本申请计算机系统实施例三中计算机设备的硬件结构示意图。FIG. 4 is a schematic diagram of the hardware structure of the computer equipment in the third embodiment of the computer system of this application.
附图标记:Reference signs:
1、数据查询展示装置    2、服务器    3、网络     4、用户端1. Data query display device 2. Server 3. Network 4. User side
5、计算机设备   11、创建模块   12、识别模块   13、查询模块5. Computer equipment 11. Creation module 12. Identification module 13. Query module
14、展示模块    51、存储器     52、处理器14. Display module 51. Memory 52. Processor
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions, and advantages of this application clearer and clearer, the following further describes the application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the application, and are not used to limit the application. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请提供的数据查询展示方法、装置、计算机系统及可读存储介质,适用于通信领域,为提供一种基于创建模块、识别模块、查询模块和展示模块的数据查询展示方法。本申请通过创建前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与所述前端载体关联;通过识别所述查询词条中的意图关键词和命名实体;通过获得与所述意图关键词匹配的前端载体,并获取所述前端载体的查询接口,根据所述命名实体通过所述查询接口获得查询结果;通过将所述查询结果载入所述前端载体形成展示载体。The data query and display method, device, computer system, and readable storage medium provided in this application are suitable for the communication field, and provide a data query and display method based on a creation module, an identification module, a query module, and a display module. In this application, a front-end carrier is created and a query interface is created in the front-end carrier, and a carrier tag is generated according to the query interface and associated with the front-end carrier; by identifying intent keywords and named entities in the query entry ; By obtaining the front-end carrier that matches the intent keyword, and obtaining the query interface of the front-end carrier, the query result is obtained through the query interface according to the named entity; by loading the query result into the front-end carrier Form a display carrier.
实施例一:Example one:
请参阅图1,本实施例的一种数据查询展示方法,包括以下步骤:Please refer to Fig. 1, a data query display method of this embodiment includes the following steps:
S101:创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联;S101: Create at least one front-end carrier and create a query interface in the front-end carrier, generate a carrier tag according to the query interface and associate it with the corresponding front-end carrier;
S102:接收由用户端输出的查询词条,并识别所述查询词条中的意图关键词和命名实体;S102: Receive the query term output by the user terminal, and identify the intended keywords and named entities in the query term;
S103:将所述意图关键词与所述载体标签比对以获得与所述意图关键词对应的目标载体标签,通过所述目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果;S103: Compare the intent keyword with the carrier tag to obtain a target carrier tag corresponding to the intent keyword, and query a query result matching the named entity through a query interface corresponding to the target carrier tag;
S104:将所述查询结果载入所述前端载体形成展示载体,将所述展示载体输出至所述用户端。S104: Load the query result into the front-end carrier to form a display carrier, and output the display carrier to the user terminal.
请参阅图2,本实施例的数据查询展示方法运行在服务器2中,服务器2通过网络3与多个用户端4连接;Please refer to FIG. 2. The data query and display method of this embodiment runs in the server 2, and the server 2 is connected to multiple clients 4 through the network 3;
在服务器2中创建前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与所述前端载体关联。需要说明的是,所述前端载体为弹出层,弹出层是一种基于layer组件所生成的,用于在显示屏上弹出并作为展示内容载体的窗口;本申请中的查询接口是一种根据命名实体进行信息查询的接口,其中接口是一组已命名的方法签名,其定义有方法、属性、事件。A front-end carrier is created in the server 2 and a query interface is created in the front-end carrier, and a carrier tag is generated according to the query interface and associated with the front-end carrier. It should be noted that the front-end carrier is a pop-up layer, and the pop-up layer is generated based on the layer component and used to pop up on the display screen as a window for displaying content carriers; the query interface in this application is based on An interface for information query by a named entity, where the interface is a set of named method signatures, which are defined with methods, attributes, and events.
所述用户端4输出包含有意图关键词和命名实体的查询词条,该查询词条以数据包的形式由用户端通过网络3输出至服务器2;服务器2对接收到的数据包进行解码以获得查询词条,并识别其中的意图关键词和命名实体。The client 4 outputs a query entry containing the intended keywords and named entities. The query entry is output in the form of a data packet from the client to the server 2 through the network 3; the server 2 decodes the received data packet to Obtain query terms, and identify the intended keywords and named entities.
服务器2获得与所述意图关键词匹配的前端载体,其中,前端载体可具有多个,以分别用于通过其查询接口查询不同的内容;多个所述前端载体分别具有用于描述其查询接口的方法的载体标签;因此,将意图关键词与所述前端载体的载体标签进行比对,以获得与意图关键词匹配的前端载体,以实现通过最符合查询词条中意图关键词的前端载体;服务器2获取所述前端载体的查询接口,调用所述查询接口并根据所述命名实体从互联网中查询并获得查询结果,本申请以意图关键词为方法,以命名实体为对象进行查询,因此实现了最大程度上的贴合用户的查询意图的效果。The server 2 obtains a front-end carrier that matches the intended keyword. Among them, there may be multiple front-end carriers for querying different content through its query interface; each of the multiple front-end carriers has a query interface for describing its query interface. The carrier tag of the method; therefore, the intent keyword is compared with the carrier tag of the front-end carrier to obtain the front-end carrier that matches the intent keyword, so as to achieve the front-end carrier that best matches the intent keyword in the query entry The server 2 obtains the query interface of the front-end carrier, calls the query interface and queries from the Internet according to the named entity and obtains the query result. This application uses the intention keyword as the method and the named entity as the object for query, therefore The effect of fitting the user's query intention to the greatest extent is achieved.
服务器2将所述查询结果载入所述前端载体的可编辑区域内,使其形成展示载体,将所述展示载体输出至所述用户端4。The server 2 loads the query result into the editable area of the front-end carrier to form a display carrier, and outputs the display carrier to the user terminal 4.
服务器2可以通过一个或多个网络3提供服务,网络3可以包括各种网络设备,例如路由器,交换机,多路复用器,集线器,调制解调器,网桥,中继器,防火墙,代理设备和/或等等。网络3可以包括物理链路,例如同轴电缆链路,双绞线电缆链路,光纤链路,它们的组合和/或类似物。网络3可以包括无线链路,例如蜂窝链路,卫星链路,Wi-Fi链路和/或类似物。用户端4可以包括各种用户端设备,例如,手机、台式计算机、笔记本计算机和/或等等。Server 2 can provide services through one or more networks 3. Network 3 can include various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices and/ Or wait. The network 3 may include physical links, such as coaxial cable links, twisted pair cable links, optical fiber links, combinations thereof, and/or the like. The network 3 may include wireless links, such as cellular links, satellite links, Wi-Fi links, and/or the like. The user end 4 may include various user end devices, for example, a mobile phone, a desktop computer, a notebook computer, and/or the like.
服务器2可以由单个或多个计算机设备(如,服务器)组成。该单个或多个计算设备可以包括虚拟化计算实例。虚拟化计算实例可以包括虚拟机,诸如计算机系统的仿真,操作系统,服务器等。计算设备可以基于定义用于仿真的特定软件(例如,操作系统,专用应用程序,服务器)的虚拟映像和/或其他数据来加载虚拟机。随着对不同类型的处理服务的需求改变,可以在一个或多个计算设备上加载和/或终止不同的虚拟机。可以实现管理程序以管理同一计算设备上的不同虚拟机的使用。The server 2 may consist of a single or multiple computer devices (eg, servers). The single or multiple computing devices may include virtualized computing instances. Virtualized computing instances may include virtual machines, such as computer system simulations, operating systems, servers, and so on. The computing device may load a virtual machine based on a virtual image and/or other data defining specific software (eg, operating system, dedicated application, server) for simulation. As the demand for different types of processing services changes, different virtual machines can be loaded and/or terminated on one or more computing devices. A hypervisor can be implemented to manage the use of different virtual machines on the same computing device.
在一个优选的实施例中,所述S101中创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联包括:In a preferred embodiment, creating at least one front-end carrier and creating a query interface in the front-end carrier in S101, and generating a carrier label according to the query interface and associating it with the corresponding front-end carrier includes:
创建样本库,所述样本库中具有用于配置及控制弹出层的弹出层组件,所述弹出层组件可为layer、jQuery弹出层插件或vue 弹出层组件;Create a sample library with pop-up layer components for configuring and controlling the pop-up layer. The pop-up layer components can be layer, jQuery pop-up layer plug-in or vue Pop-up layer components;
从所述样本库中提取弹出层组件,并根据该弹出层组件新建弹出层以作为前端载体;其中,用户可根据需要在弹出层组件中配置参数以生成所述前端载体;Extract the pop-up layer component from the sample library, and create a new pop-up layer based on the pop-up layer component as a front-end carrier; wherein, the user can configure parameters in the pop-up layer component as needed to generate the front-end carrier;
通过所述弹出层组件在所述前端载体中创建查询接口,所述查询接口中具有预定义的方法;Creating a query interface in the front-end carrier through the pop-up layer component, and the query interface has a predefined method;
制定用于描述所述查询接口中的方法的载体标签,并将所述载体标签添加在前端载体中使其与所述前端载体关联;如,在所述前端载体中添加文本区域,将所述载体标签写入所述文本区域内,使其与所述前端载体关联。Formulate a carrier label used to describe the method in the query interface, and add the carrier label to the front-end carrier to associate it with the front-end carrier; for example, add a text area to the front-end carrier, and add the The carrier label is written into the text area so that it is associated with the front-end carrier.
进一步地,所述弹出层的形状为卡片形式,所述弹出层的形状为卡片形式,所述弹出层具有可写入载体标签的文本区域,其中,所述文本区域为弹出层用于根据用户需求添加文本区域的部分。Further, the shape of the pop-up layer is in the form of a card, the shape of the pop-up layer is in the form of a card, and the pop-up layer has a text area where a carrier label can be written. Need to add the part of the text area.
进一步地,将关联有载体标签的前端载体储存至预设的数据库中。Further, the front-end carrier associated with the carrier tag is stored in a preset database.
需要说明的是,所述配置参数是一种储存于弹出层组件的配置文件中,用于表达弹出层尺寸、样式、颜色、文本区域、弹出动画的配置信息;所述查询接口中的方法为查询指定信息的代码,而所述载体标签为用于描述该查询接口中方法的标签信息;所述预定义的方法为开发人员通过计算机所编写的执行某一具体动作的方法,如“从互联网中爬取各金融机构的股价图表”,则可将该方法中的“股价图表”作为载体标签以描述所述方法。It should be noted that the configuration parameter is a configuration file stored in the pop-up layer component and used to express the configuration information of the pop-up layer size, style, color, text area, and pop-up animation; the method in the query interface is The code for querying specified information, and the carrier tag is the tag information used to describe the method in the query interface; the predefined method is a method written by the developer through the computer to perform a specific action, such as "from the Internet "Crawling the stock price charts of various financial institutions", you can use the "stock price chart" in this method as a carrier tag to describe the method.
因此,通过创建前端载体及其查询接口,并在前端载体上添加用于描述查询接口中的方法的载体标签的方式,以实现通过提供多种不同的查询方法来满足查询词条的查询需求,并且保证了将前端载体与查询接口和载体标签一一对应,实现了由通过查询接口所获得的信息会载入指定的前端载体中,再进行显示,避免了使用统一载体造成某些信息无法在该载体中加载导致信息无法弹出的情况出现,并且,通过采用特定的前端载体展示特定的信息还提高了该信息在用户端展示的辨识度。Therefore, by creating a front-end carrier and its query interface, and adding a carrier tag describing the method in the query interface on the front-end carrier, it is possible to provide a variety of different query methods to meet the query requirements of query terms. It also ensures that the front-end carrier is in a one-to-one correspondence with the query interface and the carrier label, so that the information obtained through the query interface will be loaded into the designated front-end carrier, and then displayed, avoiding the use of a unified carrier to cause some information to be unavailable The loading of the carrier causes the information to be unable to pop up, and the use of a specific front-end carrier to display specific information also improves the recognition of the information displayed on the user side.
在一个优选的实施例中,所述S102中识别所述查询词条中的意图关键词和命名实体之前包括:In a preferred embodiment, before identifying the intended keywords and named entities in the query terms in S102, the following includes:
创建具有意图识别算法和实体识别算法的自然语言处理模型。Create a natural language processing model with intent recognition algorithms and entity recognition algorithms.
于本实施例中,所述意图识别算法为成熟CNN模型和softmax函数的结合所形成的算法。In this embodiment, the intention recognition algorithm is an algorithm formed by a combination of a mature CNN model and a softmax function.
进一步的,CNN (Convolutional Neural Network,卷积神经网络) 模型是一种前馈神经网络,它的人工神经元可以响应一部分覆盖范围内的周围单元。Furthermore, the CNN (Convolutional Neural Network, convolutional neural network) model is a feed-forward neural network, and its artificial neurons can respond to a part of the surrounding units in the coverage area.
获得具有意图标签的训练词条,其中,意图标签用于表达训练词条的真实意图,例如,训练词条为“我要看中国银行的股价”,那么该训练词条的意图标签为“股价”;利用所述训练词条对所述CNN模型进行训练,得到CNN模型各层的参数。具体的,首先采用自然语言处理模型的中文分词算法对训练词条进行分词,形成词汇集,如,将“我要看中国银行的股价”,分成“我要,看,中国银行,的,股价”;通过自然语言处理模型的词嵌入(Word Embedding)组件或者分布式向量(Distributional Vectors)组件将训练词条转为词向量,其中,词嵌入组件和分布式向量组件是将自然语言表示的单词转换为计算机能够理解的向量或矩阵形式的技术;通过将具有意图标签的训练词条中的词向量作为初始CNN模型的输入,初始CNN模型对各词的词向量经过隐藏层(Hidden Layer)、卷积层 (Convolution Layer)和池化层(Polling Layer)的底层处理之后,经过暂弃层(Dropout Layer)变换,再经过全连通层(Full Connect Layer,FCL)变换处理,获得处理结果;采用softmax对应的损失函数categorical cross-entropy,根据处理结果和意图标签计算所述损失函数获得损失函数值,基于所述损失函数值并通过误差反方向传播算法优化CNN模型,直到满足迭代条件停止。Obtain a training entry with an intent label, where the intent label is used to express the true intention of the training entry. For example, if the training entry is "I want to see the stock price of Bank of China", then the intent label of the training entry is "stock price" "; Use the training entry to train the CNN model to obtain the parameters of each layer of the CNN model. Specifically, the Chinese word segmentation algorithm of the natural language processing model is first used to segment the training entries to form a vocabulary set. For example, "I want to see the stock price of Bank of China" is divided into "I want, see, Bank of China, the, stock price "; The word embedding (Word Embedding) component or the distributed vector (Distributional Vectors) component of the natural language processing model is used to convert the training entry into a word vector, where the word embedding component and the distributed vector component are words that represent natural language The technology is converted into a vector or matrix form that the computer can understand; by using the word vector in the training entry with the intention label as the input of the initial CNN model, the initial CNN model passes the word vector of each word through the hidden layer (Hidden Layer), After the bottom layers of the convolution layer and the polling layer are processed, they undergo the dropout layer transformation, and then go through the full connect layer (FCL) transformation processing to obtain the processing result; adopt The loss function categorical cross-entropy corresponding to softmax, calculates the loss function according to the processing result and the intention label to obtain the loss function value, and optimizes the CNN model based on the loss function value through the error reverse propagation algorithm until the iteration condition is satisfied.
于本实施例中,所述实体识别算法为成熟RNN模型。In this embodiment, the entity recognition algorithm is a mature RNN model.
进一步的,RNN(Recurrent Neural Network,循环神经网络)模型是一种节点定向连接成环的人工神经网络。这种网络的内部状态可以展示动态时序行为。Further, the RNN (Recurrent Neural Network) model is an artificial neural network in which nodes are directionally connected into a ring. The internal state of this network can exhibit dynamic timing behavior.
获得具有实体标签的训练词条,其中,实体标签用于表达训练词条的真实意图,例如,训练词条为“我要看中国银行的股价”,那么该训练词条的实体标签为“中国银行”;利用所述训练词条对所述RNN进行训练,得到RNN模型的参数:隐藏层参数、卷积层参数和池化层参数,并将这些底层参数作为初始领域识别模型中的底层参数。具体的,首先采用自然语言处理模型的中文分词算法对训练词条进行分词,形成词汇集,如,将“我要看中国银行的股价”,分成“我要,看,中国银行,的,股价”;通过自然语言处理模型的词嵌入(Word Embedding)组件或者分布式向量(Distributional Vectors)组件将训练词条转为词向量,其中,词嵌入组件和分布式向量组件是将自然语言表示的单词转换为计算机能够理解的向量或矩阵形式的技术;通过将具有实体标签的训练词条中的词向量作为初始RNN模型的输入,对RNN命名实体识别模型进行训练,直到满足迭代条件位置。Obtain a training entry with entity tags, where the entity tag is used to express the true intention of the training entry. For example, if the training entry is "I want to see the stock price of Bank of China", then the entity tag of the training entry is "China Bank"; use the training entry to train the RNN to obtain the parameters of the RNN model: hidden layer parameters, convolutional layer parameters, and pooling layer parameters, and use these bottom-level parameters as the bottom-level parameters in the initial domain recognition model . Specifically, the Chinese word segmentation algorithm of the natural language processing model is first used to segment the training entries to form a vocabulary set. For example, "I want to see the stock price of Bank of China" is divided into "I want, see, Bank of China, the, stock price "; through the word embedding (Word Embedding) component of the natural language processing model or the distributed vector (Distributional Vectors) component converts training entries into word vectors. Among them, word embedding component and distributed vector component are technologies that convert words expressed in natural language into vectors or matrices that can be understood by computers; by transforming training words with entity labels The word vector in the bar is used as the input of the initial RNN model, and the RNN named entity recognition model is trained until the iterative condition position is satisfied.
需要说明的是,CNN模型和RNN模型属于现有技术,因此本领域技术人员可根据公知常识即可对CNN模型和RNN模型进行训练,并获得目标模型;而本申请所要解决的技术问题是如何从查询词条中获得意图关键词和命名实体,因此,通过创建意图识别算法和实体识别算法分别识别意图关键词和命名实体,以提高识别的精准度;因此,CNN模型和RNN模型的具体训练过程在此不做赘述。It should be noted that the CNN model and the RNN model belong to the existing technology, so those skilled in the art can train the CNN model and the RNN model according to common knowledge, and obtain the target model; and the technical problem to be solved in this application is how Intent keywords and named entities are obtained from query terms. Therefore, intent keywords and named entities are identified by creating an intent recognition algorithm and an entity recognition algorithm to improve the accuracy of recognition; therefore, the specific training of the CNN model and the RNN model The process will not be repeated here.
因此,避免了因采用单一的神经网络同时识别多种信息,导致识别精度下降的情况出现;因此提高了意图关键词和命名实体的识别准确度。Therefore, it is avoided that the recognition accuracy is reduced due to the use of a single neural network to recognize multiple types of information at the same time; therefore, the recognition accuracy of intent keywords and named entities is improved.
在一个优选的实施例中,所述S102中识别所述查询词条中的意图关键词和命名实体包括:In a preferred embodiment, the identification of intent keywords and named entities in the query term in S102 includes:
通过所述意图识别算法识别所述查询词条中的意图关键词;Recognizing the intent keywords in the query entry through the intent recognition algorithm;
通过所述实体识别算法识别所述查询词条中的命名实体。Identify the named entity in the query term through the entity recognition algorithm.
其中,将通过意图识别算法所获得的意图关键词设为查询词条的查询方法,将通过实体识别算法所获得的命名实体设为查询词条的查询对象;通过将查询方法和查询对象从查询词条中分离开来的方式,分开理解查询词条的方法和目的,以更加准确把握查询者意图。Among them, the intent keywords obtained by the intent recognition algorithm are set as the query method of the query term, and the named entities obtained by the entity recognition algorithm are set as the query object of the query term; by setting the query method and the query object from the query The way of separating the entry, separate understanding of the method and purpose of the query entry, in order to more accurately grasp the inquirer's intention.
在一个优选的实施例中,所述S103中将所述意图关键词与所述前端载体比对以获得与所述意图关键词对应的目标前端载体包括:In a preferred embodiment, comparing the intent keyword with the front-end carrier in S103 to obtain the target front-end carrier corresponding to the intent keyword includes:
将意图关键词与各所述前端载体的载体标签进行对比,获得与所述意图关键词匹配的载体标签,将所述载体标签所对应的前端载体设为目标前端载体。The intended keyword is compared with the carrier tag of each of the front-end carriers to obtain a carrier tag matching the intended keyword, and the front-end carrier corresponding to the carrier tag is set as the target front-end carrier.
其中,所述载体标签是描述该前端载体的查询接口中方法的信息。Wherein, the carrier tag is information describing the method in the query interface of the front-end carrier.
例如,意图关键字为“股价”,则将各前端载体中内容为“股价图表”的载体标签,作为与所述意图关键字匹配的载体标签,获取该载体标签所对应的前端载体,并获得该前端载体所对应的查询接口,该查询接口中的方法为从互联网中爬取各金融机构的股价图表。For example, if the intent keyword is "stock price", the carrier label with the content of "stock price chart" in each front-end carrier is used as the carrier label that matches the intent keyword, the front-end carrier corresponding to the carrier label is obtained, and the The query interface corresponding to the front-end carrier, and the method in the query interface is to crawl the stock price charts of various financial institutions from the Internet.
因此,通过获得与意图关键词匹配的前端载体,以实现准确把握查询词条的查询方法的效果,基于上述举例,即以 “查询股价图表”为方法从互联网中查询信息,以保证使用者的真实意图得到落实,进而提高查询的准确度和可靠性。Therefore, by obtaining the front-end carrier that matches the intended keyword, the effect of the query method for accurately grasping the query term is achieved. Based on the above example, "Query stock price chart" is a method to query information from the Internet to ensure that the user's true intention is implemented, thereby improving the accuracy and reliability of the query.
在一个优选的实施例中,所述S103中通过所述目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果包括:In a preferred embodiment, the query result matching the named entity through the query interface corresponding to the target carrier tag in the S103 includes:
从所述数据库中获取具有所述目标载体标签的前端载体,将所述前端载体的查询接口作为所述目标载体标签对应的查询接口;Acquiring the front-end carrier with the target carrier tag from the database, and using the query interface of the front-end carrier as the query interface corresponding to the target carrier tag;
调用所述查询接口在互联网中查询与所述命名实体匹配的信息,并将该信息设为查询结果。The query interface is called to query the information matching the named entity on the Internet, and the information is set as the query result.
基于上述举例,命名实体为“中国银行”,由于查询接口中的方法为“从互联网中爬取各金融机构的股价图表”,因此,调用所述查询接口中的方法,并将“中国银行”作为请求url的参数,如,/stockprices?company=中国银行,从互联网中查询并获得“中国银行”的“股价图表”,再将该“股价图表”设为查询结果。Based on the above example, the named entity is "Bank of China". Since the method in the query interface is "crawling the stock price charts of financial institutions from the Internet", the method in the query interface is called and "Bank of China" is called. As a parameter of the request url, for example, /stockprices?company=Bank of China, query and obtain the "stock price chart" of "Bank of China" from the Internet, and then set the "stock price chart" as the query result.
其中,查询结果可为文本信息,或PDF格式信息,或图片格式信息,或表格格式信息。Among them, the query result can be text information, or PDF format information, or picture format information, or table format information.
因此,通过调用前端载体的查询接口从互联网中查询命名实体,实现以意图关键词为前提,以命名实体为对象,准确把握所述查询词条意图的技术效果,基于上述举例,即以 “查询股价图表”为方法,以“中国银行”为对象,从互联网中查询信息并获得查询结果;由于根据命名实体通过该查询接口查询相应的查询结果,由于该查询接口只负责基于接口方法对命名实体进行查询,无需理解查询者意图,因此避免了当前查询接口因查询关键词较多所导致的查询工作量大,查询效率低,以及因查询结果排序混乱所导致的准确度低的情况,进而实现了降低查询工作量,提高查询准确度的效果。Therefore, by calling the query interface of the front-end carrier to query the named entity from the Internet, the technical effect of using the intent keyword as the premise and the named entity as the object to accurately grasp the intent of the query term is realized. Based on the above example, "Query stock price chart" is the method, with "Bank of China" as the object, query information from the Internet and obtain the query results; because the query interface is used to query the corresponding query results based on the named entity, the query interface is only responsible for the interface method based on the query results. Named entities do not need to understand the intent of the queryer, so it avoids the large query workload caused by the large number of query keywords, low query efficiency, and low accuracy caused by the disorderly sorting of query results in the current query interface. In turn, the effect of reducing the workload of the query and improving the accuracy of the query is realized.
在一个优选的实施例中,所述S104中将所述查询结果载入所述前端载体包括:In a preferred embodiment, loading the query result into the front-end carrier in S104 includes:
所述前端载体具有用于显示信息的可编辑区域;The front-end carrier has an editable area for displaying information;
将所述查询结果载入所述可编辑区域使所述前端载体转为展示载体。Loading the query result into the editable area turns the front-end carrier into a display carrier.
具体地,若查询结果为文本信息,则将查询结果以“粘贴”的方式写入可编辑区域;若查询结果为PDF格式信息,或图片格式信息,或表格格式信息,则将查询结果以“插入”的方式写入可编辑区域。Specifically, if the query result is text information, the query result is written into the editable area in the form of "paste"; if the query result is PDF format information, or picture format information, or table format information, the query result is written as " Insert into the editable area.
因此,展示载体快速简洁的在用户端上显示,使用者通过用户端上的展示载体,即可快速获知其所需的查询结果,不仅提高了使用者获取信息的效率,还由于用户端仅简洁的显示展示载体,解决了当前用户端因需要显示大量冗余或与之相关的信息,所导致的查询结果加载速度低下的问题。Therefore, the display carrier is quickly and concisely displayed on the user end, and the user can quickly obtain the query results he needs through the display carrier on the user end, which not only improves the efficiency of the user to obtain information, but also because the user end is only concise The display carrier solves the problem of low loading speed of query results caused by the need to display a large amount of redundant or related information on the current user side.
进一步地,因查询结果将以“卡片”的形式在用户端上进行显示,用户端可通过移动,删除等操作对该展示载体进行管理,摆脱了用户端对系统菜单的依赖性。使得用户无需在繁多的菜单里去寻找自己想要的功能;并且由于前端载体本身与意图关键词是关联的,因此仅通过展示载体的显示,即可向用户传达查询者意图和命名实体所对应的信息,使用户可直观获知其想要的结果,减少了用户操作的步骤,提升了可用性,便利性。Furthermore, because the query result will be displayed on the user terminal in the form of a "card", the user terminal can manage the display carrier through operations such as movement, deletion, etc., which eliminates the dependence of the user terminal on the system menu. So that users do not need to search for the functions they want in a variety of menus; and because the front-end carrier itself is related to the intent keywords, only the display of the carrier can convey the inquiries of the queryer and the corresponding named entity to the user The information enables users to intuitively know the results they want, reduces user steps, and improves usability and convenience.
实施例二:Embodiment two:
请参阅图3,本实施例的一种数据查询展示装置1,包括:Please refer to FIG. 3, a data query display device 1 of this embodiment includes:
创建模块11,用于创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联;The creation module 11 is configured to create at least one front-end carrier and create a query interface in the front-end carrier, generate a carrier label according to the query interface and associate it with the corresponding front-end carrier;
识别模块12,用于接收由用户端输出的查询词条,并识别所述查询词条中的意图关键词和命名实体;The recognition module 12 is configured to receive the query term output by the user terminal, and identify the intended keywords and named entities in the query term;
查询模块13,用于将所述意图关键词与所述载体标签比对以获得与所述意图关键词对应的目标载体标签,通过所述目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果;The query module 13 is configured to compare the intended keyword with the carrier tag to obtain the target carrier tag corresponding to the intended keyword, and query the matching with the named entity through the query interface corresponding to the target carrier tag The result of the query;
展示模块14,用于将所述查询结果载入所述前端载体形成展示载体,将所述展示载体输出至所述用户端。The display module 14 is configured to load the query result into the front-end carrier to form a display carrier, and output the display carrier to the user terminal.
本技术方案基于人工智能领域的智能决策技术,通过采用由神经网络中的成熟CNN模型和softmax函数的结合所组成的意图识别算法,识别查询词条中的意图关键词,以及采用由神经网络中的成熟RNN模型所构成的实体识别算法,识别查询词条中的命名实体的方式,实现通过意图识别算法和实体识别算法所建立的分类模型,准确判断查询词条的意图的技术效果。This technical solution is based on the intelligent decision-making technology in the field of artificial intelligence. It uses the intent recognition algorithm composed of the mature CNN model in the neural network and the softmax function to identify the intent keywords in the query entry, and uses the intent recognition algorithm in the neural network. The entity recognition algorithm constituted by the mature RNN model can recognize the named entity in the query entry, and realize the technical effect of accurately judging the intent of the query entry through the classification model established by the intent recognition algorithm and the entity recognition algorithm.
实施例三:Embodiment three:
为实现上述目的,本申请还提供一种计算机系统,该计算机系统包括多个计算机设备5,实施例二的数据查询展示装置1的组成部分可分散于不同的计算机设备中,计算机设备可以是执行程序的智能手机、平板电脑、笔记本电脑、台式计算机、机架式服务器、刀片式服务器、塔式服务器或机柜式服务器(包括独立的服务器,或者多个服务器所组成的服务器集群)等。本实施例的计算机设备至少包括但不限于:可通过系统总线相互通信连接的存储器51、处理器52,如图4所示。需要指出的是,图4仅示出了具有组件-的计算机设备,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。In order to achieve the above objective, the present application also provides a computer system, which includes a plurality of computer devices 5. The components of the data query and display device 1 of the second embodiment can be dispersed in different computer devices, and the computer devices can be executed Program smart phones, tablets, laptops, desktop computers, rack servers, blade servers, tower servers or cabinet servers (including independent servers, or server clusters composed of multiple servers), etc. The computer equipment in this embodiment at least includes but is not limited to: a memory 51 and a processor 52 that can be communicatively connected to each other through a system bus, as shown in FIG. 4. It should be pointed out that FIG. 4 only shows a computer device with components, but it should be understood that it is not required to implement all the illustrated components, and more or fewer components may be implemented instead.
本实施例中,存储器51(即可读存储介质)包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器51可以是计算机设备的内部存储单元,例如该计算机设备的硬盘或内存。在另一些实施例中,存储器51也可以是计算机设备的外部存储设备,例如该计算机设备上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。当然,存储器51还可以既包括计算机设备的内部存储单元也包括其外部存储设备。本实施例中,存储器51通常用于存储安装于计算机设备的操作系统和各类应用软件,例如实施例一的数据查询展示装置的程序代码等。此外,存储器51还可以用于暂时地存储已经输出或者将要输出的各类数据。In this embodiment, the memory 51 (ie, readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), Read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disks, optical disks, etc. In some embodiments, the memory 51 may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory 51 may also be an external storage device of the computer device, such as a plug-in hard disk or a smart memory card (Smart Memory Card) equipped on the computer device. Media Card, SMC), Secure Digital (SD) card, Flash Card, etc. Of course, the memory 51 may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory 51 is generally used to store an operating system and various application software installed in a computer device, such as the program code of the data query display device in the first embodiment, and so on. In addition, the memory 51 can also be used to temporarily store various types of data that have been output or will be output.
处理器52在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器52通常用于控制计算机设备的总体操作。本实施例中,处理器52用于运行存储器51中存储的程序代码或者处理数据,例如运行数据查询展示装置,以实现实施例一的数据查询展示方法。In some embodiments, the processor 52 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 52 is generally used to control the overall operation of the computer equipment. In this embodiment, the processor 52 is configured to run the program code or process data stored in the memory 51, for example, to run a data query and display device, so as to implement the data query and display method of the first embodiment.
实施例四:Embodiment four:
为实现上述目的,本申请还提供一种计算机可读存储系统,其包括多个存储介质,所述存储介质可以是非易失性,也可以是易失性,如闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘、服务器、App应用商城等等,其上存储有计算机程序,程序被处理器52执行时实现相应功能。本实施例的计算机可读存储介质用于存储数据查询展示装置,被处理器52执行时实现实施例一的数据查询展示方法。In order to achieve the above objective, this application also provides a computer-readable storage system, which includes multiple storage media. The storage media may be non-volatile or volatile, such as flash memory, hard disk, multimedia card, and card. Type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable only Read memory (PROM), magnetic memory, magnetic disks, optical disks, servers, App application malls, etc., have computer programs stored thereon, and corresponding functions are realized when the programs are executed by the processor 52. The computer-readable storage medium of this embodiment is used to store the data query and display device, and when executed by the processor 52, the data query and display method of the first embodiment is implemented.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the foregoing embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the application, and do not limit the scope of the patent for this application. Any equivalent structure or equivalent process transformation made using the content of the description and drawings of the application, or directly or indirectly applied to other related technical fields , The same reason is included in the scope of patent protection of this application.

Claims (20)

  1. 一种数据查询展示方法,其中,包括以下步骤: A data query display method, which includes the following steps:
    创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联;Creating at least one front-end carrier and creating a query interface in the front-end carrier, generating a carrier tag according to the query interface and associating it with the corresponding front-end carrier;
    接收由用户端输出的查询词条,并识别所述查询词条中的意图关键词和命名实体;Receiving the query terms output by the user terminal, and identifying the intended keywords and named entities in the query terms;
    将所述意图关键词与所述载体标签比对以获得与所述意图关键词对应的目标载体标签,通过所述目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果;Comparing the intent keyword with the carrier tag to obtain a target carrier tag corresponding to the intent keyword, and querying a query result matching the named entity through a query interface corresponding to the target carrier tag;
    将所述查询结果载入所述前端载体形成展示载体,将所述展示载体输出至所述用户端。The query result is loaded into the front-end carrier to form a display carrier, and the display carrier is output to the user terminal.
  2. 根据权利要求1所述的数据查询展示方法,其中,所述创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联包括: The data query and display method according to claim 1, wherein said creating at least one front-end carrier and creating a query interface in said front-end carrier, generating a carrier tag according to said query interface and connecting it with the corresponding front-end carrier The association includes:
    创建样本库,所述样本库中具有用于配置及控制弹出层的弹出层组件;Creating a sample library with pop-up layer components for configuring and controlling the pop-up layer;
    从所述样本库中提取弹出层组件,并根据该弹出层组件新建弹出层以作为前端载体;Extracting a pop-up layer component from the sample library, and creating a new pop-up layer based on the pop-up layer component as a front-end carrier;
    通过所述弹出层组件在所述前端载体中创建查询接口,所述查询接口中具有预定义的方法;Creating a query interface in the front-end carrier through the pop-up layer component, and the query interface has a predefined method;
    制定用于描述所述查询接口中的方法的载体标签,并将所述载体标签添加在前端载体中使其与所述前端载体关联。Formulate a carrier label for describing the method in the query interface, and add the carrier label to the front-end carrier to associate it with the front-end carrier.
  3. 根据权利要求2所述的数据查询展示方法,其中,所述弹出层的形状为卡片形式,所述弹出层具有可写入所述载体标签的文本区域; The data query and display method according to claim 2, wherein the shape of the pop-up layer is in the form of a card, and the pop-up layer has a text area in which the carrier label can be written;
    关联有载体标签的前端载体储存至预设的数据库中。The front-end carrier associated with the carrier tag is stored in a preset database.
  4. 根据权利要求1所述的数据查询展示方法,其中,所述识别所述查询词条中的意图关键词和命名实体之前包括: The data query display method according to claim 1, wherein before the identifying the intent keywords and named entities in the query terms comprises:
    创建具有意图识别算法和实体识别算法的自然语言处理模型。Create a natural language processing model with intent recognition algorithms and entity recognition algorithms.
  5. 根据权利要求4所述的数据查询展示方法,其中,所述识别所述查询词条中的意图关键词和命名实体包括: The data query display method according to claim 4, wherein said identifying the intended keywords and named entities in the query terms comprises:
    通过所述意图识别算法识别所述查询词条中的意图关键词;Recognizing the intent keywords in the query entry through the intent recognition algorithm;
    通过所述实体识别算法识别所述查询词条中的命名实体。Identify the named entity in the query term through the entity recognition algorithm.
  6. 根据权利要求1所述的数据查询展示方法,其中,所述通过目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果包括: The data query and display method according to claim 1, wherein the query result matching the named entity through the query interface corresponding to the target carrier tag comprises:
    获取具有所述目标载体标签的前端载体,将所述前端载体的查询接口作为所述目标载体标签对应的查询接口;Acquiring a front-end carrier with the target carrier tag, and using the query interface of the front-end carrier as the query interface corresponding to the target carrier tag;
    调用所述查询接口在互联网中查询与所述命名实体匹配的信息,并将该信息设为查询结果。The query interface is called to query the information matching the named entity on the Internet, and the information is set as the query result.
  7. 根据权利要求1所述的数据查询展示方法,其中,所述将所述查询结果载入所述前端载体包括: The data query display method according to claim 1, wherein the loading the query result into the front-end carrier comprises:
    所述前端载体具有用于显示信息的可编辑区域;The front-end carrier has an editable area for displaying information;
    将所述查询结果载入所述可编辑区域使所述前端载体转为展示载体。Loading the query result into the editable area turns the front-end carrier into a display carrier.
  8. 一种数据查询展示装置,其中,包括: A data query display device, which includes:
    创建模块,用于创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联;A creation module, configured to create at least one front-end carrier and create a query interface in the front-end carrier, generate a carrier label according to the query interface and associate it with the corresponding front-end carrier;
    识别模块,用于接收由用户端输出的查询词条,并识别所述查询词条中的意图关键词和命名实体;The recognition module is used to receive the query term output by the user terminal, and identify the intent keywords and named entities in the query term;
    查询模块,用于将所述意图关键词与所述载体标签比对以获得与所述意图关键词对应的目标载体标签,通过所述目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果;The query module is used to compare the intent keyword with the carrier tag to obtain the target carrier tag corresponding to the intent keyword, and query the target carrier tag that matches the named entity through the query interface corresponding to the target carrier tag search result;
    展示模块,用于将所述查询结果载入所述前端载体形成展示载体,将所述展示载体输出至所述用户端。The display module is used to load the query result into the front-end carrier to form a display carrier, and output the display carrier to the user terminal.
  9. 一种计算机系统,其包括多个计算机设备,各计算机设备包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,其中,所述多个计算机设备的处理器执行所述计算机程序时实现数据查询展示方法,所述数据查询展示方法包括: A computer system includes multiple computer devices, each computer device includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processors of the multiple computer devices execute the A data query and display method is implemented in a computer program, and the data query and display method includes:
    创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联;Creating at least one front-end carrier and creating a query interface in the front-end carrier, generating a carrier tag according to the query interface and associating it with the corresponding front-end carrier;
    接收由用户端输出的查询词条,并识别所述查询词条中的意图关键词和命名实体;Receiving the query terms output by the user terminal, and identifying the intended keywords and named entities in the query terms;
    将所述意图关键词与所述载体标签比对以获得与所述意图关键词对应的目标载体标签,通过所述目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果;Comparing the intent keyword with the carrier tag to obtain a target carrier tag corresponding to the intent keyword, and querying a query result matching the named entity through a query interface corresponding to the target carrier tag;
    将所述查询结果载入所述前端载体形成展示载体,将所述展示载体输出至所述用户端。The query result is loaded into the front-end carrier to form a display carrier, and the display carrier is output to the user terminal.
  10. 根据权利要求9所述的计算机系统,其中,所述创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联包括: The computer system according to claim 9, wherein said creating at least one front-end carrier and creating a query interface in said front-end carrier, generating a carrier tag according to said query interface and associating it with said corresponding front-end carrier comprises :
    创建样本库,所述样本库中具有用于配置及控制弹出层的弹出层组件;Creating a sample library with pop-up layer components for configuring and controlling the pop-up layer;
    从所述样本库中提取弹出层组件,并根据该弹出层组件新建弹出层以作为前端载体;Extracting a pop-up layer component from the sample library, and creating a new pop-up layer based on the pop-up layer component as a front-end carrier;
    通过所述弹出层组件在所述前端载体中创建查询接口,所述查询接口中具有预定义的方法;Creating a query interface in the front-end carrier through the pop-up layer component, and the query interface has a predefined method;
    制定用于描述所述查询接口中的方法的载体标签,并将所述载体标签添加在前端载体中使其与所述前端载体关联。Formulate a carrier label for describing the method in the query interface, and add the carrier label to the front-end carrier to associate it with the front-end carrier.
  11. 根据权利要求10所述的计算机系统,其中,所述弹出层的形状为卡片形式,所述弹出层具有可写入所述载体标签的文本区域; 10. The computer system according to claim 10, wherein the shape of the pop-up layer is a card form, and the pop-up layer has a text area in which the carrier label can be written;
    关联有载体标签的前端载体储存至预设的数据库中。The front-end carrier associated with the carrier tag is stored in a preset database.
  12. 根据权利要求9所述的计算机系统,其中,所述识别所述查询词条中的意图关键词和命名实体之前包括: 9. The computer system according to claim 9, wherein before said identifying the intended keywords and named entities in the query term comprises:
    创建具有意图识别算法和实体识别算法的自然语言处理模型;Create natural language processing models with intent recognition algorithms and entity recognition algorithms;
    所述识别所述查询词条中的意图关键词和命名实体包括:Said identifying the intended keywords and named entities in the query term includes:
    通过所述意图识别算法识别所述查询词条中的意图关键词;Recognizing the intent keywords in the query entry through the intent recognition algorithm;
    通过所述实体识别算法识别所述查询词条中的命名实体。Identify the named entity in the query term through the entity recognition algorithm.
  13. 根据权利要求9所述的计算机系统,其中,所述通过目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果包括: 9. The computer system according to claim 9, wherein the query result matching the named entity through the query interface corresponding to the target carrier tag comprises:
    获取具有所述目标载体标签的前端载体,将所述前端载体的查询接口作为所述目标载体标签对应的查询接口;Acquiring a front-end carrier with the target carrier tag, and using the query interface of the front-end carrier as the query interface corresponding to the target carrier tag;
    调用所述查询接口在互联网中查询与所述命名实体匹配的信息,并将该信息设为查询结果。The query interface is called to query the information matching the named entity on the Internet, and the information is set as the query result.
  14. 根据权利要求9所述的计算机系统,其中,所述将所述查询结果载入所述前端载体包括: The computer system according to claim 9, wherein said loading said query result into said front-end carrier comprises:
    所述前端载体具有用于显示信息的可编辑区域;The front-end carrier has an editable area for displaying information;
    将所述查询结果载入所述可编辑区域使所述前端载体转为展示载体。Loading the query result into the editable area turns the front-end carrier into a display carrier.
  15. 一种计算机可读存储介质,其包括多个存储介质,各存储介质上存储有计算机程序,其中,所述多个存储介质存储的所述计算机程序被处理器执行时实现数据查询展示方法,所述数据查询展示方法包括: A computer-readable storage medium includes a plurality of storage media, and each storage medium stores a computer program, wherein the computer program stored in the plurality of storage media is executed by a processor to implement a data query display method, so The data query and display methods include:
    创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联;Creating at least one front-end carrier and creating a query interface in the front-end carrier, generating a carrier tag according to the query interface and associating it with the corresponding front-end carrier;
    接收由用户端输出的查询词条,并识别所述查询词条中的意图关键词和命名实体;Receiving the query terms output by the user terminal, and identifying the intended keywords and named entities in the query terms;
    将所述意图关键词与所述载体标签比对以获得与所述意图关键词对应的目标载体标签,通过所述目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果;Comparing the intent keyword with the carrier tag to obtain a target carrier tag corresponding to the intent keyword, and querying a query result matching the named entity through a query interface corresponding to the target carrier tag;
    将所述查询结果载入所述前端载体形成展示载体,将所述展示载体输出至所述用户端。The query result is loaded into the front-end carrier to form a display carrier, and the display carrier is output to the user terminal.
  16. 根据权利要求15所述的计算机可读存储介质,其中,所述创建至少一个前端载体并在所述前端载体中创建查询接口,根据所述查询接口生成载体标签并将其与对应的所述前端载体关联包括: The computer-readable storage medium according to claim 15, wherein said creating at least one front-end carrier and creating a query interface in said front-end carrier, and generating a carrier tag according to said query interface and linking it with the corresponding front-end carrier. Carrier associations include:
    创建样本库,所述样本库中具有用于配置及控制弹出层的弹出层组件;Creating a sample library with pop-up layer components for configuring and controlling the pop-up layer;
    从所述样本库中提取弹出层组件,并根据该弹出层组件新建弹出层以作为前端载体;Extracting a pop-up layer component from the sample library, and creating a new pop-up layer based on the pop-up layer component as a front-end carrier;
    通过所述弹出层组件在所述前端载体中创建查询接口,所述查询接口中具有预定义的方法;Creating a query interface in the front-end carrier through the pop-up layer component, and the query interface has a predefined method;
    制定用于描述所述查询接口中的方法的载体标签,并将所述载体标签添加在前端载体中使其与所述前端载体关联。Formulate a carrier label for describing the method in the query interface, and add the carrier label to the front-end carrier to associate it with the front-end carrier.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述弹出层的形状为卡片形式,所述弹出层具有可写入所述载体标签的文本区域; The computer-readable storage medium according to claim 16, wherein the shape of the pop-up layer is a card form, and the pop-up layer has a text area in which the carrier label can be written;
    关联有载体标签的前端载体储存至预设的数据库中。The front-end carrier associated with the carrier tag is stored in a preset database.
  18. 根据权利要求15所述的计算机可读存储介质,其中,所述识别所述查询词条中的意图关键词和命名实体之前包括: 15. The computer-readable storage medium according to claim 15, wherein before the identifying the intended keywords and named entities in the query term comprises:
    创建具有意图识别算法和实体识别算法的自然语言处理模型;Create natural language processing models with intent recognition algorithms and entity recognition algorithms;
    所述识别所述查询词条中的意图关键词和命名实体包括:Said identifying the intended keywords and named entities in the query term includes:
    通过所述意图识别算法识别所述查询词条中的意图关键词;Recognizing the intent keywords in the query entry through the intent recognition algorithm;
    通过所述实体识别算法识别所述查询词条中的命名实体。Identify the named entity in the query term through the entity recognition algorithm.
  19. 根据权利要求15所述的计算机可读存储介质,其中,所述通过目标载体标签对应的查询接口查询与所述命名实体匹配的查询结果包括: 15. The computer-readable storage medium according to claim 15, wherein the query result matching the named entity through the query interface corresponding to the target carrier tag comprises:
    获取具有所述目标载体标签的前端载体,将所述前端载体的查询接口作为所述目标载体标签对应的查询接口;Acquiring a front-end carrier with the target carrier tag, and using the query interface of the front-end carrier as the query interface corresponding to the target carrier tag;
    调用所述查询接口在互联网中查询与所述命名实体匹配的信息,并将该信息设为查询结果。The query interface is called to query the information matching the named entity on the Internet, and the information is set as the query result.
  20. 根据权利要求15所述的计算机可读存储介质,其中,所述将所述查询结果载入所述前端载体包括: The computer-readable storage medium according to claim 15, wherein said loading said query result into said front-end carrier comprises:
    所述前端载体具有用于显示信息的可编辑区域;The front-end carrier has an editable area for displaying information;
    将所述查询结果载入所述可编辑区域使所述前端载体转为展示载体。Loading the query result into the editable area turns the front-end carrier into a display carrier.
PCT/CN2020/112517 2020-01-07 2020-08-31 Data query and display method, device, computer system, and readable storage medium WO2021139184A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010012714.XA CN111209374B (en) 2020-01-07 2020-01-07 Data query display method, device, computer system and readable storage medium
CN202010012714.X 2020-01-07

Publications (1)

Publication Number Publication Date
WO2021139184A1 true WO2021139184A1 (en) 2021-07-15

Family

ID=70785551

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/112517 WO2021139184A1 (en) 2020-01-07 2020-08-31 Data query and display method, device, computer system, and readable storage medium

Country Status (2)

Country Link
CN (1) CN111209374B (en)
WO (1) WO2021139184A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209374B (en) * 2020-01-07 2023-06-06 平安科技(深圳)有限公司 Data query display method, device, computer system and readable storage medium
CN111859195A (en) * 2020-07-31 2020-10-30 北京字节跳动网络技术有限公司 Information display method, information search method and device
CN113342965B (en) * 2021-06-24 2023-11-14 平安国际融资租赁有限公司 Intention prediction and feedback method, device, computer equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951503A (en) * 2017-03-16 2017-07-14 百度在线网络技术(北京)有限公司 Information providing method, device, equipment and storage medium
US20180373782A1 (en) * 2017-06-27 2018-12-27 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for recommending answer to question based on artificial intelligence
CN109829037A (en) * 2017-11-22 2019-05-31 上海智臻智能网络科技股份有限公司 Method, system, server and the storage medium of intelligent automatic question answering
CN110046231A (en) * 2018-12-21 2019-07-23 阿里巴巴集团控股有限公司 A kind of customer service information processing method, server and system
CN111209374A (en) * 2020-01-07 2020-05-29 平安科技(深圳)有限公司 Data query display method and device, computer system and readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372215A (en) * 2016-09-06 2017-02-01 江苏通付盾科技有限公司 Credit inquiring system and method
US11132503B2 (en) * 2017-10-30 2021-09-28 Nohold, Inc. Query a system via natural language NLP2X
US11157533B2 (en) * 2017-11-08 2021-10-26 International Business Machines Corporation Designing conversational systems driven by a semantic network with a library of templated query operators
CN108804532B (en) * 2018-05-03 2020-06-26 腾讯科技(深圳)有限公司 Query intention mining method and device and query intention identification method and device
CN109299129A (en) * 2018-09-05 2019-02-01 深圳壹账通智能科技有限公司 Data query method, apparatus, computer equipment and the storage medium of natural language
CN109522393A (en) * 2018-10-11 2019-03-26 平安科技(深圳)有限公司 Intelligent answer method, apparatus, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951503A (en) * 2017-03-16 2017-07-14 百度在线网络技术(北京)有限公司 Information providing method, device, equipment and storage medium
US20180373782A1 (en) * 2017-06-27 2018-12-27 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for recommending answer to question based on artificial intelligence
CN109829037A (en) * 2017-11-22 2019-05-31 上海智臻智能网络科技股份有限公司 Method, system, server and the storage medium of intelligent automatic question answering
CN110046231A (en) * 2018-12-21 2019-07-23 阿里巴巴集团控股有限公司 A kind of customer service information processing method, server and system
CN111209374A (en) * 2020-01-07 2020-05-29 平安科技(深圳)有限公司 Data query display method and device, computer system and readable storage medium

Also Published As

Publication number Publication date
CN111209374A (en) 2020-05-29
CN111209374B (en) 2023-06-06

Similar Documents

Publication Publication Date Title
WO2022142014A1 (en) Multi-modal information fusion-based text classification method, and related device thereof
WO2021139184A1 (en) Data query and display method, device, computer system, and readable storage medium
US10872236B1 (en) Layout-agnostic clustering-based classification of document keys and values
JP6573418B2 (en) Business customization apparatus, method, system and storage medium based on data source
CN107329987A (en) A kind of search system based on mongo databases
US20230206670A1 (en) Semantic representation of text in document
CN109522341A (en) Realize method, apparatus, the equipment of the stream data processing engine based on SQL
CA3155031A1 (en) Improved search engine using joint learning for multi-label classification
US11269959B2 (en) Categorically filtering search results
CN110909768B (en) Method and device for acquiring marked data
CN114416998A (en) Text label identification method and device, electronic equipment and storage medium
WO2022001233A1 (en) Pre-labeling method based on hierarchical transfer learning and related device
CN114327374A (en) Business process generation method and device and computer equipment
CN117033249A (en) Test case generation method and device, computer equipment and storage medium
US11449677B2 (en) Cognitive hierarchical content distribution
JP2022530725A (en) Information push methods, devices, equipment and storage media
CN117093619A (en) Rule engine processing method and device, electronic equipment and storage medium
CN114266255B (en) Corpus classification method, apparatus, device and storage medium based on clustering model
WO2022135592A1 (en) Method and apparatus for generating model training program mirror image, device, and storage medium
CN115756692A (en) Method for automatically combining and displaying pages based on style attributes and related equipment thereof
US11030177B1 (en) Selectively scanning portions of a multidimensional index for processing queries
CN112100364A (en) Text semantic understanding method and model training method, device, equipment and medium
US8442980B2 (en) Attribute change coalescing in order to deal with component moves on a page
CN113221035A (en) Method, apparatus, device, medium, and program product for determining an abnormal web page
US20220156487A1 (en) Interactive Structure Annotation with Artificial Intelligence

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: 20911814

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: 20911814

Country of ref document: EP

Kind code of ref document: A1