[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111523019A - Method, apparatus, device and storage medium for outputting information - Google Patents

Method, apparatus, device and storage medium for outputting information Download PDF

Info

Publication number
CN111523019A
CN111523019A CN202010326136.7A CN202010326136A CN111523019A CN 111523019 A CN111523019 A CN 111523019A CN 202010326136 A CN202010326136 A CN 202010326136A CN 111523019 A CN111523019 A CN 111523019A
Authority
CN
China
Prior art keywords
retrieval
words
relation
retrieving
entity
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202010326136.7A
Other languages
Chinese (zh)
Other versions
CN111523019B (en
Inventor
崔雪霏
王志华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010326136.7A priority Critical patent/CN111523019B/en
Publication of CN111523019A publication Critical patent/CN111523019A/en
Application granted granted Critical
Publication of CN111523019B publication Critical patent/CN111523019B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for outputting information, and relates to the field of retrieval. The specific implementation scheme is as follows: receiving a retrieval statement; analyzing the retrieval sentences to determine entity words and relation words contained in the retrieval sentences; based on the entity words and the relation words, at least one of the following searches is carried out: retrieving a knowledge map, retrieving a form, retrieving a full text and retrieving a question and answer pair to obtain a retrieval result; and sorting the retrieval results, and outputting the sorted retrieval results. The implementation mode can utilize the search sentences to carry out multi-item search and sort the search results. The retrieval efficiency is improved, the accuracy of the retrieval result is improved, and the retrieval experience of the user is further improved.

Description

Method, apparatus, device and storage medium for outputting information
Technical Field
The present application relates to the field of computer technology, and more particularly, to the field of natural language processing, and more particularly, to a method and apparatus for outputting information.
Background
In the current internet, mass information is distributed in different message sources, the correlation is sparse, and the traditional search engine is used to accurately and quickly obtain valuable information, which is becoming more difficult. The traditional manual-based instruction management mode cannot effectively meet the acquisition requirements of users on instructions in real time. In addition, many questions encountered in the community question answering cannot guarantee the accuracy of the answers, and some answers are not time-efficient.
Disclosure of Invention
A method, apparatus, device, and storage medium for outputting information are provided.
According to a first aspect, there is provided a method for outputting information, comprising: receiving a retrieval statement; analyzing the retrieval sentences to determine entity words and relation words contained in the retrieval sentences; based on the entity words and the relation words, at least one of the following searches is carried out: retrieving a knowledge map, retrieving a form, retrieving a full text and retrieving a question and answer pair to obtain a retrieval result; and sorting the retrieval results, and outputting the sorted retrieval results.
According to a second aspect, there is provided an apparatus for outputting information, comprising: a receiving unit configured to receive a retrieval sentence; the determining unit is configured to analyze the retrieval statement and determine entity words and relation words included in the retrieval statement; a search unit configured to perform at least one of the following searches based on the entity words and the relation words: retrieving a knowledge map, retrieving a form, retrieving a full text and retrieving a question and answer pair to obtain a retrieval result; and the output unit is configured to sort the retrieval results and output the sorted retrieval results.
According to a third aspect, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described in the first aspect.
According to a fourth aspect, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method as described in the first aspect.
According to the technology of the application, the technical problems that a plurality of similar problems need to be constructed in the existing retrieval method and the retrieval result can not be accurately reached are solved, and the retrieval accuracy and efficiency are improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram for one embodiment of a method for outputting information, in accordance with the present application;
FIG. 3 is a schematic diagram of an application scenario of a method for outputting information according to the present application;
FIG. 4 is a flow diagram of another embodiment of a method for outputting information according to the present application;
FIG. 5 is a schematic diagram illustrating one embodiment for outputting information in accordance with the present application;
fig. 6 is a block diagram of an electronic device for implementing a method for outputting information according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the present method for outputting information or apparatus for outputting information may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as a web browsing application, a search application, a voice recognition application, etc., may be installed on the terminal devices 101, 102, 103.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices including, but not limited to, smart phones, tablet computers, e-book readers, car computers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server that provides various services, such as a background server that provides search results to the terminal devices 101, 102, 103. The background server may receive the search statement, perform search on the search statement to obtain a search result, and feed back the search result to the terminal devices 101, 102, and 103.
The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server 105 is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for outputting information provided in the embodiment of the present application is generally performed by the server 105. Accordingly, a device for outputting information is generally provided in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for outputting information in accordance with the present application is shown. The method for outputting information of the embodiment comprises the following steps:
step 201, receiving a search statement.
In this embodiment, the execution subject of the method for outputting information (for example, the server 105 shown in fig. 1) may receive the retrieval statement through a wired connection or a wireless connection. The search sentence may be input by the user through the terminal device and then transmitted to the execution subject. The search sentence may include entity words and relation words, such as "what tv shows AA? ". The entity words comprise AA and TV play, and the relation words comprise show.
Step 202, analyzing the search sentence, and determining entity words and relation words included in the search sentence.
After receiving the search statement, the execution subject may analyze the search statement to determine entity words and relation words included in the search statement. Specifically, the execution main body may adopt a plurality of entity word extraction algorithms to extract the entity words, or compare the search statement with a preset entity word list to determine the entity words included in the search statement. The execution main body can also perform word segmentation on the search sentences, and then analyze the part of speech of each word segmentation to determine the related words in the search sentences.
It is understood that, in order to ensure the accuracy of the extracted entity words, the executing entity may obtain the proper noun list to determine the proper nouns in the search sentence. The term may include "chinese bank ace platinum credit card".
Step 203, based on the entity words and the relation words, at least one of the following searches is carried out: and retrieving a knowledge map, retrieving a form, retrieving a full text, and retrieving a question and answer pair to obtain a retrieval result.
After obtaining the entity words and the search terms, the execution subject may perform a plurality of searches based on the entity words and the search terms. The search may include knowledge map search, table search, full text search, question-answer pair search, etc., and the search results are obtained through the search. The knowledge graph retrieval refers to retrieving the entity words and the relation words in the knowledge graph to obtain corresponding retrieval results. The data of the knowledge-graph may be stored in a database, and the knowledge-graph may be represented in the form of a triple < head entity, relationship, tail entity >. The table search means to search the entity word and the relation word in the table name, the table header and the cell of the table. The full-text retrieval refers to retrieving the entity words and the relation words in the full text of the document. The question-answer pair retrieval refers to retrieving the entity words and the relation words in a question-answer pair set. Through the multiple-item search, the execution main body can obtain multiple-item search results.
And step 204, sequencing the retrieval results and outputting the sequenced retrieval results.
After the execution main body obtains the search result, the execution main body can sort the search result and output the sorted search result. Specifically, the execution subject may rank the search results by adjusting the confidence of each search. For example, the executive may set the confidence of the knowledge-graph search to the highest (e.g., 0.5), the confidence of the table search and question-answer pair search to a slightly lower value (e.g., 0.2), and the full-text search to the lowest value (e.g., 0.1).
By sequencing the retrieval results, the user can receive more accurate retrieval results.
With continued reference to fig. 3, a schematic illustration of one application scenario of the method for outputting information according to the present application is shown. In the application scenario of fig. 3, the user inputs the retrieval sentence "who the lead actor of the series a is" through the terminal 301. The server 302 performs the arrangement 201-204 processing on the search sentences to obtain a plurality of ordered search results. The server may send the above-mentioned sorted multiple items of search results to the terminal 301, and display the results on the screen of the terminal 301.
The method for outputting information provided by the above embodiments of the present application may utilize multiple searches for search sentences and rank search results. The retrieval efficiency is improved, the accuracy of the retrieval result is improved, and the retrieval experience of the user is further improved.
In some optional implementations of the present embodiment, the table retrieval may be implemented by the following steps not shown in fig. 2: determining the position information of the cell corresponding to the entity word as target position information according to the entity word and the corresponding relation between the pre-stored entity word and the position relation; determining the cell content corresponding to the target position information as the target cell content according to the target position information and the corresponding relation between the pre-stored position information and the cell content; and taking the target cell content as a table retrieval result.
In this implementation manner, the execution main body may first obtain a correspondence between pre-stored entity words and location relationships, and a correspondence between pre-stored location information and cell contents. The positional relationship of the cells may include a table name, a header, a row position, and a column position. The two correspondences may be stored at the other electronic device (e.g. in a database) in the form of key-value pairs (key-values). The execution main body may determine, as the target location information, the location information of the cell corresponding to the entity word according to the entity word and the correspondence between the entity word and the location relationship. And then, determining the cell content corresponding to the target position information as the target cell content according to the target position information and the corresponding relation between the position information and the cell content. And finally, taking the content of the target cell as a table retrieval result.
For example, the user enters "what is the annual cost of honoring the principal card of the platinum card? ". The execution subject may find the corresponding table according to the table name and the table header, and then find the corresponding cell according to the row position and the column position. Then, the corresponding relation between the position information and the cell content is inquired, and the content in the cell is determined to be 360 RMB/card.
The implementation mode realizes the retrieval of the cell contents in the table without being limited to the retrieval of the table name and the table head, so that the retrieval can be directly contacted to achieve an accurate result.
With continued reference to FIG. 4, a flow 400 of another embodiment of a method for outputting information in accordance with the present application is shown. As shown in fig. 4, the method for outputting information of the present embodiment may include the steps of:
step 401, receiving a search statement.
Step 402, analyzing the search sentence to determine entity words and relation words included in the search sentence.
Step 403, based on the entity words and the relation words, performing at least one of the following searches: and retrieving a knowledge map, retrieving a form, retrieving a full text, and retrieving a question and answer pair to obtain a retrieval result.
The principle of steps 401 to 403 is similar to that of steps 201 to 203, and is not described herein again.
In some optional implementations of the embodiment, when performing multiple-item retrieval by using the entity words and the relation words, the retrieval may be performed through the following steps not shown in fig. 4: determining synonyms of entity words and/or relationship words; according to the determined synonyms, entity words and relation words, at least one of the following searches is carried out: knowledge map retrieval, form retrieval, full-text retrieval and question-answer pair retrieval.
In this implementation, the executive may determine synonyms for each entity word and/or relationship word. And during retrieval, the retrieval is carried out according to the determined synonyms, entity words and relation words. Therefore, the search range is expanded, and the coverage rate of the search result is improved. In addition, if the execution subject determines that the entity word is not a proper noun, the entity word may also be participled. And utilizing the participles, the synonyms, the entity words and the relation words to carry out retrieval.
And step 404, obtaining feedback data corresponding to each page in the retrieval result.
In this embodiment, the search result may include a plurality of pages, and each page includes the entity word and the relation word. The execution subject may acquire feedback data of each page before outputting the search result. The feedback data can be the number of praise, the number of tread and comment information of the user on the pages. Specifically, the user may provide feedback data through a feedback entry of the page of the historical search result, and the execution subject may perform statistics on the feedback data. The feedback entries may include a thumbs-up button, a thumbs-down button, and a comment input box.
And step 405, determining the display sequence of each page according to the feedback data.
In this embodiment, the execution subject may analyze the feedback data, and display and sort the pages according to the analysis result. For example, the execution agent may rank the most favorable number of pages first and rank the most favorable number of pages last. Alternatively, the execution subject may also perform emotion analysis on comment information included in the feedback data. If the comment information is positive, the ranking is adjusted forward. If the comment information is a backward positive emotion, the ranking is adjusted backward. The display sequencing of each page in the retrieval result is adjusted through the feedback data, so that the accuracy of the retrieval result is improved.
And 406, generating a display card according to the page at the first display sorting position.
In this embodiment, the execution subject may generate a display card from the page at the first of the display sequence. Here, a part of the content in the page is displayed in the display card. Specifically, the display card may directly display the answer corresponding to the search sentence. Alternatively, the display card may display a paragraph that includes the answer. Through the display card, the user can quickly obtain the answer of the retrieval sentence, and the retrieval efficiency is improved.
Step 407, outputting the display card and the rest of the search results.
After obtaining the display card, the execution main body can output the display card and other retrieval results. According to the method for outputting information provided by the embodiment of the application, the pages can be sequenced according to the feedback data of the pages in the retrieval result, so that the accuracy of the output retrieval result can be improved. Meanwhile, the answer is directly displayed in the form of the display card, so that the efficiency of obtaining the answer by the user is improved.
In some optional implementations of this embodiment, the method may further include the following steps not shown in fig. 4: acquiring a plurality of recommended retrieval sentences; and outputting the recommended retrieval statement in response to the fact that the similarity between the retrieval statement and the recommended retrieval statement is larger than a preset threshold.
In this implementation, the execution subject may further obtain a plurality of recommended retrieval statements. Here, the recommended search sentence may be a search sentence input a plurality of times by the user. If the execution subject judges that the similarity between the retrieval statement and the recommended retrieval statement is greater than the preset threshold, the retrieval statement is considered to be similar to the recommended retrieval statement, and the recommended retrieval statement can be output. Therefore, the user can use the similar search sentences for searching.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for outputting information, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the output information device 500 of the present embodiment includes: a receiving unit 501, a determining unit 502, a retrieving unit 503 and an outputting unit 504.
A receiving unit 501 configured to receive a retrieval statement.
The determining unit 502 is configured to analyze the search sentence and determine the entity words and relation words included therein.
A retrieving unit 503 configured to perform at least one of the following retrieval based on the entity words and the relation words: and retrieving a knowledge map, retrieving a form, retrieving a full text, and retrieving a question and answer pair to obtain a retrieval result.
The output unit 504 is configured to sort the search results and output the sorted search results.
In some optional implementations of this embodiment, the retrieving unit 503 is further configured to: determining the position information of the cell corresponding to the entity word as target position information according to the entity word and the corresponding relation between the pre-stored entity word and the position relation; determining the cell content corresponding to the target position information as the target cell content according to the target position information and the corresponding relation between the pre-stored position information and the cell content; and taking the target cell content as a table retrieval result.
In some optional implementations of this embodiment, the output unit 504 is further configured to: acquiring feedback data corresponding to each page in the retrieval result; and determining the display sequence of each page according to the feedback data.
In some optional implementations of this embodiment, the output unit 504 is further configured to: generating a display card according to the page at the first display sorting position; and outputting the display card and the rest of retrieval results.
In some optional implementations of this embodiment, the apparatus 500 may further include a recommendation unit, not shown in fig. 5, configured to: acquiring a plurality of recommended retrieval sentences; and outputting the recommended retrieval statement in response to the fact that the similarity between the retrieval statement and the recommended retrieval statement is larger than a preset threshold.
In some optional implementations of this embodiment, the retrieving unit 503 is further configured to: determining synonyms of entity words and/or relationship words; according to the determined synonyms, entity words and relation words, at least one of the following searches is carried out: knowledge map retrieval, form retrieval, full-text retrieval and question-answer pair retrieval.
It should be understood that the units 501 to 504, which are described in the apparatus 500 for outputting information, correspond to the respective steps in the method described with reference to fig. 2, respectively. Thus, the operations and features described above for the method for outputting information are equally applicable to the apparatus 500 and the units included therein and will not be described again here.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 6, is a block diagram of an electronic device executing a method for outputting information according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 6, the electronic apparatus includes: one or more processors 601, memory 602, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 6, one processor 601 is taken as an example.
The memory 602 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the methods provided herein for outputting information. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the methods provided herein for outputting information.
The memory 602, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the execution of the method for outputting information in the embodiments of the present application (for example, the receiving unit 501, the determining unit 502, the retrieving unit 503, and the outputting unit 504 shown in fig. 5). The processor 601 executes various functional applications of the server and data processing by executing non-transitory software programs, instructions and modules stored in the memory 602, that is, implements the method for outputting information performed in the above method embodiment.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of an electronic device performed to output information, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 602 optionally includes memory located remotely from the processor 601, which may be connected via a network to an electronic device executing instructions for outputting information. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device performing the method for outputting information may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.
The input device 603 may receive input numeric or character information and generate key signal inputs related to performing user settings and function control of an electronic apparatus for outputting information, such as an input device like a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, etc. The output devices 604 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the reference text is introduced in the pre-training and fine-tuning processes, so that the learning capacity of the language model on external knowledge can be improved, and the accuracy of understanding the input text is improved; by marking the input text and the reference text, the introduction of noise or the dilution of the input text is avoided.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (14)

1. A method for outputting information, comprising:
receiving a retrieval statement;
analyzing the retrieval sentences to determine entity words and relation words contained in the retrieval sentences;
based on the entity words and the relation words, at least one of the following searches is conducted: retrieving a knowledge map, retrieving a form, retrieving a full text and retrieving a question and answer pair to obtain a retrieval result;
and sorting the retrieval results, and outputting the sorted retrieval results.
2. The method of claim 1, wherein the table retrieval comprises:
determining the position information of the cell corresponding to the entity word as target position information according to the entity word and the corresponding relation between the pre-stored entity word and the position relation;
determining the cell content corresponding to the target position information as target cell content according to the target position information and the corresponding relation between the pre-stored position information and the cell content;
and taking the target cell content as a table retrieval result.
3. The method of claim 1, wherein said ranking said search results comprises:
acquiring feedback data corresponding to each page in the retrieval result;
and determining the display sequence of each page according to the feedback data.
4. The method of claim 3, wherein the outputting the search result comprises:
generating a display card according to the page at the first display sorting position;
and outputting the display card and the rest retrieval results.
5. The method of claim 1, wherein the method further comprises:
acquiring a plurality of recommended retrieval sentences;
and outputting the recommended retrieval statement in response to the fact that the similarity between the retrieval statement and the recommended retrieval statement is larger than a preset threshold.
6. The method of claim 1, wherein the at least one of the following searches is performed based on the entity words and the relationship words: the method comprises the following steps of knowledge map retrieval, form retrieval, full-text retrieval and question-answer pair retrieval, wherein the steps comprise:
determining synonyms of the entity words and/or the relation words;
according to the determined synonyms, the entity words and the relation words, at least one of the following searches is conducted: knowledge map retrieval, form retrieval, full-text retrieval and question-answer pair retrieval.
7. An apparatus for outputting information, comprising:
a receiving unit configured to receive a retrieval sentence;
the determining unit is configured to analyze the retrieval statement and determine entity words and relation words included in the retrieval statement;
a search unit configured to perform at least one of the following searches based on the entity word and the relation word: retrieving a knowledge map, retrieving a form, retrieving a full text and retrieving a question and answer pair to obtain a retrieval result;
and the output unit is configured to sort the retrieval results and output the sorted retrieval results.
8. The apparatus of claim 7, wherein the retrieval unit is further configured to:
determining the position information of the cell corresponding to the entity word as target position information according to the entity word and the corresponding relation between the pre-stored entity word and the position relation;
determining the cell content corresponding to the target position information as target cell content according to the target position information and the corresponding relation between the pre-stored position information and the cell content;
and taking the target cell content as a table retrieval result.
9. The apparatus of claim 7, wherein the output unit is further configured to:
acquiring feedback data corresponding to each page in the retrieval result;
and determining the display sequence of each page according to the feedback data.
10. The apparatus of claim 9, wherein the output unit is further configured to:
generating a display card according to the page at the first display sorting position;
and outputting the display card and the rest retrieval results.
11. The apparatus of claim 7, wherein the apparatus further comprises a recommendation unit configured to:
acquiring a plurality of recommended retrieval sentences;
and outputting the recommended retrieval statement in response to the fact that the similarity between the retrieval statement and the recommended retrieval statement is larger than a preset threshold.
12. The apparatus of claim 7, wherein the retrieval unit is further configured to:
determining synonyms of the entity words and/or the relation words;
according to the determined synonyms, the entity words and the relation words, at least one of the following searches is conducted: knowledge map retrieval, form retrieval, full-text retrieval and question-answer pair retrieval.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
CN202010326136.7A 2020-04-23 2020-04-23 Method, apparatus, device and storage medium for outputting information Active CN111523019B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010326136.7A CN111523019B (en) 2020-04-23 2020-04-23 Method, apparatus, device and storage medium for outputting information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010326136.7A CN111523019B (en) 2020-04-23 2020-04-23 Method, apparatus, device and storage medium for outputting information

Publications (2)

Publication Number Publication Date
CN111523019A true CN111523019A (en) 2020-08-11
CN111523019B CN111523019B (en) 2023-05-09

Family

ID=71904310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010326136.7A Active CN111523019B (en) 2020-04-23 2020-04-23 Method, apparatus, device and storage medium for outputting information

Country Status (1)

Country Link
CN (1) CN111523019B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182150A (en) * 2020-09-23 2021-01-05 中国建设银行股份有限公司 Aggregation retrieval method, device, equipment and storage medium based on multivariate data
CN112860813A (en) * 2021-02-10 2021-05-28 北京百度网讯科技有限公司 Method and device for retrieving information
JP7519138B1 (en) 2023-04-20 2024-07-19 キャンバス社会保険労務士法人 Information Providing Device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020023089A1 (en) * 2000-02-24 2002-02-21 Woo Thomas Y. Modular packet classification
US20020065814A1 (en) * 1997-07-01 2002-05-30 Hitachi, Ltd. Method and apparatus for searching and displaying structured document
CN1845104A (en) * 2006-05-22 2006-10-11 赵开灏 System and method for intelligent retrieval and processing of information
CN102779136A (en) * 2011-05-13 2012-11-14 北京搜狗科技发展有限公司 Method and device for information search
CN103106282A (en) * 2013-02-27 2013-05-15 王义东 Method for search and display of webpage
CN103942279A (en) * 2014-04-01 2014-07-23 百度(中国)有限公司 Method and device for showing search result
CN104199875A (en) * 2014-08-20 2014-12-10 百度在线网络技术(北京)有限公司 Search recommending method and device
CN106096050A (en) * 2016-06-29 2016-11-09 乐视控股(北京)有限公司 A kind of method and apparatus of video contents search
CN106919655A (en) * 2017-01-24 2017-07-04 网易(杭州)网络有限公司 A kind of answer provides method and apparatus
CN109165351A (en) * 2018-08-27 2019-01-08 成都信息工程大学 A kind of semantic-based services component search recommended method
CN109885660A (en) * 2019-02-22 2019-06-14 上海乐言信息科技有限公司 A kind of question answering system and method based on information retrieval that knowledge mapping is energized
CN110765079A (en) * 2018-07-27 2020-02-07 国信优易数据有限公司 Table information searching method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020065814A1 (en) * 1997-07-01 2002-05-30 Hitachi, Ltd. Method and apparatus for searching and displaying structured document
US20020023089A1 (en) * 2000-02-24 2002-02-21 Woo Thomas Y. Modular packet classification
CN1845104A (en) * 2006-05-22 2006-10-11 赵开灏 System and method for intelligent retrieval and processing of information
CN102779136A (en) * 2011-05-13 2012-11-14 北京搜狗科技发展有限公司 Method and device for information search
CN103106282A (en) * 2013-02-27 2013-05-15 王义东 Method for search and display of webpage
CN103942279A (en) * 2014-04-01 2014-07-23 百度(中国)有限公司 Method and device for showing search result
CN104199875A (en) * 2014-08-20 2014-12-10 百度在线网络技术(北京)有限公司 Search recommending method and device
CN106096050A (en) * 2016-06-29 2016-11-09 乐视控股(北京)有限公司 A kind of method and apparatus of video contents search
CN106919655A (en) * 2017-01-24 2017-07-04 网易(杭州)网络有限公司 A kind of answer provides method and apparatus
CN110765079A (en) * 2018-07-27 2020-02-07 国信优易数据有限公司 Table information searching method and device
CN109165351A (en) * 2018-08-27 2019-01-08 成都信息工程大学 A kind of semantic-based services component search recommended method
CN109885660A (en) * 2019-02-22 2019-06-14 上海乐言信息科技有限公司 A kind of question answering system and method based on information retrieval that knowledge mapping is energized

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王丽娟等: "知识图谱数据管理系统的设计与实现", 《数据库技术》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182150A (en) * 2020-09-23 2021-01-05 中国建设银行股份有限公司 Aggregation retrieval method, device, equipment and storage medium based on multivariate data
CN112860813A (en) * 2021-02-10 2021-05-28 北京百度网讯科技有限公司 Method and device for retrieving information
CN112860813B (en) * 2021-02-10 2023-09-22 北京百度网讯科技有限公司 Method and device for retrieving information
JP7519138B1 (en) 2023-04-20 2024-07-19 キャンバス社会保険労務士法人 Information Providing Device

Also Published As

Publication number Publication date
CN111523019B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
JP7223785B2 (en) TIME-SERIES KNOWLEDGE GRAPH GENERATION METHOD, APPARATUS, DEVICE AND MEDIUM
CN112507715B (en) Method, device, equipment and storage medium for determining association relation between entities
CN111428008B (en) Method, apparatus, device and storage medium for training a model
CN111625635A (en) Question-answer processing method, language model training method, device, equipment and storage medium
CN111967262A (en) Method and device for determining entity tag
CN111428514A (en) Semantic matching method, device, equipment and storage medium
CN111522944B (en) Method, apparatus, device and storage medium for outputting information
JP2021190073A (en) Method for sorting resource, method for training sorting model and corresponding apparatuses
US20210200813A1 (en) Human-machine interaction method, electronic device, and storage medium
CN110597978B (en) Article abstract generation method, system, electronic equipment and readable storage medium
CN111523019B (en) Method, apparatus, device and storage medium for outputting information
JP7498129B2 (en) METHOD AND APPARATUS FOR PUSHING INFORMATION, ELECTRONIC DEVICE, STORAGE MEDIUM, AND COMPUTER PROGRAM - Patent application
CN111966782A (en) Retrieval method and device for multi-turn conversations, storage medium and electronic equipment
CN112528001A (en) Information query method and device and electronic equipment
CN112287121A (en) Push information generation method and device
CN112926308B (en) Method, device, equipment, storage medium and program product for matching text
CN111858905A (en) Model training method, information identification method, device, electronic equipment and storage medium
CN112380847A (en) Interest point processing method and device, electronic equipment and storage medium
CN112084150B (en) Model training and data retrieval method, device, equipment and storage medium
CN111782785B (en) Automatic question and answer method, device, equipment and storage medium
CN110738056A (en) Method and apparatus for generating information
CN111984774A (en) Search method, device, equipment and storage medium
CN111291184A (en) Expression recommendation method, device, equipment and storage medium
CN111385188A (en) Recommendation method and device for dialog elements, electronic equipment and medium
CN112926297A (en) Method, apparatus, device and storage medium for processing information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant