CN112948540A - Information query method and device, electronic equipment and computer readable medium - Google Patents

Information query method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN112948540A
CN112948540A CN202110129395.5A CN202110129395A CN112948540A CN 112948540 A CN112948540 A CN 112948540A CN 202110129395 A CN202110129395 A CN 202110129395A CN 112948540 A CN112948540 A CN 112948540A
Authority
CN
China
Prior art keywords
information
search
type combination
module
statement
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
CN202110129395.5A
Other languages
Chinese (zh)
Other versions
CN112948540B (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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110129395.5A priority Critical patent/CN112948540B/en
Publication of CN112948540A publication Critical patent/CN112948540A/en
Application granted granted Critical
Publication of CN112948540B publication Critical patent/CN112948540B/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/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • G06F40/295Named entity recognition

Landscapes

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

Abstract

The disclosure provides an information query method, an information query device, electronic equipment and a computer readable medium, and relates to the technical field of computers. The method comprises the following steps: receiving a search statement, wherein the search statement is related to a target entity; acquiring a search display result corresponding to the search statement; the search display result comprises at least one aggregation content corresponding to the information type combination of the target entity, and the information type combination of the target entity corresponds to the sentence structure of the search sentence; and displaying the search display result. The method and the device can search and obtain a search display result containing the aggregation content corresponding to the information type combination based on the sentence structure of the search sentence, and the search display result can better meet the search intention of the user.

Description

Information query method and device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information query method, an information query device, an electronic device, and a computer-readable medium.
Background
With the growth of the internet industry and the improvement of various medical data, users can input search sentences by using a search engine to acquire medical information to be known. The amount of data of a query (search word or search statement) of a medical type is huge, and at present, a server may return medical information of a certain aspect corresponding to a search statement to a user based on the search statement input by the user, but one search statement may actually correspond to medical information of multiple aspects, and how to return medical information related to a user search intention based on the search statement input by the user is a problem to be solved urgently.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
A first aspect of the present disclosure provides an information query method, including:
receiving a search statement, wherein the search statement is related to a target entity;
acquiring a search display result corresponding to the search statement; the search display result comprises at least one aggregation content corresponding to the information type combination of the target entity, and the information type combination of the target entity corresponds to the sentence structure of the search sentence;
and displaying the search display result.
A second aspect of the present disclosure provides an information query method, including:
receiving a search statement for a target entity;
determining a sentence structure of a search sentence, and extracting at least one keyword from the search sentence;
determining at least one information type combination of a target entity corresponding to the statement structure based on a preset database; the database stores a plurality of statement structures, and each statement structure corresponds to at least one information type combination of a target entity;
acquiring aggregation content corresponding to the search statement based on at least one keyword and the determined information type combination;
and sending a piece of search presentation result comprising the aggregated content to the terminal equipment.
A third aspect of the present disclosure provides an information query apparatus, including:
a first receiving module, configured to receive a search statement, where the search statement is related to a target entity;
the first acquisition module is used for acquiring a search display result corresponding to the search statement; the search display result comprises at least one aggregation content corresponding to the information type combination of the target entity, and the information type combination of the target entity corresponds to the sentence structure of the search sentence;
and the display module is used for displaying the search display result.
A fourth aspect of the present disclosure provides an information query apparatus, including:
a second receiving module, configured to receive a search statement for a target entity;
the first determining module is used for determining a sentence structure of a search sentence and extracting at least one keyword from the search sentence;
the second determining module is used for determining at least one information type combination of the target entity corresponding to the statement structure based on a preset database; the database stores a plurality of statement structures, and each statement structure corresponds to at least one information type combination of a target entity;
the second acquisition module is used for acquiring the aggregation content corresponding to the search statement based on at least one keyword and the determined information type combination;
and the sending module is used for sending a piece of search display result comprising the aggregated content to the terminal equipment.
In a fifth aspect of the present disclosure, an electronic device is provided, which includes:
the electronic device comprises a memory and a processor;
the memory has a computer program stored therein;
a processor for performing the method of the first or second aspect when executing the computer program.
A sixth aspect of the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processor, performs the method of the first or second aspect.
The technical scheme provided by the disclosure has the following beneficial effects:
after receiving a search statement, a search display result of the search statement can be obtained, the search display result comprises aggregation content corresponding to the information type combination of the target entity, the information type combination of the target entity corresponds to the statement structure of the search statement, and therefore, the information type combination can be determined based on the statement structure of the search statement, aggregation content corresponding to various information types can be obtained, and compared with the existing scheme that medical information in one aspect can only be searched, the search display result obtained through the search of the present disclosure comprises aggregation content corresponding to various information types, the search display result meets the user intention better, and diversity of the content in the search display result is guaranteed.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of an embodiment of an information query method according to the present disclosure;
FIG. 2 is a schematic view of a scenario of the information query method of the present disclosure;
FIG. 3 is a schematic diagram of another scenario of the information query method of the present disclosure;
FIG. 4 is a schematic diagram of another scenario of the information query method of the present disclosure;
FIG. 5 is a schematic diagram of another scenario of the information query method of the present disclosure;
FIG. 6 is a schematic diagram of another scenario of the information query method of the present disclosure;
FIG. 7 is a schematic diagram of another embodiment of the information query method of the present disclosure;
FIG. 8 is a schematic diagram of another embodiment of the information query method of the present disclosure;
FIG. 9 is a schematic diagram of an embodiment of an information query device according to the present disclosure;
FIG. 10 is a schematic view of another structure of the information query device of the present disclosure;
fig. 11 is a schematic structural diagram of an electronic device according to the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the devices, modules or units to be determined as different devices, modules or units, and are not used for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Referring to fig. 1, the present disclosure provides an information query method, which may be performed by a terminal device, where the terminal device may be a desktop terminal or a mobile terminal, and the method may include:
step S101, receiving a search statement, wherein the search statement is related to a target entity;
the terminal equipment receives a search sentence input by a user or sent by other equipment, wherein the search sentence can be a phrase or a sentence, and the search sentence is about a target entity.
The target entity may be a certain domain, such as a disease domain; the target entity may also be a keyword or a logo in a certain field, and if the keyword is included in the search sentence, the search sentence may be regarded as a search sentence for the target entity, for example, the target entity is a disease name in a disease field.
S102, obtaining a search display result corresponding to a search statement; the search display result comprises at least one aggregation content corresponding to the information type combination of the target entity, and the information type combination of the target entity corresponds to the sentence structure of the search sentence;
and the terminal equipment receives a search display result which is sent by the server and is obtained based on the search statement search.
In this embodiment, the search term has a unique term structure, and the term structure of the search term corresponds to the information type combination of the target entity, and generally: one sentence structure corresponds to one information type combination, and certainly, one sentence structure may correspond to more than one information type combination.
Each information type combination of the target entity has at least one corresponding aggregated content, and the terminal device can integrate the at least one aggregated content into a search presentation result.
The mode that the terminal equipment integrates the plurality of aggregated contents into one search display result is as follows: the terminal equipment typesets the plurality of aggregated contents and adjusts the display format, and the plurality of aggregated contents after typesetting or adjusting the format are used as a search display result. As can be seen, the search presentation result includes at least one aggregated content corresponding to the information type combination of the target entity.
In this embodiment, the aggregated content refers to unnatural content, and is obtained by aggregating a plurality of existing contents, for example, for each information type in the information type combination under the target entity, an existing web page corresponding to the information type may be searched for, and then the server may filter and process the contents of the existing web pages to obtain a plurality of target contents, and aggregate the plurality of target contents to obtain the aggregated content corresponding to the information type.
And step S103, displaying the search display result.
The terminal device may display the search presentation result in the form of a card, for example, when the information search method is used in the disease field, the search presentation result may be displayed through a disease card.
In this embodiment, the card is a tool preset on the terminal device for displaying the search display result, and the card may be a software function module in the terminal device.
In this embodiment, after receiving a search statement, a search presentation result of the search statement may be obtained, where the search presentation result includes aggregation content corresponding to an information type combination of a target entity, and the information type combination of the target entity corresponds to a statement structure of the search statement, and it is apparent that the search presentation result obtained by the search of the present disclosure includes aggregation content corresponding to a plurality of information types based on the statement structure of the search statement, so that aggregation content corresponding to a plurality of information types may be obtained, and in comparison with an existing scheme that only medical information in one aspect can be searched, the search presentation result obtained by the search of the present disclosure includes aggregation content corresponding to a plurality of information types, and the search presentation result satisfies a user intention more, and also guarantees diversity of content in the search presentation result.
The scheme of the present disclosure can be used in the disease field, under which the following possible information type combinations are specifically possible:
one possible scenario is: the information type combination comprises a disease card module and a first answer module;
step S103 of displaying a search display result, which may include:
displaying basic attribute information of a target entity in a page area corresponding to the disease card module;
and displaying the diagnosis information for the search statement in a page area corresponding to the first answer module.
In the embodiment of the disclosure, the page area corresponding to the disease card module and the page area corresponding to the first answer module are different areas on the terminal display interface.
The basic attribute information of the target entity may be a disease name, a disease development history, a propagation route, and the like.
The diagnosis information is an answer aiming at the search statement, the diagnosis information can be an expert answer, specifically, the diagnosis information can be on-line diagnosis information or off-line diagnosis information, for example, the off-line stored diagnosis information or the diagnosis information generated by the on-line expert for real-time answering the search statement, and the diagnosis information supports formats such as video, image-text or audio content; it should be noted that the offline stored diagnostic information can be continuously updated or refined.
In the present embodiment, one possible case of diagnostic information is: if the search term indicates "symptom of xxx disease", the diagnosis information indicates the disease content corresponding to the symptom of the disease.
As shown in fig. 2, in a possible scenario of the present disclosure, the search statement is "symptom of xxx disease", and the terminal display interface may display basic attribute information of the disease and also may display expert answers to the symptom of the disease.
A possible case two: the information type combination comprises a first answer module and an associated information recommendation module;
step S103 of displaying a search display result, which may include:
displaying diagnosis information aiming at the search statement in a page area corresponding to the first answer module;
displaying recommendation information in a page area corresponding to the associated information recommendation module; the presentation form of the recommendation information is determined by the attribute characteristics of the recommendation information.
In this embodiment, the page area corresponding to the first answer module and the page area corresponding to the associated information recommendation module are different areas of the terminal display interface.
The definition of the diagnostic information can refer to the related discussion of the above embodiments, and details thereof are not repeated herein. In this case, one possible scenario is, in contrast: the diagnosis information is a medication suggestion of a certain symptom, for example, if the search statement is "what medicine is taken by xxx symptom", the diagnosis information is a medication suggestion aiming at the search statement; another possible scenario is: the diagnostic information is a diet recommendation for a symptom, for example, if the search statement is "what food the xxx symptom eats", the diagnostic information is a diet recommendation for the search statement.
The recommendation information refers to content information which is subjected to related expansion or associated recommendation based on the search statement, and the display form of the recommendation information is determined by the attribute characteristics of the recommendation information and can be displayed in at least one form of pictures, characters, dynamic images and videos.
Therefore, the relevance recommendation can be carried out based on the search statement, the user intention can be reasonably guessed, the relevant content recommendation can be carried out on the user, and the richer content meeting the user intention can be displayed for the user.
Possible cases three: the information type combination comprises a second answer module and an associated information recommendation module;
step S103 of displaying a search display result, which may include:
displaying the first answer information and the second answer information in a page area corresponding to the second answer module; the first answer information is a simple answer to the search sentence; the second answer information is a detailed answer to the search sentence;
displaying recommendation information in a page area corresponding to the associated information recommendation module; the presentation form of the recommendation information is determined by the attribute characteristics of the recommendation information.
In this embodiment, the page area corresponding to the first answer module and the page area corresponding to the associated information recommendation module are different areas of the terminal display interface.
The first answer information is a simple answer to the search sentence, and may be a positive answer or a negative answer to the search sentence. For example, the search sentence is "can diabetes eat watermelon? ", the first answer information may be" can "or" cannot "etc. answer.
The second answer information is a detailed answer for the search sentence, the text length of which exceeds a preset text length. After the first answer information is subjected to simple answers such as 'can' or 'cannot' for the search sentence, the second answer information is expanded and explained for 'the diabetes can take the watermelon' or 'the diabetes cannot take the watermelon' based on the first answer information.
In this embodiment, the definition of the recommendation information may refer to the related discussion of the above embodiments, and details are not repeated here.
Optionally, the associated information recommending module includes at least one of an associated disease recommending module and an associated diet recommending module;
displaying recommendation information in a page area corresponding to the associated information recommendation module, wherein the method comprises the following steps:
if the associated information recommendation module comprises an associated disease recommendation module, displaying the associated disease name in a page area corresponding to the associated disease recommendation module;
if the associated information recommending module comprises an associated diet recommending module, displaying diet information in a page area corresponding to the associated diet recommending module, wherein the diet information comprises recommended food information or medicine information.
In this embodiment, if the search statement includes a disease symptom, a disease corresponding to the disease symptom can be searched for, the disease corresponding to the disease symptom is taken as a related disease, and the name of the related disease is displayed in a page area corresponding to the related disease recommending module. For example "what causes abdominal cramps" the associated disease may be a disease that is consistent with symptoms of abdominal cramps, such as food poisoning, firmness, etc.
In this embodiment, the recommendation of the related diet may also be performed for the search statement, so as to display diet information in a page area corresponding to the related diet recommendation module, where the diet information may actually be food information or medicine information. For example, if any item of "medicine to eat", "fruit to eat", "medicine name", and "food name" is included in the search sentence, a corresponding food recommendation or medicine recommendation may be made.
As shown in fig. 3, another possible scenario of the present disclosure is that a search statement is "baby can not eat banana", a terminal display interface can display a simple answer "can eat", and at the same time, a detailed answer to "baby can eat banana" is displayed for the search statement, and at the same time, related food recommendation can be performed to recommend food that baby can eat.
Fig. 4 shows another possible scenario of the present disclosure, where the search statement is "what medicine is taken by xxx symptom", and the expert answers of the search statement can be displayed on the terminal display interface, and meanwhile, relevant disease recommendations are made for the symptom, so as to recommend a disease that meets the symptom, and simultaneously, relevant medicine recommendations are made, so as to recommend a medicine for treating the symptom. Meanwhile, the user can skip to show the detailed information of the disease by selecting any disease name.
Referring to fig. 5, the association information recommending module includes: the first answer module, the associated disease recommending module and the related diet recommending module.
The disease card may present expert answers while presenting associated diseases: the disease name 1 and the disease name 2, the user can skip to show the detailed information of the disease by selecting any disease name, for example, clicking the disease name 2 in fig. 5, and can skip to the detailed page of the disease name 2, and simultaneously show the food information or the medicine information corresponding to the related content recommendation, for example, the food picture 1 and the food picture 2.
Optionally, displaying the diet information in a page area corresponding to the relevant diet recommending module includes:
determining a plurality of diet information to be displayed, wherein each diet information has a corresponding label;
when the sliding operation is detected, determining a target label corresponding to the sliding operation from the plurality of labels;
and displaying the diet information corresponding to the target label in a page area corresponding to the associated information recommending module.
The terminal device can recall a plurality of pieces of diet information to be presented based on one search statement, each piece of diet information has a corresponding label, and the label can be the number of the diet information or the name corresponding to the diet information, such as a food name or a medicine name.
The terminal device can display the initial diet information in the page area corresponding to the recommending module, and when the sliding operation of the user in the page area of the recommending module is detected, the target tag corresponding to the sliding operation can be determined from the tags, so that after the terminal device determines the diet information corresponding to the target tag, the diet information corresponding to the target tag is used for replacing the initial diet information and displaying the diet information in the page area corresponding to the recommending module.
Fig. 6 is another possible scenario of the present disclosure, where the search statement is: "is there is the useful doing of having to soak xxx medicine on the mouth", can show simple answer on the terminal show interface: the effect is not great, and the detailed answer can also show the food recommendation simultaneously, and the food recommendation of initial show is: the user can slide the food pictures 1, 2 and 3, and the user can slide the food pictures to the right in the figure, and actually can slide to the left, and the recommendation of the food after sliding becomes: food pictures 3, 4 and 5. In addition, the user can jump to show the detailed introduction of the food corresponding to a certain food picture by clicking the food picture.
The specific scene of the medicine recommendation is similar to the scene of the food recommendation in fig. 6, when the medicine recommendation is performed, at least one of the medicine name and the medicine picture can be displayed, and the medicine detail page can be skipped when the medicine name or the medicine picture is clicked.
Therefore, the user can replace the recommended diet information in a sliding mode, and the diversity of the diet information is guaranteed.
Meanwhile, the disease card can also display corresponding controls such as modules (summary, symptoms, treatment, etiology and daily care) of the disease, and a user can select to view corresponding disease information through the controls.
In an actual scenario of the embodiment of the present disclosure, the following possible sentence structures may be included:
case a: the name of the disease; or the name of the disease + the intended words of symptom or cause or mode of treatment or prevention or correlation or care or medical approach;
case b: disease name + care regimen; or intention words such as disease name + diet suggestion or medication suggestion;
case c: whether the structure + food name or drug name or food type or drug type can be eaten; or food name or drug name or food type or drug type + intent word valid;
case d: whether structure + symptom description + disease name;
case e: intention words such as symptom description + diet suggestion or medication suggestion;
case f: whether the structure can be eaten + symptom description + food name or medicine name or food type or medicine type; or symptom description + food name or drug name or food type or drug type + intent word to be valid
Case g: symptom information.
In the following, referring to table 1, description is made on sentence structures and corresponding information type combinations of several search sentences related to the present disclosure, where any search sentence may analyze sentence structures of the query, examples of the query, and information type combinations, and by performing collection and qualitative analysis on the medical query, several more typical queries may be obtained, and the sentence structures of the queries are disassembled, and the obtained query and information type combination mapping relationship is shown in table 1 below:
TABLE 1
Figure BDA0002924962140000101
Figure BDA0002924962140000111
Figure BDA0002924962140000121
Referring to fig. 7, the present disclosure further provides an information query method, where the method may be executed by a server, where the server may be an entity server or a virtual server, and the method may include:
step S701, receiving a search statement aiming at a target entity;
step S702, determining a sentence structure of a search sentence, and extracting at least one keyword from the search sentence;
after receiving the search sentence sent by the terminal equipment, the server can determine the sentence structure of the search sentence, and meanwhile, extracts at least one keyword matched with the keyword in the keyword library from the search sentence based on the keyword library.
Step S703, determining at least one information type combination of the target entity corresponding to the statement structure based on a preset database; the database stores a plurality of statement structures, and each statement structure corresponds to at least one information type combination of a target entity;
step S704, acquiring aggregation content corresponding to the search statement based on at least one keyword and the determined information type combination;
the server can recall a large range of entity information about the target entity aiming at the search statement based on the keyword, and the server can perform screening and aggregation based on the large range of entity information to obtain aggregated content corresponding to the information type combination based on the information type combination.
Step S705, sending a piece of search presentation result including the aggregated content to the terminal device.
The scheme of this embodiment is substantially the same as the scheme of the embodiment shown in fig. 1, and the specific implementation manner and the beneficial effects thereof may refer to the description related to the embodiment shown in fig. 1, and are not repeated herein.
Optionally, in step S704, obtaining the aggregated content corresponding to the search statement based on the at least one keyword and the determined information type combination may include:
determining entity information corresponding to the at least one keyword based on the at least one keyword, wherein the entity information comprises entity information of various information types;
determining at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types based on the information type combination;
and aggregating at least two pieces of target entity information to obtain aggregated content corresponding to the search statement.
In this embodiment, the server may recall entity information of multiple information types corresponding to at least one keyword based on the at least one keyword, and based on the information type combination, the server may screen, from the entity information of the multiple information types, target entity information corresponding to at least two information types in the information type combination, where the number of the target entity information corresponding to each information type in the information type combination may be multiple, and aggregate content corresponding to each information type may be obtained by aggregating the multiple entity information, so as to obtain aggregate content corresponding to each information type in the information type combination.
The present embodiment involves two possible scenarios:
case 1: the keyword is a disease name; the disease names can recall the disease contents of various information types, then the disease contents corresponding to all the information types in the information type combination are screened out based on the information type combination, and the disease contents corresponding to all the information types are aggregated to obtain the aggregated contents corresponding to all the information types. For example, if the keyword is "diabetes", the basic attribute information of diabetes, the diagnosis information of diabetes, the related diseases of diabetes, the food recommendation and the drug recommendation of diabetes, etc. may be recalled, and if the information type combination corresponding to the keyword includes the disease card module and the first answer module, the basic attribute information of diabetes and the diagnosis information of diabetes may be screened out from the information type combination.
Case 2: keywords are disease names and disease symptoms, but since the connection words between the keywords are different, the sentence structures are different, and thus the information type combinations are different, and the aggregated contents of recalled diseases are also different. For example: and (3) searching sentences: i do not have diabetes, how do I's belly is painful, the keyword is diabetes and belly is painful, the sentence structure is: disease name + symptom description + how; and (3) searching sentences: my belly is painful, is whether diabetes, and the keyword is diabetes and belly is painful, and the sentence structure is: symptom description + is not + disease name, and it can be seen that the keywords of the two search sentences are the same, but the sentence structures are different, the information type combinations are also different, and the aggregated content of the finally recalled diseases is different.
Optionally, based on the information type combination, determining at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types, including:
determining at least two pieces of initial entity information corresponding to the information type combination from the entity information of the multiple information types based on the information type combination;
and if the at least two pieces of initial entity information contain repeated information, determining at least two pieces of target entity information which do not contain repeated information and correspond to the information type combination based on the initial entity information.
In this embodiment, the at least two pieces of initial entity information may include repeated information: the at least two pieces of initial entity information are completely or partially repeated, and when the server determines that the at least two pieces of initial entity information contain repeated information, the server can redetermine at least two pieces of target entity information which correspond to the information type combination and do not contain repeated information.
Optionally, based on the information type combination, determining at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types, which may include:
determining parameter information of entity information of each information type in entity information of multiple information types; the parameter information comprises the correlation between the entity information and the search statement and the browsing probability of the entity information;
and determining at least two pieces of target entity information from the entity information of the multiple information types based on the parameter information and the information type combination.
In this embodiment, entity information of multiple information types may be recalled based on a keyword of a search statement, where the entity information of multiple information types includes multiple pieces of entity information, and the server may determine parameter information of each piece of entity information, where the parameter information may be a correlation between the entity information and the search statement and a browsing probability that the piece of entity information is browsed by a user.
The correlation can be represented by the similarity between the entity information and the search statement, and the similarity between the entity information and the search statement can be calculated by a cosine similarity algorithm; the browsing probability of the entity information may be calculated based on historical browsing data of the entity information, for example, the more times a certain entity information history is browsed, the greater the browsing probability of the entity information.
The server can screen out at least two pieces of target entity information which is matched with the information type combination, has the correlation larger than a correlation threshold value and has the browsing probability larger than a browsing probability threshold value from the entity information of the information types based on the parameter information and the information type combination.
Optionally, before determining, based on the preset database, the information type combination of at least one target entity corresponding to the statement structure in step S703, the method further includes:
obtaining historical search data aiming at a target entity, wherein the historical search data comprises a plurality of search statement samples and search interaction data corresponding to the search statement samples;
determining a sentence structure of a search sentence sample aiming at each search sentence sample;
determining an information type combination corresponding to the search statement sample based on search interaction data corresponding to the search statement sample;
and generating a mapping relation between the statement structure and the information type combination in the database based on the statement structure of the search statement sample and the information type combination corresponding to the search statement sample.
In this embodiment, the server may obtain historical search data for a certain disease, where the historical search data includes a plurality of search term samples for the disease, the historical search data also includes search interaction data corresponding to each search term sample, and the search interaction data may be a search result of the search term samples, that is, a result obtained by directly searching the search term, or may be a search interaction data generated by interactively searching the search term samples, that is, when a result obtained by directly searching the search term does not meet a user requirement, a search result obtained by further searching, which will be specifically described in an embodiment below.
If the search interaction data is a search result of the search statement sample, the server can determine an information type combination of the search result based on the search result, and the determined information type combination is used as an information type combination corresponding to the search statement sample; and if the search interactive data is the search interactive data generated by interactive search, the server takes the information type combination of the search interactive data as the information type combination corresponding to the search statement sample.
The server can generate a mapping relation between the sentence structure and the information type combination in the database based on the sentence result of each search sentence sample and the information type combination corresponding to each search sentence sample.
Optionally, the interactive search data is data generated by searching a search result of the search statement sample as a new search statement; determining an information type combination corresponding to the search statement sample based on search interaction data corresponding to the search statement sample, wherein the information type combination comprises:
determining the information types to which at least one piece of search interaction data respectively belongs;
based on at least one information type, an information type combination is obtained.
The search interaction data generated by the interactive search for the search sentence sample as described above includes two possible cases:
possible case 1: after the search statement sample A is input, a search result of the search statement sample A cannot meet the intention of a user, supplementary retrieval is needed, the user inputs a search statement B to obtain a search result, and the search result of the search statement B is search interactive data of the search statement sample A;
possible case 2: the search interaction data is data generated by searching a search result of the search sentence sample as a new search sentence. For example, a search result may be obtained for the search term sample, the search result does not satisfy the user intention, but the search result includes a new search term, the user may select the new search term to search to obtain the search result, and the search result corresponding to the new search term is the search interaction data.
For the above two cases, the determining, based on the search interaction data corresponding to the search statement sample, an information type combination corresponding to the search statement sample may include:
the number of the search interaction data corresponding to each search statement is at least one, the server can determine the information type to which each search interaction data in the at least one search interaction data belongs respectively, so as to determine at least one information type, and the at least one information type can form an information type combination.
Optionally, generating a mapping relationship between the statement structure and the information type combination in the database based on the statement structure of the search statement sample and the information type combination corresponding to the search statement sample, where the mapping relationship includes:
determining a plurality of information type combinations corresponding to each sentence structure based on the sentence structure of the search sentence sample and the information type combination corresponding to the search sentence sample;
determining a target information type combination from the plurality of information type combinations based on the occupation ratio of each information type combination in the plurality of information type combinations;
and generating a mapping relation of the statement structure and the target information type combination in the database.
In this embodiment, when a mapping relationship between a statement structure and an information type combination is constructed, a plurality of search statement samples having the same statement structure may have the same or different recalled information type combinations, and may correspond to a plurality of information type combinations under the same statement structure, and a server may determine the plurality of information type combinations corresponding to each statement structure, thereby determining an information type combination having a largest proportion or a target information type combination having a proportion larger than a ratio threshold based on a proportion of each information type combination in the plurality of information type combinations, and using the target information type combination as the information type combination corresponding to the statement result to form the mapping relationship between the statement structure and the information type combination.
It can be seen that the disease information query method of the present disclosure is implemented by interaction between a server and a terminal device, and the present disclosure is described below from the perspective of interaction between two devices with reference to fig. 8.
Step S801: the terminal equipment sends a search sentence related to the target entity to the server;
step S802: the server determines a sentence structure of a search sentence and extracts at least one keyword from the search sentence;
step S803: the server determines at least one information type combination of the target entity corresponding to the statement structure based on a preset database; the database stores a plurality of statement structures, and each statement structure corresponds to at least one information type combination of a target entity;
step S804: the server acquires the aggregation content corresponding to the search statement based on at least one keyword and the determined information type combination;
step S805: and the server sends a search display result containing the aggregated content to the terminal equipment.
The solution of this embodiment is substantially the same as the solution of fig. 1 or fig. 2, and the specific implementation manner thereof may refer to the related discussion of fig. 1 and fig. 2, and detailed description thereof is omitted here.
In summary, the embodiments of the present disclosure have the following advantages:
1. the method and the device can determine the query characteristics under different search statement structures, provide basis for query classification, and the recalled search display result comprises the aggregation content corresponding to various information types, so that the returned search display result meets the user intention, and the efficiency of the server for returning the aggregation content is improved.
2. The method and the device can prejudge and abduct the content which the user possibly wants to know, and can return the aggregated content corresponding to the associated information recommending module to the user.
3. According to the method and the device, different types of aggregated content are combined and displayed on one disease card, a brand-new display form is obtained, repeated disease information in the disease information can be removed, the display form of search results under medical query is enriched, and the use experience of a user is improved.
The present disclosure also provides an information query apparatus, please refer to fig. 9, the apparatus may include:
a first receiving module 901, configured to receive a search statement, where the search statement is related to a target entity;
a first obtaining module 902, configured to obtain a search presentation result corresponding to a search statement; the search display result comprises at least one aggregation content corresponding to the information type combination of the target entity, and the information type combination of the target entity corresponds to the sentence structure of the search sentence;
and the display module 903 is used for displaying the search display result.
Optionally, the information type combination includes a disease card module and a first answer module;
the display module 903 is specifically configured to:
displaying basic attribute information of a target entity in a page area corresponding to the disease card module;
and displaying the diagnosis information for the search statement in a page area corresponding to the first answer module.
Optionally, the information type combination includes a first answer module and an associated information recommendation module;
the display module 903 is specifically configured to:
displaying diagnosis information aiming at the search statement in a page area corresponding to the first answer module;
displaying recommendation information in a page area corresponding to the associated information recommendation module; the presentation form of the recommendation information is determined by the attribute characteristics of the recommendation information.
Optionally, the information type combination includes a second answer module and an associated information recommendation module;
the display module 903 is specifically configured to:
displaying the first answer information and the second answer information in a page area corresponding to the second answer module; the first answer information is a simple answer to the search sentence; the second answer information is a detailed answer to the search sentence;
displaying recommendation information in a page area corresponding to the associated information recommendation module; the presentation form of the recommendation information is determined by the attribute characteristics of the recommendation information.
Optionally, the associated information recommending module includes at least one of an associated disease recommending module and an associated diet recommending module;
when the display module 903 displays the recommendation information in the page area corresponding to the association information recommendation module, the display module is specifically configured to:
if the associated information recommendation module comprises an associated disease recommendation module, displaying the associated disease name in a page area corresponding to the associated disease recommendation module;
if the associated information recommending module comprises an associated diet recommending module, displaying diet information in a page area corresponding to the associated diet recommending module, wherein the diet information comprises recommended food information or medicine information.
Optionally, when the display module 903 displays the diet information in the page area corresponding to the relevant diet recommending module, the display module is specifically configured to:
determining a plurality of diet information to be displayed, wherein each diet information has a corresponding label;
when the sliding operation is detected, determining a target label corresponding to the sliding operation from the plurality of labels;
and displaying the diet information corresponding to the target label in a page area corresponding to the associated information recommending module.
The present disclosure also provides an information query apparatus, please refer to fig. 10, the apparatus may include:
a second receiving module 1001, configured to receive a search statement for a target entity;
a first determining module 1002, configured to determine a sentence structure of a search sentence, and extract at least one keyword from the search sentence;
a second determining module 1003, configured to determine, based on a preset database, an information type combination of at least one target entity corresponding to the statement structure; the database stores a plurality of statement structures, and each statement structure corresponds to at least one information type combination of a target entity;
a second obtaining module 1004, configured to obtain, based on the at least one keyword and the determined information type combination, aggregated content corresponding to the search statement;
a sending module 1005, configured to send a piece of search presentation result including the aggregated content to the terminal device.
Optionally, the second obtaining module 1004 is specifically configured to:
determining entity information corresponding to the at least one keyword based on the at least one keyword, wherein the entity information comprises entity information of various information types;
determining at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types based on the information type combination;
and aggregating at least two pieces of target entity information to obtain aggregated content corresponding to the search statement.
Optionally, when determining, based on the information type combination, at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types, the second obtaining module 1004 is specifically configured to:
determining at least two pieces of initial entity information corresponding to the information type combination from the entity information of the multiple information types based on the information type combination;
and if the at least two pieces of initial entity information contain repeated information, determining at least two pieces of target entity information which do not contain repeated information and correspond to the information type combination based on the initial entity information.
Optionally, when determining, based on the information type combination, at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types, the second obtaining module 1004 is specifically configured to:
determining parameter information of entity information of each information type in entity information of multiple information types; the parameter information comprises the correlation between the entity information and the search statement and the browsing probability of the entity information;
and determining at least two pieces of target entity information from the entity information of the multiple information types based on the parameter information and the information type combination.
Optionally, the apparatus further includes a third obtaining module, a third determining module, a fourth determining module, and a mapping relationship generating module;
the second determining module 1003 is used for determining at least one information type combination of the target entity corresponding to the statement structure based on a preset database;
the third acquisition module is used for acquiring historical search data aiming at the target entity, wherein the historical search data comprises a plurality of search statement samples and search interaction data corresponding to the search statement samples;
the third determining module is used for determining the sentence structure of the search sentence sample aiming at each search sentence sample;
the fourth determining module is used for determining the information type combination corresponding to the search statement sample based on the search interaction data corresponding to the search statement sample;
and the mapping relation generation module is used for generating the mapping relation between the statement structure and the information type combination in the database based on the statement structure of the search statement sample and the information type combination corresponding to the search statement sample.
Optionally, the interactive search data is data generated by searching a search result of the search statement sample as a new search statement; a fourth determining module, specifically configured to:
determining the information types to which at least one piece of search interaction data respectively belongs;
based on at least one information type, an information type combination is obtained.
Optionally, the mapping relationship generating module is specifically configured to:
determining a plurality of information type combinations corresponding to each sentence structure based on the sentence structure of the search sentence sample and the information type combination corresponding to the search sentence sample;
determining a target information type combination from the plurality of information type combinations based on the occupation ratio of each information type combination in the plurality of information type combinations;
and generating a mapping relation of the statement structure and the target information type combination in the database.
Referring now to fig. 11, a schematic diagram of an electronic device (e.g., the terminal device of fig. 1 or the server of fig. 7) 600 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 11 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device includes: a memory and a processor, wherein the processor may be referred to as the processing device 601 hereinafter, and the memory may include at least one of a Read Only Memory (ROM)602, a Random Access Memory (RAM)603 and a storage device 608 hereinafter, which are specifically shown as follows:
as shown in fig. 11, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 11 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present disclosure, 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 contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a search statement, wherein the search statement is related to a target entity; acquiring a search display result corresponding to the search statement; the search display result comprises at least one aggregation content corresponding to the information type combination of the target entity, and the information type combination of the target entity corresponds to the sentence structure of the search sentence; and displaying the search display result.
Or the computer readable medium carrying one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a search statement for a target entity; determining a sentence structure of a search sentence, and extracting at least one keyword from the search sentence; determining at least one information type combination of a target entity corresponding to the statement structure based on a preset database; the database stores a plurality of statement structures, and each statement structure corresponds to at least one information type combination of a target entity; acquiring aggregation content corresponding to the search statement based on at least one keyword and the determined information type combination; and sending a piece of search presentation result comprising the aggregated content to the terminal equipment.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart 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 disclosure. 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 modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a module or unit does not in some cases constitute a limitation of the unit itself, for example, the first receiving module may also be described as a "module receiving a search statement".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
According to one or more embodiments of the present disclosure, there is provided an information query method including:
receiving a search statement, wherein the search statement is related to a target entity;
acquiring a search display result corresponding to the search statement; the search display result comprises at least one aggregation content corresponding to the information type combination of the target entity, and the information type combination of the target entity corresponds to the sentence structure of the search sentence;
and displaying the search display result.
Optionally, the information type combination includes a disease card module and a first answer module;
displaying the search display result, comprising:
displaying basic attribute information of a target entity in a page area corresponding to the disease card module;
and displaying the diagnosis information for the search statement in a page area corresponding to the first answer module.
Optionally, the information type combination includes a first answer module and an associated information recommendation module;
displaying the search display result, comprising:
displaying diagnosis information aiming at the search statement in a page area corresponding to the first answer module;
displaying recommendation information in a page area corresponding to the associated information recommendation module; the presentation form of the recommendation information is determined by the attribute characteristics of the recommendation information.
Optionally, the information type combination includes a second answer module and an associated information recommendation module;
displaying the search display result, comprising:
displaying the first answer information and the second answer information in a page area corresponding to the second answer module; the first answer information is a simple answer to the search sentence; the second answer information is a detailed answer to the search sentence;
displaying recommendation information in a page area corresponding to the associated information recommendation module; the presentation form of the recommendation information is determined by the attribute characteristics of the recommendation information.
Optionally, the associated information recommending module includes at least one of an associated disease recommending module and an associated diet recommending module;
displaying recommendation information in a page area corresponding to the associated information recommendation module, wherein the method comprises the following steps:
if the associated information recommendation module comprises an associated disease recommendation module, displaying the associated disease name in a page area corresponding to the associated disease recommendation module;
if the associated information recommending module comprises an associated diet recommending module, displaying diet information in a page area corresponding to the associated diet recommending module, wherein the diet information comprises recommended food information or medicine information.
Optionally, displaying the diet information in a page area corresponding to the relevant diet recommending module includes:
determining a plurality of diet information to be displayed, wherein each diet information has a corresponding label;
when the sliding operation is detected, determining a target label corresponding to the sliding operation from the plurality of labels;
and displaying the diet information corresponding to the target label in a page area corresponding to the associated information recommending module.
One or more embodiments of the present disclosure also provide an information query method, which may include:
receiving a search statement for a target entity;
determining a sentence structure of a search sentence, and extracting at least one keyword from the search sentence;
determining at least one information type combination of a target entity corresponding to the statement structure based on a preset database; the database stores a plurality of statement structures, and each statement structure corresponds to at least one information type combination of a target entity;
acquiring aggregation content corresponding to the search statement based on at least one keyword and the determined information type combination;
and sending a piece of search presentation result comprising the aggregated content to the terminal equipment.
Optionally, obtaining the aggregated content corresponding to the search statement based on the at least one keyword and the determined information type combination includes:
determining entity information corresponding to the at least one keyword based on the at least one keyword, wherein the entity information comprises entity information of various information types;
determining at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types based on the information type combination;
and aggregating at least two pieces of target entity information to obtain aggregated content corresponding to the search statement.
Optionally, based on the information type combination, determining at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types, including:
determining at least two pieces of initial entity information corresponding to the information type combination from the entity information of the multiple information types based on the information type combination;
and if the at least two pieces of initial entity information contain repeated information, determining at least two pieces of target entity information which do not contain repeated information and correspond to the information type combination based on the initial entity information.
Optionally, based on the information type combination, determining at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types, including:
determining parameter information of entity information of each information type in entity information of multiple information types; the parameter information comprises the correlation between the entity information and the search statement and the browsing probability of the entity information;
and determining at least two pieces of target entity information from the entity information of the multiple information types based on the parameter information and the information type combination.
Optionally, before determining, based on a preset database, an information type combination of at least one target entity corresponding to the statement structure, the method further includes:
obtaining historical search data aiming at a target entity, wherein the historical search data comprises a plurality of search statement samples and search interaction data corresponding to the search statement samples;
determining a sentence structure of a search sentence sample aiming at each search sentence sample;
determining an information type combination corresponding to the search statement sample based on search interaction data corresponding to the search statement sample;
and generating a mapping relation between the statement structure and the information type combination in the database based on the statement structure of the search statement sample and the information type combination corresponding to the search statement sample.
Optionally, the interactive search data is data generated by searching a search result of the search statement sample as a new search statement; determining an information type combination corresponding to the search statement sample based on search interaction data corresponding to the search statement sample, wherein the information type combination comprises:
determining the information types to which at least one piece of search interaction data respectively belongs;
based on at least one information type, an information type combination is obtained.
Optionally, generating a mapping relationship between the statement structure and the information type combination in the database based on the statement structure of the search statement sample and the information type combination corresponding to the search statement sample, where the mapping relationship includes:
determining a plurality of information type combinations corresponding to each sentence structure based on the sentence structure of the search sentence sample and the information type combination corresponding to the search sentence sample;
determining a target information type combination from the plurality of information type combinations based on the occupation ratio of each information type combination in the plurality of information type combinations;
and generating a mapping relation of the statement structure and the target information type combination in the database.
One or more embodiments of the present disclosure also provide an information query apparatus, which may include:
a first receiving module, configured to receive a search statement, where the search statement is related to a target entity;
the first acquisition module is used for acquiring a search display result corresponding to the search statement; the search display result comprises at least one aggregation content corresponding to the information type combination of the target entity, and the information type combination of the target entity corresponds to the sentence structure of the search sentence;
and the display module is used for displaying the search display result.
Optionally, the information type combination includes a disease card module and a first answer module;
the display module is specifically used for:
displaying basic attribute information of a target entity in a page area corresponding to the disease card module;
and displaying the diagnosis information for the search statement in a page area corresponding to the first answer module.
Optionally, the information type combination includes a first answer module and an associated information recommendation module;
the display module is specifically used for:
displaying diagnosis information aiming at the search statement in a page area corresponding to the first answer module;
displaying recommendation information in a page area corresponding to the associated information recommendation module; the presentation form of the recommendation information is determined by the attribute characteristics of the recommendation information.
Optionally, the information type combination includes a second answer module and an associated information recommendation module;
the display module is specifically used for:
displaying the first answer information and the second answer information in a page area corresponding to the second answer module; the first answer information is a simple answer to the search sentence; the second answer information is a detailed answer to the search sentence;
displaying recommendation information in a page area corresponding to the associated information recommendation module; the presentation form of the recommendation information is determined by the attribute characteristics of the recommendation information.
Optionally, the associated information recommending module includes at least one of an associated disease recommending module and an associated diet recommending module;
when the display module displays the recommendation information in the page area corresponding to the association information recommendation module, the display module is specifically configured to:
if the associated information recommendation module comprises an associated disease recommendation module, displaying the associated disease name in a page area corresponding to the associated disease recommendation module;
if the associated information recommending module comprises an associated diet recommending module, displaying diet information in a page area corresponding to the associated diet recommending module, wherein the diet information comprises recommended food information or medicine information.
Optionally, when the display module displays the diet information in the page area corresponding to the relevant diet recommending module, the display module is specifically configured to:
determining a plurality of diet information to be displayed, wherein each diet information has a corresponding label;
when the sliding operation is detected, determining a target label corresponding to the sliding operation from the plurality of labels;
and displaying the diet information corresponding to the target label in a page area corresponding to the associated information recommending module.
One or more embodiments of the present disclosure also provide an information query apparatus, which may include:
a second receiving module, configured to receive a search statement for a target entity;
the first determining module is used for determining a sentence structure of a search sentence and extracting at least one keyword from the search sentence;
the second determining module is used for determining at least one information type combination of the target entity corresponding to the statement structure based on a preset database; the database stores a plurality of statement structures, and each statement structure corresponds to at least one information type combination of a target entity;
the second acquisition module is used for acquiring the aggregation content corresponding to the search statement based on at least one keyword and the determined information type combination;
and the sending module is used for sending a piece of search display result comprising the aggregated content to the terminal equipment.
Optionally, the second obtaining module is specifically configured to:
determining entity information corresponding to the at least one keyword based on the at least one keyword, wherein the entity information comprises entity information of various information types;
determining at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types based on the information type combination;
and aggregating at least two pieces of target entity information to obtain aggregated content corresponding to the search statement.
Optionally, when determining, based on the information type combination, at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types, the second obtaining module is specifically configured to:
determining at least two pieces of initial entity information corresponding to the information type combination from the entity information of the multiple information types based on the information type combination;
and if the at least two pieces of initial entity information contain repeated information, determining at least two pieces of target entity information which do not contain repeated information and correspond to the information type combination based on the initial entity information.
Optionally, when determining, based on the information type combination, at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types, the second obtaining module is specifically configured to:
determining parameter information of entity information of each information type in entity information of multiple information types; the parameter information comprises the correlation between the entity information and the search statement and the browsing probability of the entity information;
and determining at least two pieces of target entity information from the entity information of the multiple information types based on the parameter information and the information type combination.
Optionally, the apparatus further includes a third obtaining module, a third determining module, a fourth determining module, and a mapping relationship generating module;
the second determining module is used for determining at least one information type combination of the target entity corresponding to the statement structure based on a preset database;
the third acquisition module is used for acquiring historical search data aiming at the target entity, wherein the historical search data comprises a plurality of search statement samples and search interaction data corresponding to the search statement samples;
the third determining module is used for determining the sentence structure of the search sentence sample aiming at each search sentence sample;
the fourth determining module is used for determining the information type combination corresponding to the search statement sample based on the search interaction data corresponding to the search statement sample;
and the mapping relation generation module is used for generating the mapping relation between the statement structure and the information type combination in the database based on the statement structure of the search statement sample and the information type combination corresponding to the search statement sample.
Optionally, the interactive search data is data generated by searching a search result of the search statement sample as a new search statement; a fourth determining module, specifically configured to:
determining the information types to which at least one piece of search interaction data respectively belongs;
based on at least one information type, an information type combination is obtained.
Optionally, the mapping relationship generating module is specifically configured to:
determining a plurality of information type combinations corresponding to each sentence structure based on the sentence structure of the search sentence sample and the information type combination corresponding to the search sentence sample;
determining a target information type combination from the plurality of information type combinations based on the occupation ratio of each information type combination in the plurality of information type combinations;
and generating a mapping relation of the statement structure and the target information type combination in the database.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (17)

1. An information query method, comprising:
receiving a search statement, wherein the search statement is related to a target entity;
acquiring a search display result corresponding to the search statement; the search display result comprises at least one aggregation content corresponding to the information type combination of the target entity, and the information type combination of the target entity corresponds to the sentence structure of the search sentence;
and displaying the search display result.
2. The method of claim 1, wherein the combination of information types includes a disease card module and a first answer module;
the displaying the search display result comprises:
displaying the basic attribute information of the target entity in a page area corresponding to the disease card module;
and displaying the diagnosis information aiming at the search statement in a page area corresponding to the first answer module.
3. The method of claim 1, wherein the information type combination comprises a first answer module and a related information recommendation module;
the displaying the search display result comprises:
displaying diagnosis information aiming at the search statement in a page area corresponding to the first answer module;
displaying recommendation information in a page area corresponding to the associated information recommendation module; the display form of the recommendation information is determined by the attribute characteristics of the recommendation information.
4. The method of claim 1, wherein the information type combination comprises a second answer module and an associated information recommendation module;
the displaying the search display result comprises:
displaying first answer information and second answer information in a page area corresponding to the second answer module; the first answer information is a simple answer to the search sentence; the second answer information is a detailed answer to the search sentence;
displaying recommendation information in a page area corresponding to the associated information recommendation module; the display form of the recommendation information is determined by the attribute characteristics of the recommendation information.
5. The method of claim 3 or 4, wherein the associated information recommendation module comprises at least one of an associated disease recommendation module and an associated diet recommendation module;
the displaying recommendation information in the page area corresponding to the associated information recommendation module includes:
if the associated information recommending module comprises the associated disease recommending module, displaying an associated disease name in a page area corresponding to the associated disease recommending module;
if the associated information recommending module comprises the associated diet recommending module, displaying diet information in a page area corresponding to the associated diet recommending module, wherein the diet information comprises recommended food information or medicine information.
6. The method of claim 5, wherein the displaying the diet information in the page area corresponding to the relevant diet recommending module comprises:
determining a plurality of diet information to be displayed, wherein each diet information has a corresponding label;
when the sliding operation is detected, determining a target label corresponding to the sliding operation from a plurality of labels;
and displaying the diet information corresponding to the target tag in a page area corresponding to the associated information recommending module.
7. An information query method, comprising:
receiving a search statement for a target entity;
determining a sentence structure of the search sentence, and extracting at least one keyword from the search sentence;
determining at least one information type combination of the target entity corresponding to the statement structure based on a preset database; the database stores a plurality of statement structures, and each statement structure corresponds to at least one information type combination of the target entity;
acquiring the aggregation content corresponding to the search statement based on the at least one keyword and the determined information type combination;
and sending a piece of search display result comprising the aggregated content to the terminal equipment.
8. The method of claim 7, wherein obtaining the aggregated content corresponding to the search sentence based on the at least one keyword and the determined information type combination comprises:
determining entity information corresponding to the at least one keyword based on the at least one keyword, wherein the entity information comprises entity information of multiple information types;
determining at least two pieces of target entity information corresponding to the information type combination from the entity information of the multiple information types based on the information type combination;
and aggregating the at least two pieces of target entity information to obtain the aggregated content corresponding to the search statement.
9. The method according to claim 8, wherein the determining at least two pieces of target entity information corresponding to the information type combination from the entity information of the plurality of information types based on the information type combination comprises:
determining at least two pieces of initial entity information corresponding to the information type combination from the entity information of the multiple information types based on the information type combination;
and if the at least two pieces of initial entity information contain repeated information, determining at least two pieces of target entity information which do not contain repeated information and correspond to the information type combination based on the initial entity information.
10. The method according to claim 8, wherein the determining at least two pieces of target entity information corresponding to the information type combination from the entity information of the plurality of information types based on the information type combination comprises:
determining parameter information of entity information of each information type in the entity information of the multiple information types; the parameter information comprises the correlation between the entity information and the search statement and the browsing probability of the entity information;
and determining the at least two pieces of target entity information from the entity information of the multiple information types based on the parameter information and the information type combination.
11. The method according to any one of claims 7 to 10, wherein before determining the information type combination of at least one of the target entities corresponding to the sentence structure based on a preset database, the method further comprises:
obtaining historical search data aiming at the target entity, wherein the historical search data comprises a plurality of search statement samples and search interaction data corresponding to the search statement samples;
determining a sentence structure of each search sentence sample;
determining an information type combination corresponding to the search statement sample based on search interaction data corresponding to the search statement sample;
and generating a mapping relation between the sentence structure and the information type combination in the database based on the sentence structure of the search sentence sample and the information type combination corresponding to the search sentence sample.
12. The method according to claim 11, wherein the search interaction data is data generated by searching a search result of the search sentence sample as a new search sentence; the determining, based on the search interaction data corresponding to the search statement sample, an information type combination corresponding to the search statement sample includes:
determining the information types to which at least one piece of search interaction data respectively belongs;
and obtaining the information type combination based on at least one information type.
13. The method of claim 11, wherein the generating a mapping relationship between the sentence structure and the information type combination in the database based on the sentence structure of the search sentence sample and the information type combination corresponding to the search sentence sample comprises:
determining a plurality of information type combinations corresponding to each sentence structure based on the sentence structure of the search sentence sample and the information type combination corresponding to the search sentence sample;
determining a target information type combination from the plurality of information type combinations based on the occupation ratio of each information type combination in the plurality of information type combinations;
and generating a mapping relation of the statement structure and the target information type combination in the database.
14. An information inquiry apparatus, comprising:
a first receiving module, configured to receive a search statement, where the search statement is related to a target entity;
the first acquisition module is used for acquiring a search display result corresponding to the search statement; the search display result comprises at least one aggregation content corresponding to the information type combination of the target entity, and the information type combination of the target entity corresponds to the sentence structure of the search sentence;
and the display module is used for displaying the search display result.
15. An information inquiry apparatus, comprising:
a second receiving module, configured to receive a search statement for a target entity;
the first determining module is used for determining a sentence structure of the search sentence and extracting at least one keyword from the search sentence;
the second determining module is used for determining at least one information type combination of the target entity corresponding to the statement structure based on a preset database; the database stores a plurality of statement structures, and each statement structure corresponds to at least one information type combination of the target entity;
a second obtaining module, configured to obtain, based on the at least one keyword and the determined information type combination, aggregated content corresponding to the search statement;
and the sending module is used for sending a piece of search display result comprising the aggregated content to the terminal equipment.
16. An electronic device, comprising:
the electronic device comprises a memory and a processor;
the memory has stored therein a computer program;
the processor, when executing the computer program, is configured to perform the method of any of claims 1-13.
17. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 13.
CN202110129395.5A 2021-01-29 2021-01-29 Information query method, device, electronic equipment and computer readable medium Active CN112948540B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110129395.5A CN112948540B (en) 2021-01-29 2021-01-29 Information query method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110129395.5A CN112948540B (en) 2021-01-29 2021-01-29 Information query method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN112948540A true CN112948540A (en) 2021-06-11
CN112948540B CN112948540B (en) 2023-09-26

Family

ID=76240093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110129395.5A Active CN112948540B (en) 2021-01-29 2021-01-29 Information query method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN112948540B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113392308A (en) * 2021-06-22 2021-09-14 北京字节跳动网络技术有限公司 Content search method, device, equipment and medium
CN113505301A (en) * 2021-07-23 2021-10-15 北京字节跳动网络技术有限公司 Information query method and related equipment thereof
CN114065057A (en) * 2021-11-29 2022-02-18 北京字节跳动网络技术有限公司 Search result determining method, display method, device, equipment and medium
CN114168725A (en) * 2021-12-08 2022-03-11 北京字节跳动网络技术有限公司 Object question and answer processing method and device, electronic equipment, medium and product
CN114780790A (en) * 2022-05-05 2022-07-22 北京字节跳动网络技术有限公司 Content search method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170293682A1 (en) * 2013-11-29 2017-10-12 Sap Se Aggregating results from named entity recognition services
CN107992554A (en) * 2017-11-28 2018-05-04 北京百度网讯科技有限公司 The searching method and device of the polymerization result of question and answer information are provided
CN111538894A (en) * 2020-06-19 2020-08-14 腾讯科技(深圳)有限公司 Query feedback method and device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170293682A1 (en) * 2013-11-29 2017-10-12 Sap Se Aggregating results from named entity recognition services
CN107992554A (en) * 2017-11-28 2018-05-04 北京百度网讯科技有限公司 The searching method and device of the polymerization result of question and answer information are provided
CN111538894A (en) * 2020-06-19 2020-08-14 腾讯科技(深圳)有限公司 Query feedback method and device, computer equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113392308A (en) * 2021-06-22 2021-09-14 北京字节跳动网络技术有限公司 Content search method, device, equipment and medium
CN113505301A (en) * 2021-07-23 2021-10-15 北京字节跳动网络技术有限公司 Information query method and related equipment thereof
CN114065057A (en) * 2021-11-29 2022-02-18 北京字节跳动网络技术有限公司 Search result determining method, display method, device, equipment and medium
CN114168725A (en) * 2021-12-08 2022-03-11 北京字节跳动网络技术有限公司 Object question and answer processing method and device, electronic equipment, medium and product
CN114780790A (en) * 2022-05-05 2022-07-22 北京字节跳动网络技术有限公司 Content search method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112948540B (en) 2023-09-26

Similar Documents

Publication Publication Date Title
US11669579B2 (en) Method and apparatus for providing search results
US9947025B2 (en) Method and apparatus for providing search capability and targeted advertising for audio, image, and video content over the internet
CN112948540B (en) Information query method, device, electronic equipment and computer readable medium
CN111414498A (en) Multimedia information recommendation method and device and electronic equipment
US11172040B2 (en) Method and apparatus for pushing information
CN112084268A (en) Method and device for displaying search results and computer storage medium
CN112948539B (en) Information searching method and device, electronic equipment and computer readable medium
CN113204691B (en) Information display method, device, equipment and medium
CN112819512B (en) Text processing method, device, equipment and medium
CN113806588B (en) Method and device for searching video
CN112052297B (en) Information generation method, apparatus, electronic device and computer readable medium
CN113609308B (en) Knowledge graph construction method and device, storage medium and electronic equipment
CN111339295A (en) Method, apparatus, electronic device and computer readable medium for presenting information
CN113407814B (en) Text searching method and device, readable medium and electronic equipment
CN114065057A (en) Search result determining method, display method, device, equipment and medium
CN113688310A (en) Content recommendation method, device, equipment and storage medium
CN112328889A (en) Method and device for determining recommended search terms, readable medium and electronic equipment
CN111339452B (en) Method, terminal, server and system for displaying search result
CN108280081B (en) Method and device for generating webpage
CN113032626A (en) Search result processing method and device, electronic equipment and storage medium
CN110737824A (en) Content query method and device
CN114357325A (en) Content search method, device, equipment and medium
CN112765424B (en) Data query method, device, equipment and computer readable medium
CN111259225A (en) New media information display method and device, electronic equipment and computer readable medium
CN111382262B (en) Method and device for outputting 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant