CN110019678B - Information presentation and retrieval method and device - Google Patents

Information presentation and retrieval method and device Download PDF

Info

Publication number
CN110019678B
CN110019678B CN201711320361.4A CN201711320361A CN110019678B CN 110019678 B CN110019678 B CN 110019678B CN 201711320361 A CN201711320361 A CN 201711320361A CN 110019678 B CN110019678 B CN 110019678B
Authority
CN
China
Prior art keywords
search
information
word
paraphrasing
term
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.)
Active
Application number
CN201711320361.4A
Other languages
Chinese (zh)
Other versions
CN110019678A (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 CN201711320361.4A priority Critical patent/CN110019678B/en
Publication of CN110019678A publication Critical patent/CN110019678A/en
Application granted granted Critical
Publication of CN110019678B publication Critical patent/CN110019678B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3332Query translation
    • G06F16/3334Selection or weighting of terms from queries, including natural language queries
    • 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/951Indexing; Web crawling techniques
    • 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/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Machine Translation (AREA)

Abstract

The embodiment of the application discloses an information presentation and retrieval method and device. One embodiment of the information presentation method comprises the following steps: responding to an information search instruction triggered by a detected user, and extracting search information input by the user, wherein the search information comprises a keyword, a first search word and a second search word which are mutually similar words; transmitting an information acquisition request containing the search information to a server; receiving a search result returned after the server recognizes the keyword, the first search word and the second search word, wherein the search result comprises the paraphrasing of the first search word and the paraphrasing of the second search word; a search result page is presented that contains the search information and the search result. This embodiment increases the flexibility of information presentation.

Description

Information presentation and retrieval method and device
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to the technical field of Internet, and particularly relates to information presentation and retrieval methods and devices.
Background
Chinese is profound, and words are a very important class in Chinese. In the process of learning Chinese, if a user encounters two words with similar meaning, the user usually needs to know the paraphrasing of the two words to distinguish the two words.
The existing mode is that after a user inputs a word to be searched for paraphrasing, massive search results related to the word are presented, and the user manually reads and filters the word paraphrasing which is considered to be relatively standard one by one.
Disclosure of Invention
The embodiment of the application provides an information presentation and retrieval method and device.
In a first aspect, an embodiment of the present application provides an information presenting method, including: responding to an information search instruction triggered by a detected user, and extracting search information input by the user, wherein the search information comprises a keyword, a first search word and a second search word which are similar to each other; sending an information acquisition request containing retrieval information to a server; receiving a search result returned after the server recognizes the keyword, the first search word and the second search word, wherein the search result comprises the paraphrasing of the first search word and the paraphrasing of the second search word; a search results page is presented that contains search information and search results.
In some embodiments, the search results page includes a search information area in which search information is presented, a first paraphrasing area in which paraphrasing of the first search term is presented, and a second paraphrasing area in which paraphrasing of the second search term is presented.
In some embodiments, the method further comprises: in response to detecting a click operation of the retrieval information area and/or the first paraphrasing area by a user, presenting a first word detail page of the first retrieval word, wherein the first word detail page presents at least one of the following of the first retrieval word: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some embodiments, the method further comprises: in response to detecting a click operation of the second paraphrasing region by the user, presenting a second word detail page of the second term, wherein the second word detail page presents at least one of the following of the second term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some embodiments, the search result page also presents pinyin for the first term, pinyin for the second term, a speakable icon corresponding to the first term, and a speakable icon corresponding to the second term; the method further comprises: and responding to the detection of the click operation of the user on the speakable icon, and outputting the voice of the search term corresponding to the clicked speakable icon.
In a second aspect, an embodiment of the present application provides a retrieval method, including: receiving an information acquisition request which is sent by a client and contains retrieval information; determining whether a keyword, a first search word and a second search word which are mutually similar words exist in the search information or not based on a preset keyword set and a near-meaning binary word set; in response to determining that the keyword, the first search term and the second search term exist in the search information, retrieving the paraphrasing of the first search term and the paraphrasing of the second search term; and returning a search result containing the paraphrasing of the first search word and the paraphrasing of the second search word to the client so that the client presents a search result page containing search information and search results.
In some embodiments, determining whether the keyword and the first term and the second term that are the paraphrasing each other exist in the search information based on the preset keyword set and the paraphrasing set includes: word segmentation is carried out on the retrieval information; extracting a preset keyword set, and matching each word obtained after word segmentation with keywords in the keyword set to determine whether the word is a keyword or not; and extracting a preset near-sense binary phrase set in response to the fact that keywords exist in the words obtained after word segmentation, and determining whether the words matched with the words in the near-sense binary phrases exist in the words obtained after word segmentation for each near-sense binary phrase in the near-sense binary phrase set, if so, determining the words matched with the words in the near-sense binary phrases as a first search word and a second search word respectively.
In some embodiments, the method further comprises: responding to a jump request which is sent by a client and is used for a first word detail page of a first search word, searching the detail information of the first search word, generating a first detail information search result, and returning a first result detail page containing the first detail information search result to the client, wherein the first detail information search result comprises at least one of the following items of the first search word: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some embodiments, the method further comprises: responding to a jump request of a second word detail page of a second search word, which is sent by a client, searching the detail information of the second search word, generating a second detail information search result, and returning a second result detail page containing the second detail information search result to the client, wherein the second detail information search result comprises at least one of the following items of the second search word: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some embodiments, the method further comprises: and generating voice corresponding to the first search term or the second search term in response to the voice acquisition request sent by the client and returning the voice to the client.
In a third aspect, an embodiment of the present application provides an information presentation apparatus, including: an extraction unit configured to extract search information input by a user in response to detection of an information search instruction triggered by the user, wherein the search information includes a keyword, a first search term and a second search term that are paraphrasing each other; a transmitting unit configured to transmit an information acquisition request including the retrieval information to the server; the receiving unit is configured to receive a search result returned after the server identifies the keyword, the first search word and the second search word, wherein the search result comprises a paraphrase of the first search word and a paraphrase of the second search word; a first presentation unit configured to present a search result page containing search information and search results.
In some embodiments, the search results page includes a search information area in which search information is presented, a first paraphrasing area in which paraphrasing of the first search term is presented, and a second paraphrasing area in which paraphrasing of the second search term is presented.
In some embodiments, the apparatus further comprises: a second presentation unit configured to present a first word detail page of the first term in response to detecting a click operation of the search information area and/or the first paraphrasing area by the user, wherein the first word detail page is presented with at least one of the following of the first term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some embodiments, the apparatus further comprises: a third presentation unit configured to present a second word detail page of a second term in response to detecting a click operation of the second paraphrasing region by the user, wherein the second word detail page is presented with at least one of the following of the second term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some embodiments, the search result page also presents pinyin for the first term, pinyin for the second term, a speakable icon corresponding to the first term, and a speakable icon corresponding to the second term; the apparatus further comprises: and the output unit is configured to respond to the detection of the click operation of the user on the speakable icon and output the voice of the search term corresponding to the clicked speakable icon.
In a fourth aspect, an embodiment of the present application provides a retrieval device, including: a receiving unit configured to receive an information acquisition request including search information sent by a client; the determining unit is configured to determine whether a keyword, a first search word and a second search word which are mutually similar words exist in the search information or not based on a preset keyword set and a near-meaning binary phrase set; a search unit configured to search, in response to determining that the keyword, the first search term, and the second search term exist in the search information, paraphrasing of the first search term and paraphrasing of the second search term; and a return unit configured to return a search result including the paraphrasing of the first search term and the paraphrasing of the second search term to the client so that the client presents a search result page including the search information and the search result.
In some embodiments, the determining unit comprises: the word segmentation module is configured to segment the search information; the matching module is configured to extract a preset keyword set, and match each word obtained after word segmentation with keywords in the keyword set to determine whether the word is a keyword or not; the determining module is configured to respond to the fact that keywords exist in words obtained after word segmentation, extract a preset set of near-sense binary phrases, determine whether words matched with each word in the near-sense binary phrases exist in the words obtained after word segmentation at the same time for each near-sense binary phrase in the set of near-sense binary phrases, and if yes, determine the words matched with the words in the near-sense binary phrases as a first search word and a second search word respectively.
In some embodiments, the apparatus further comprises: the first generation unit is configured to respond to a received jump request of a first word detail page of a first search word, which is sent by a client, search the detail information of the first search word, generate a first detail information search result, and return a first result detail page containing the first detail information search result to the client, wherein the first detail information search result comprises at least one of the following items of the first search word: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some embodiments, the apparatus further comprises: a second generating unit configured to search, in response to receiving a skip request sent by the client for a second word detail page of the second search term, the detail information of the second search term, generate a second detail information search result, and return, to the client, a second result detail page including the second detail information search result, where the second detail information search result includes at least one of the following items of the second search term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some embodiments, the apparatus further comprises: and a third generating unit configured to generate a voice corresponding to the first term or the second term and return the voice to the client in response to detecting a voice acquisition request for the first term or the second term sent by the client.
In a fifth aspect, an embodiment of the present application provides a terminal device, including: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method as in any of the embodiments of the information presentation method.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method as in any of the embodiments of the information presentation method.
According to the information presentation and retrieval method and device provided by the embodiment of the application, the paraphrases of two similar Chinese vocabularies are directly presented in the retrieval result page, so that the information search efficiency of a user is improved, and the flexibility of information presentation is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow chart of one embodiment of an information presentation method according to the present application;
FIG. 3 is a schematic diagram of a presentation process of a search results page according to the present application;
FIG. 4 is a schematic diagram of a presentation process of a first word detail page according to the present application;
FIG. 5 is a flow chart of yet another embodiment of a retrieval method according to the present application;
fig. 6 is a schematic structural view of an embodiment of an information presentation apparatus according to the present application;
FIG. 7 is a schematic view of a structure of an embodiment of a retrieving apparatus according to the present application;
fig. 8 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the present application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Fig. 1 shows an exemplary system architecture 100 in which the information presentation method or information presentation apparatus of the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as search class applications, web browser applications, instant messaging tools, mailbox clients, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a search server providing search services for the terminal devices 101, 102, 103. The search server may analyze the received data such as the information acquisition request, etc., and feed back the processing result (for example, the search result for paraphrasing of the search term) to the terminal device.
It should be noted that, the information presenting method provided by the embodiment of the present application is generally executed by the terminal devices 101, 102, 103, and accordingly, the information presenting apparatus is generally disposed in the terminal devices 101, 102, 103; the search method provided by the embodiment of the application is generally executed by the server 105, and accordingly the search device is generally disposed 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 an information presentation method according to the present application is shown. The information presentation method comprises the following steps:
in step 201, in response to detecting an information search instruction triggered by a user, search information input by the user is extracted.
In this embodiment, an electronic device (for example, terminal devices 101, 102, 103 shown in fig. 1) on which the information presentation method operates may extract search information input by a user in response to detecting a user-triggered information search instruction, where the search information may include a keyword, a first search term and a second search term that are close to each other (for example, "job lost" and "job lost"). Here, the above-mentioned keywords may be words for representing distinction, such as "distinction", "difference", and the like.
In practice, the electronic device may be installed with an information search class application or a browser application. The interface of the information search class application or browser application may include an input box and a "search" button. The user may perform input of retrieval information (e.g., "difference between malpractice") in the above-described input box. After the search information is entered, the information search request may be triggered by clicking the "search" button described above.
Step 202, an information acquisition request containing the retrieval information is sent to a server.
In this embodiment, after extracting the search information input by the user, the electronic device may send an information acquisition request including the search information to a server (e.g., the server 105 shown in fig. 1) through a wired connection or a wireless connection. It should be noted that the wireless connection may include, but is not limited to, 3G/4G connections, wiFi connections, bluetooth connections, wiMAX connections, zigbee connections, UWB (ultra wideband) connections, and other now known or later developed wireless connection means.
Step 203, receiving a search result returned after the server identifies the keyword, the first search term and the second search term.
In this embodiment, the electronic device may receive a search result returned after the server identifies the keyword, the first search term, and the second search term, where the search result includes a paraphrase of the first search term and a paraphrase of the second search term.
In practice, after receiving the information acquisition request including the search information sent by the electronic device, the server may identify the search information based on a preset keyword set and a near-meaning binary phrase set. If the keyword, the first search term, and the second search term are identified, the paraphrasing of the first search term and the paraphrasing of the second search term may be searched. And finally, returning a search result containing the paraphrasing of the first search word and the paraphrasing of the second search word to the client.
Step 204, a search results page containing search information and search results is presented.
In this embodiment, after receiving the search result, the electronic device may present a search result page including the search information and the search result. In practice, after the user inputs the search information in the input box of the information search application or browser application and clicks the "search" button, the process of presenting the search result page by the electronic device may be as shown in fig. 3. Fig. 3 shows a schematic diagram of a presentation process of a search result page. In fig. 3, the user is entering the search information "difference between malpractice and malpractice" using the information search class application, and clicks the "search" button (as indicated by reference numeral 301), and then a search results page is presented in the display interface of the information search class application (as indicated by reference numeral 302).
In some optional implementations of this embodiment, the search result page may include a search information area in which the search information is presented, a first paraphrasing area in which a paraphrasing of the first search term is presented, and a second paraphrasing area in which a paraphrasing of the second search term is presented.
In some optional implementations of this embodiment, after the electronic device presents the search result page, the following operations may be further performed: in response to detecting a click operation of the user on the search information area and/or the first paraphrasing area, presenting a first word detail page of the first search term, wherein the first word detail page presents at least one of the following of the first search term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations. FIG. 4 shows a schematic diagram of a presentation process of a first word detail page. In fig. 4, the result detail page (shown as reference numeral 401) includes a search information area 402 in which the search information is presented, a first paraphrasing area 403 in which the paraphrasing of the first search term is presented, and a second paraphrasing area 404 in which the paraphrasing of the second search term is presented. After the user clicks the search information area 402 and/or the first paraphrasing area 403, a first word detail page (as shown by reference numeral 405) of the first search term is presented in the display interface.
In some optional implementations of this embodiment, after the electronic device presents the search result page, the following operations may be further performed: in response to detecting the clicking operation of the user on the second paraphrasing region, presenting a second word detail page of the second search term, wherein the second word detail page presents at least one of the following items of the second search term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some optional implementations of this embodiment, the search result page may further display pinyin of the first search term, pinyin of the second search term, a speakable icon corresponding to the first search term, and a speakable icon corresponding to the second search term. After the electronic device presents the search result page, the following operations may also be performed: and responding to the detection of the click operation of the user on the speakable icon, and outputting the voice of the search term corresponding to the clicked speakable icon. Specifically, the electronic device may determine a voice of a search term corresponding To the clicked icon using TTS (Text To Speech) technology, and then output the voice. The electronic device may send a voice acquisition request to the server, receive a voice signal of the search term sent by the server, and output the voice.
According to the method provided by the embodiment of the application, after the information search instruction triggered by the user is detected, the search information of the first search word and the second search word which are the similar words and are input by the user is extracted, then the search information is sent to the server so as to receive the search result which is returned by the server and comprises the paraphrasing of the first search word and the paraphrasing of the second search word, and finally the search result page containing the search result is presented, so that the user is not required to search the paraphrasing of the two search words in massive search result data by himself, the search efficiency of the user is improved, the paraphrasing of the two search words is presented in the page at the same time, and the flexibility of information presentation is improved.
With further reference to fig. 5, a flow 500 of yet another embodiment of a retrieval method is shown. The process 500 of the search method includes the steps of:
step 501, an information acquisition request including search information and sent by a client is received.
In this embodiment, the electronic device (e.g., the server 105 shown in fig. 1) on which the search method operates may accept an information acquisition request including search information sent by a client (e.g., the terminal devices 101, 102, 103 shown in fig. 1) through a wired connection or a wireless connection.
Step 502, determining whether a keyword, a first search word and a second search word which are similar words exist in the search information or not based on a preset keyword set and a near-meaning binary phrase set.
In this embodiment, the electronic device may determine, based on a preset keyword set and a near-meaning binary phrase set, whether a first keyword and a second keyword that are near-meaning words exist in the search information. Wherein, the keywords in the keyword set may be words for characterizing distinction, such as "distinction", "difference", and the like. The near-sense phrases in the set of near-sense phrases may be two words that are mutually near-defined, e.g., "no-job" and "no-job". Here, the electronic device may determine whether the keyword in the keyword set and the near-meaning binary phrase in the near-meaning binary phrase set exist in the search information through a character string matching manner, and if the near-meaning binary phrase exists, one word in the near-meaning binary phrase may be determined as a first search word, and the other word in the near-meaning binary phrase may be determined as a second search word.
In some optional implementations of this embodiment, the electronic device may first word the search information. Then, a preset keyword set can be extracted, and each word obtained after word segmentation is matched with keywords in the keyword set to determine whether the word is a keyword or not. And then, in response to determining that keywords exist in words obtained after word segmentation, the electronic device can extract a preset set of near-sense binary phrases, and for each near-sense binary phrase in the set of near-sense binary phrases, determine whether words matched with each word in the near-sense binary phrase exist in the words obtained after word segmentation at the same time, if so, determine the words matched with the words in the near-sense binary phrases as a first search word and a second search word respectively.
In step 503, in response to determining that the keyword, the first search term, and the second search term exist in the search information, the paraphrasing of the first search term and the paraphrasing of the second search term are searched.
In this embodiment, the electronic device may retrieve the paraphrasing of the first term and the paraphrasing of the second term in response to determining that the keyword, the first term and the second term exist in the retrieval information. Here, the above-mentioned electronic device may perform the paraphrasing search of the search term by using various existing search methods, which will not be described herein.
Step 504, returning the search result containing the paraphrasing of the first search term and the paraphrasing of the second search term to the client so that the client presents a search result page containing the search information and the search result.
In this embodiment, the electronic device may return, to the client, a search result including the paraphrase of the first search term and the paraphrase of the second search term, so that the client presents a search result page including the search information and the search result.
In some optional implementations of this embodiment, after the electronic device returns the search result to the client, in response to receiving a skip request sent by the client for a first word detail page of the first search term, the electronic device may search for detail information of the first search term, generate a first detail information search result, and return, to the client, a first result detail page including the first detail information search result, where the first detail information search result may include at least one of the following items of the first search term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some optional implementations of this embodiment, after the electronic device returns the search result to the client, in response to receiving a skip request sent by the client for a second word detail page of the second search term, the electronic device may search for detail information of the second search term, generate a second detail information search result, and return, to the client, a second result detail page including the second detail information search result, where the second detail information search result includes at least one of the following items of the second search term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some optional implementations of this embodiment, after the electronic device returns the search result to the client, in response to detecting a voice acquisition request sent by the client for the first search term or the second search term, a TTS technology may be used to generate a voice corresponding to the first search term or the second search term, and return the voice to the client.
According to the method provided by the embodiment of the application, after the information acquisition request which is sent by the client and contains the search information is received, whether the first search word and the second search word which are the similar words exist in the search information or not is determined, then if the first search word and the second search word are determined to exist, the paraphrasing of the first search word and the paraphrasing of the second search word are searched, and finally the search result which contains the paraphrasing of the first search word and the paraphrasing of the second search word is returned to the client, so that the client presents a search result page which contains the search information and the search result, the search intention of a user can be effectively identified, and the targeted information search is realized.
With further reference to fig. 6, as an implementation of the method shown in the above figures, the present application provides an embodiment of an information presentation apparatus, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various terminal devices.
As shown in fig. 6, the information presentation apparatus 600 according to the present embodiment includes: an extracting unit 601 configured to extract search information input by a user in response to detection of an information search instruction triggered by the user, where the search information includes a keyword, a first search term and a second search term that are mutually similar terms; a transmitting unit 602 configured to transmit an information acquisition request including the search information to a server; a receiving unit 603 configured to receive a search result returned after the server identifies the keyword, the first search term, and the second search term, where the search result includes a paraphrase of the first search term and a paraphrase of the second search term; a first presenting unit 604 configured to present a search result page containing the search information and the search result.
In this embodiment, the extracting unit 601 may extract, in response to detecting an information search instruction triggered by a user, search information input by the user, where the search information includes a keyword, a first search term and a second search term that are mutually similar terms.
In this embodiment, the transmitting unit 602 may transmit an information acquisition request including the search information to a server.
In this embodiment, the receiving unit 603 may receive a search result returned after the server identifies the keyword, the first search term, and the second search term, where the search result includes a paraphrase of the first search term and a paraphrase of the second search term.
In this embodiment, the first presenting unit 604 may present a search result page including the search information and the search result.
In some optional implementations of this embodiment, the search result page may include a search information area in which the search information is presented, a first paraphrasing area in which a paraphrasing of the first search term is presented, and a second paraphrasing area in which a paraphrasing of the second search term is presented.
In some alternative implementations of the present embodiment, the apparatus may further include a second presentation unit (not shown in the figures). Wherein the second presenting unit may be configured to present a first word detail page of the first search term in response to detecting a click operation of the user on the search information area and/or the first paraphrasing area, where the first word detail page presents at least one of the following items of the first search term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some alternative implementations of the present embodiment, the apparatus further comprises a third presentation unit (not shown in the figures). Wherein the third presenting unit may be configured to present a second word detail page of the second term in response to detecting a click operation of the second paraphrasing region by the user, wherein the second word detail page presents at least one of the following of the second term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some optional implementations of this embodiment, the search result page may further display pinyin of the first search term, pinyin of the second search term, a speakable icon corresponding to the first search term, and a speakable icon corresponding to the second search term. The apparatus may also include an output unit not shown in the figure). The output unit may be configured to output, in response to detecting the click operation of the user on the speakable icon, a voice of a search term corresponding to the clicked speakable icon.
According to the device provided by the embodiment of the application, after the extraction unit 601 detects that the user triggers the information search instruction, the retrieval information of the first retrieval word and the second retrieval word which are the keywords and the paraphrasing words of each other and input by the user is extracted, then the sending unit 602 sends the retrieval information to the server, so that the receiving unit 603 receives the retrieval result which is returned by the server and comprises the paraphrasing of the first retrieval word and the paraphrasing of the second retrieval word, and finally the first presenting unit 604 presents the retrieval result page comprising the retrieval result, so that the user is not required to search the paraphrasing of the two retrieval words in the massive retrieval result data by himself, the retrieval efficiency of the user is improved, the paraphrasing of the two retrieval words is presented in the page at the same time, and the flexibility of information presentation is improved.
With further reference to fig. 7, as an implementation of the method shown in the above figures, the present application provides an embodiment of a search device, which corresponds to the embodiment of the method shown in fig. 5, and which is particularly applicable to a server.
As shown in fig. 7, the search device 700 according to the present embodiment includes: a receiving unit 701 configured to receive an information acquisition request including search information sent by a client; a determining unit 702 configured to determine, based on a preset keyword set and a near-meaning binary phrase set, whether a first keyword and a second keyword which are near-meaning words exist in the search information; a search unit 703 configured to search, in response to determining that the keyword, the first search term, and the second search term exist in the search information, a paraphrase of the first search term and a paraphrase of the second search term; and a return unit 704 configured to return a search result including the paraphrasing of the first search term and the paraphrasing of the second search term to the client so that the client presents a search result page including the search information and the search result.
In this embodiment, the receiving unit 701 may receive an information acquisition request including search information, which is sent by a client.
In this embodiment, the determining unit 702 may determine whether the first term and the second term, which are the keywords and the paraphrases, exist in the search information based on a preset keyword set and a paraphrase set.
In this embodiment, the search unit 703 may search for a paraphrase of the first search term and a paraphrase of the second search term in response to determining that the keyword, the first search term, and the second search term exist in the search information.
In this embodiment, the return unit 704 may return a search result including the paraphrasing of the first search term and the paraphrasing of the second search term to the client, so that the client presents a search result page including the search information and the search result.
In some optional implementations of the present embodiment, the determining unit 702 may include a word segmentation module, a matching module, and a determining module (not shown in the figure). The word segmentation module may be configured to segment the search information. The matching module may be configured to extract a preset keyword set, and match each word obtained after word segmentation with a keyword in the keyword set to determine whether the word is a keyword. The determining module may be configured to extract a preset set of near-sense binary phrases in response to determining that a keyword exists in the words obtained after word segmentation, determine, for each near-sense binary phrase in the set of near-sense binary phrases, whether a word matched with each word in the near-sense binary phrase exists in the words obtained after word segmentation at the same time, and if yes, determine the word matched with the word in the near-sense binary phrase as a first search word and a second search word respectively.
In some alternative implementations of the present embodiment, the apparatus may further include a first generating unit (not shown in the figures). The first generating unit may be configured to, in response to receiving a skip request sent by the client for a first term detail page of the first term, retrieve the detail information of the first term, generate a first detail information retrieval result, and return, to the client, a first result detail page including the first detail information retrieval result, where the first detail information retrieval result includes at least one of the following items of the first term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some alternative implementations of the present embodiment, the apparatus may further include a second generating unit (not shown in the figures). The second generating unit may be configured to, in response to receiving a skip request sent by the client for a second word detail page of the second search term, search for detail information of the second search term, generate a second detail information search result, and return, to the client, a second result detail page including the second detail information search result, where the second detail information search result includes at least one of the following items of the second search term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
In some alternative implementations of the present embodiment, the apparatus may further include a third generating unit (not shown in the figure). The third generating unit may be configured to generate a voice corresponding to the first term or the second term in response to detecting a voice acquisition request for the first term or the second term sent by the client, and return the voice to the client.
The device provided by the above embodiment of the present application receives, through the receiving unit 701, an information acquisition request including search information sent by a client, then the determining unit 702 determines whether there are a keyword and a first search term and a second search term which are similar to each other in the search information, then if it is determined that there are keywords, the searching unit 703 searches for the paraphrasing of the first search term and the paraphrasing of the second search term, and finally the returning unit 704 returns, to the client, a search result including the paraphrasing of the first search term and the paraphrasing of the second search term, so that the client presents a search result page including the search information and the search result, thereby effectively identifying the search intention of the user, and realizing targeted information search.
Referring now to FIG. 8, there is illustrated a schematic diagram of a computer system 800 suitable for use in implementing an embodiment of the present application. The terminal device shown in fig. 8 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present application.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU) 801 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
The following components are connected to the I/O interface 805: an input section 806 including a touch screen, a touch pad, or the like; an output portion 807 including a display such as a Liquid Crystal Display (LCD) or the like, a speaker or the like; including a storage portion 808; and a communication section 809 including a network interface card such as a LAN card. The communication section 809 performs communication processing via a network such as the internet. The drive 810 is also connected to the I/O interface 805 as needed. A removable medium 811 such as a semiconductor memory or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted into the storage portion 808 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 809, and/or installed from the removable media 811. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 801. The computer readable medium according to the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented in software or in hardware. The described units may also be provided in a processor, for example, described as: a processor includes an extraction unit, a transmission unit, a reception unit, and a first presentation unit. The names of these units do not constitute limitations on the unit itself in some cases, and for example, the extraction unit may also be described as "a unit that extracts search information input by a user".
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: responding to an information search instruction triggered by a detected user, and extracting search information input by the user, wherein the search information comprises a keyword, a first search word and a second search word which are mutually similar words; transmitting an information acquisition request containing the search information to a server; receiving a search result returned after the server recognizes the keyword, the first search word and the second search word, wherein the search result comprises the paraphrasing of the first search word and the paraphrasing of the second search word; a search result page is presented that contains the search information and the search result.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept described above. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.

Claims (14)

1. An information presentation method, comprising:
responding to an information search instruction triggered by a detected user, and extracting search information input by the user, wherein the search information comprises a keyword, a first search word and a second search word which are mutually similar words;
sending an information acquisition request containing the search information to a server;
receiving a search result returned after the server recognizes the keyword, the first search word and the second search word, wherein the search result comprises a paraphrase of the first search word and a paraphrase of the second search word;
and presenting a search result page containing the search information and the search result.
2. The information presentation method according to claim 1, the search result page includes a search information area in which the search information is presented, a first paraphrasing area in which a paraphrasing of the first search term is presented, and a second paraphrasing area in which a paraphrasing of the second search term is presented.
3. The information presentation method according to claim 2, the method further comprising:
in response to detecting a click operation of the user on the search information area and/or the first paraphrasing area, presenting a first word detail page of the first search term, wherein the first word detail page presents at least one of the following of the first search term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
4. The information presentation method according to claim 2, the method further comprising:
in response to detecting a click operation of the user on the second paraphrasing region, presenting a second word detail page of the second term, wherein the second word detail page presents at least one of the following of the second term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
5. The information presentation method according to claim 1, wherein the search result page further presents pinyin of the first search term, pinyin of the second search term, a speakable icon corresponding to the first search term, and a speakable icon corresponding to the second search term; and
the method further comprises the steps of:
and responding to the detection of the click operation of the user on the speakable icon, and outputting the voice of the search term corresponding to the clicked speakable icon.
6. A retrieval method, comprising:
receiving an information acquisition request which is sent by a client and contains retrieval information;
determining whether a keyword, a first search word and a second search word which are similar words exist in the search information or not based on a preset keyword set and a near-meaning binary phrase set;
In response to determining that the keyword, the first search term and the second search term exist in the search information, retrieving the paraphrasing of the first search term and the paraphrasing of the second search term;
and returning a search result containing the paraphrasing of the first search word and the paraphrasing of the second search word to the client so that the client presents a search result page containing the search information and the search result.
7. The retrieval method according to claim 6, wherein the determining whether the first and second retrieval words, which are keywords and each other's paraphrasing words, exist in the retrieval information based on a preset keyword set and a paraphrasing word set, comprises:
word segmentation is carried out on the search information;
extracting a preset keyword set, and matching each word obtained after word segmentation with keywords in the keyword set to determine whether the word is a keyword or not;
and extracting a preset near-sense binary phrase set in response to the fact that keywords exist in words obtained after word segmentation, and determining whether words matched with the words in the near-sense binary phrases exist in the words obtained after word segmentation for each near-sense binary phrase in the near-sense binary phrase set, if so, determining the words matched with the words in the near-sense binary phrases as a first search word and a second search word respectively.
8. The retrieval method of claim 6, the method further comprising:
responding to a jump request sent by the client and used for searching the detail information of the first search term, generating a first detail information search result, and returning a first result detail page containing the first detail information search result to the client, wherein the first detail information search result comprises at least one of the following items of the first search term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
9. The retrieval method of claim 6, the method further comprising:
responding to a jump request sent by the client and used for receiving a second word detail page of the second search term, searching the detail information of the second search term, generating a second detail information search result, and returning a second result detail page containing the second detail information search result to the client, wherein the second detail information search result comprises at least one of the following items of the second search term: pinyin, speakable icons, basic paraphrasing, detailed paraphrasing, anticompensation, puzzles, english translations.
10. The retrieval method of claim 6, the method further comprising:
and generating voice corresponding to the first search term or the second search term in response to the voice acquisition request sent by the client and returning the voice to the client.
11. An information presentation apparatus comprising:
an extraction unit configured to extract search information input by a user in response to detection of an information search instruction triggered by the user, wherein the search information comprises a keyword, a first search term and a second search term which are mutually similar terms;
a transmitting unit configured to transmit an information acquisition request including the search information to a server;
the receiving unit is configured to receive a search result returned after the server identifies the keyword, the first search word and the second search word, wherein the search result comprises paraphrasing of the first search word and paraphrasing of the second search word;
and a first presentation unit configured to present a search result page containing the search information and the search result.
12. A retrieval device, comprising:
A receiving unit configured to receive an information acquisition request including search information sent by a client;
the determining unit is configured to determine whether a keyword, a first search word and a second search word which are mutually similar words exist in the search information or not based on a preset keyword set and a near-meaning binary phrase set;
a search unit configured to search, in response to determining that the keyword, the first search term, and the second search term exist in the search information, paraphrasing of the first search term and paraphrasing of the second search term;
and a return unit configured to return a search result including the paraphrasing of the first search term and the paraphrasing of the second search term to the client so that the client presents a search result page including the search information and the search result.
13. A terminal device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-5.
14. A computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-5.
CN201711320361.4A 2017-12-12 2017-12-12 Information presentation and retrieval method and device Active CN110019678B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711320361.4A CN110019678B (en) 2017-12-12 2017-12-12 Information presentation and retrieval method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711320361.4A CN110019678B (en) 2017-12-12 2017-12-12 Information presentation and retrieval method and device

Publications (2)

Publication Number Publication Date
CN110019678A CN110019678A (en) 2019-07-16
CN110019678B true CN110019678B (en) 2023-08-29

Family

ID=67186875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711320361.4A Active CN110019678B (en) 2017-12-12 2017-12-12 Information presentation and retrieval method and device

Country Status (1)

Country Link
CN (1) CN110019678B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329669A (en) * 2007-06-19 2008-12-24 中山名人数码科技有限公司 Search engine apparatus and method
CN102479237A (en) * 2010-11-30 2012-05-30 成都致远诺亚舟教育科技有限公司 Word associated search and study method and system
CN106528835A (en) * 2016-11-18 2017-03-22 百度在线网络技术(北京)有限公司 Information acquisition method and device
CN106844638A (en) * 2017-01-19 2017-06-13 王碧波 Information retrieval method, device and electronic equipment
CN107077515A (en) * 2015-10-09 2017-08-18 Ib研究株式会社 Display control unit, display control method and display control program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329669A (en) * 2007-06-19 2008-12-24 中山名人数码科技有限公司 Search engine apparatus and method
CN102479237A (en) * 2010-11-30 2012-05-30 成都致远诺亚舟教育科技有限公司 Word associated search and study method and system
CN107077515A (en) * 2015-10-09 2017-08-18 Ib研究株式会社 Display control unit, display control method and display control program
CN106528835A (en) * 2016-11-18 2017-03-22 百度在线网络技术(北京)有限公司 Information acquisition method and device
CN106844638A (en) * 2017-01-19 2017-06-13 王碧波 Information retrieval method, device and electronic equipment

Also Published As

Publication number Publication date
CN110019678A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
US11669579B2 (en) Method and apparatus for providing search results
US11023505B2 (en) Method and apparatus for pushing information
CN107679211B (en) Method and device for pushing information
CN107832433B (en) Information recommendation method, device, server and storage medium based on conversation interaction
CN108804450B (en) Information pushing method and device
CN107622135B (en) Method and apparatus for displaying information
CN107241260B (en) News pushing method and device based on artificial intelligence
CN107577807B (en) Method and device for pushing information
CN106528835B (en) Information acquisition method and device
CN110069698B (en) Information pushing method and device
US9565301B2 (en) Apparatus and method for providing call log
CN109858045B (en) Machine translation method and device
CN110807311B (en) Method and device for generating information
CN105094603B (en) Method and device for associated input
US10057358B2 (en) Identifying and mapping emojis
CN111178052A (en) Method and device for constructing robot process automation application
CN108573053B (en) Information pushing method, device and system
CN107885872B (en) Method and device for generating information
CN111753056B (en) Information pushing method and device, computing equipment and computer readable storage medium
CN109376220B (en) Method and device for acquiring information
CN107168627B (en) Text editing method and device for touch screen
CN110019678B (en) Information presentation and retrieval method and device
CN107622766B (en) Method and apparatus for searching information
CN113421565A (en) Search method, search device, electronic equipment and storage medium
CN109426357B (en) Information input method and device

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