Information query method, device and electronic equipment
By obtaining the target keywords and information associated with the query keywords, the problem of low efficiency of information query in the existing technology is solved, fast and accurate information retrieval is achieved, and the time-consuming information query is reduced.
Patent Information
- Application Number
- CN202011194273.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-10-30
AI Technical Summary
The information query method in the prior art makes it difficult for users to search for required information or the search efficiency is low, especially when users fail to accurately remember query keywords or APPs that store unknown information.
By obtaining the query keywords entered by the user, receiving the user's input, obtaining the target keywords that are associated with the query keywords, and matching the target information, the associated keywords and information are stored in advance, and the keyword index is used to collect information. Search, improve search efficiency and accuracy.
It achieves rapid retrieval of accurate information without requiring users to remember specific keywords, reduces the time-consuming information query, and improves the efficiency and accuracy of information retrieval.
Smart Images

Figure CN112307273B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an information query method, device and electronic equipment. Background Art
[0002] With the continuous development of science and technology, electronic devices (such as mobile phones, tablet computers, etc.) have gradually become an indispensable device in people's lives and work.
[0003] As users spend more time using electronic devices, a large amount of information, such as chat records, is generated in the electronic devices. When a user needs to find a piece of information, the user usually needs to start the corresponding APP (Application) to search, or perform a global search.
[0004] This search method requires users to clearly understand the search keywords, and in some cases, users need to clearly know the APP where the information they want to query is stored. When the user forgets the search keywords or the APP where the information they want to query is stored, the user will not be able to search for the required information. The global search method is time-consuming, resulting in low search efficiency. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide an information query method, device and electronic device, which can solve the problem that the information query method in the prior art may cause the user to be unable to search for the required information, or the search is time-consuming and inefficient.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides an information query method, the method comprising:
[0008] Get the query keywords entered by the user;
[0009] receiving a first input of the query keyword by the user;
[0010] In response to the first input, obtaining a target keyword associated with the query keyword;
[0011] Target information matching the query keyword and the target keyword is obtained.
[0012] In a second aspect, an embodiment of the present application provides an information query device, the device comprising:
[0013] A query keyword acquisition module is used to obtain the query keyword input by the user;
[0014] A first input receiving module, used to receive a first input of the query keyword by the user;
[0015] a target keyword acquisition module, configured to acquire a target keyword associated with the query keyword in response to the first input;
[0016] The target information acquisition module is used to acquire target information matching the query keyword and the target keyword.
[0017] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the information query method described in the first aspect.
[0018] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the information query method described in the first aspect are implemented.
[0019] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the information query method as described in the first aspect.
[0020] In an embodiment of the present application, by obtaining a query keyword input by a user, receiving a first input of the query keyword by the user, and in response to the first input, obtaining a target keyword associated with the query keyword, and obtaining target information matching the query keyword and the target keyword. In an embodiment of the present application, by pre-associating and storing keywords and information associated with an associated relationship, after the user inputs a query keyword, the keyword associated relationship can be obtained for information retrieval, and the keyword index can be used to conveniently view the message record corresponding to the keyword, thereby improving the efficiency and accuracy of information retrieval and reducing the time consumption of information query. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flowchart of a method for querying information provided by an embodiment of the present application;
[0022] Figure 2 A schematic diagram of an associative storage structure provided in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of a message card provided in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of an association query provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of the structure of an information query device provided in an embodiment of the present application;
[0026] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0027] Figure 7 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0030] The information query method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0031] Reference Figure 1 , shows a flowchart of the steps of an information query method provided by an embodiment of the present application, such as Figure 1 As shown, the information query method may specifically include the following steps:
[0032] Step 101: Obtain the query keyword input by the user.
[0033] The embodiments of the present application can be applied to a scenario in which information is queried based on a query keyword input by a user and a keyword associated with the query associated word.
[0034] The query keyword refers to a keyword input by a user for information query. For example, when a user needs to query information related to weather, the user may input "weather" as the query keyword.
[0035] An information search box may be pre-set on the main page of the electronic device. When the user needs to search for a certain piece of information, the user may enter a search keyword in the information search box.
[0036] After the query keyword input by the user is obtained, step 102 is executed.
[0037] Step 102: Receive a first input of the query keyword from the user.
[0038] The first input refers to an input performed by a user on a query keyword for acquiring keywords associated with the query keyword.
[0039] In some examples, the first input may be an input formed by a user long pressing a query keyword. For example, after obtaining the query keyword entered by the user in the information search box, when an associated query needs to be performed, the user may long press the query keyword in the search box to generate the first input.
[0040] In some examples, the first input may be an input formed by a user performing a specific gesture operation. For example, the correspondence between a specific gesture and an associated query may be pre-saved in the electronic device. After obtaining the query keyword entered by the user in the information search box, when an associated query is needed, the user may perform a specific gesture operation to form the first input.
[0041] It can be understood that the above examples are only examples listed for a better understanding of the technical solutions of the embodiments of the present application. In a specific implementation, the first input can also be an input formed by other operations performed by the user on the query keywords. Specifically, it can be determined according to business needs, and this embodiment does not limit this.
[0042] After the query keyword input by the user is obtained, a first input of the user on the query keyword may be received, and then step 103 is executed.
[0043] Step 103: In response to the first input, a target keyword associated with the query keyword is obtained.
[0044] Target keywords refer to keywords that are associated with the query keywords.
[0045] In this embodiment, the target keyword may be a keyword synonymous with the query keyword. For example, when the query keyword is "weather", synonymous keywords of the query keyword include: climate, meteorology, weather, etc., and the synonymous keyword may be used as the target keyword.
[0046] The target keyword can also be a keyword that has a logical relationship with the query keyword. For example, when the query keyword is "weather", the keywords that have a logical relationship with the query keyword include: umbrella, rain, temperature, clothes, etc., then the keywords that have a logical relationship with the query keyword will be regarded as the target keyword.
[0047] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation to the embodiments.
[0048] After receiving the first input of the user for the query keyword, the target keyword associated with the query keyword may be acquired in response to the first input, and then step 104 is executed.
[0049] Step 104: Acquire target information matching the query keyword and the target keyword.
[0050] After obtaining the target keyword associated with the query keyword, information query may be performed in combination with the query keyword and the target keyword to retrieve target information matching the query keyword and the target keyword.
[0051] The embodiment of the present application stores related keywords and information in advance. After the user enters a query keyword, the related keywords can be obtained for information retrieval. The keyword index can be used conveniently to view the message records corresponding to the keyword, thereby improving the retrieval efficiency and accuracy of information.
[0052] In this embodiment, keywords may be extracted in combination with historical information in the electronic device, and keywords and historical information may be associated and stored in combination with a similarity threshold. Specifically, this may be described in detail in combination with the following specific implementations.
[0053] In a specific implementation of the present application, before the above step 101, the following may also be included:
[0054] Step S1: Obtain pre-saved historical information.
[0055] In this embodiment, the historical information refers to information pre-stored in the electronic device system, such as pictures, videos, texts, music, and other information pre-stored in the electronic device system.
[0056] When it is necessary to store information in association with keywords, the pre-saved historical information can be obtained. Specifically, the electronic device system can be scanned once every preset time to obtain the initial information generated in the electronic device system, and then the initial information can be filtered to filter out some useless information, such as highly repeated information, or to filter out text information with only special characters and punctuation marks.
[0057] After the historical information is acquired, step S2 is executed.
[0058] Step S2: extracting keywords from the historical information.
[0059] After obtaining the historical information, keywords in the historical information can be extracted. Specifically, taking text information as an example, the text of the historical information can first be simply divided into sentences using the following criteria: spaces, line breaks, punctuation marks, etc., and then the sentence segmentation algorithm is used to divide the sentences to extract keywords.
[0060] After the keywords in the historical information are extracted, step S3 is executed.
[0061] Step S3: storing the keyword and the corresponding historical information in association with each other.
[0062] After extracting keywords from historical information, the keywords and corresponding historical information can be associated and stored. For example, the historical information includes information 1, information 2 and information 3. After extracting keyword a and keyword b from information 1, keyword a, keyword b and information 1 can be associated and stored. After extracting keyword b and keyword c from information 2, keyword b, keyword c and information 2 can be associated and stored. After extracting keyword a, keyword b and keyword c from information 3, keyword a, keyword b, keyword c and information 3 can be associated and stored, etc.
[0063] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation to the embodiments.
[0064] After the associated words and the corresponding historical information are associated and stored, step S4 is executed.
[0065] Step S4: according to a preset similarity threshold, obtaining at least two initial keywords from the keywords whose similarity is greater than the similarity threshold.
[0066] The similarity threshold refers to a threshold preset by business personnel for determining whether keywords are similar. The specific value of the similarity threshold can be determined according to business requirements, and this embodiment does not impose any limitation on this.
[0067] After extracting the keywords in the historical information, at least two initial keywords whose similarity is greater than the similarity threshold can be obtained from the keywords according to a preset similarity threshold. For example, the extracted keywords include keyword 1, keyword 2, keyword 3 and keyword 4, wherein when the similarity between keyword 1, keyword 2 and keyword 3 is greater than the similarity threshold, keyword 1, keyword 2 and keyword 3 are used as initial keywords.
[0068] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation to the embodiments.
[0069] In a specific implementation, the similarity threshold can also be adjusted in combination with the continuous use process. For example, after obtaining historical information and at least two associated initial keywords based on the initial similarity threshold, the user can be prompted whether to save and which keywords and historical information to save. Then, the similarity threshold can be adjusted based on the saving result.
[0070] After obtaining at least two initial keywords whose similarity is greater than the similarity threshold among the keywords, step S5 is executed.
[0071] Step S5: storing the at least two initial keywords in association with each other.
[0072] After obtaining at least two initial keywords with a similarity greater than a similarity threshold, the at least two initial keywords can be stored in association. Specifically, the merged keywords can be sorted and indexed in dictionary order, and the historical information corresponding to the keywords can be stored in association in chronological order.
[0073] It is understandable that after at least two initial keywords are associated and stored, a piece of information may correspond to multiple keywords, so a grid storage structure is formed, for example, Figure 2 As shown, the keywords include keyword A, keyword B and keyword C, and the information includes message 1, message 2, ..., message 5. Figure 2 It can be seen that keyword A is stored in an association relationship with message 1, message 2, and message 3, so keyword A is stored in association with message 1, message 2, and message 3. Keyword B is stored in association with message 3, message 5, and message 4, so keyword B is stored in association with message 3, message 5, and message 4. Keyword C is stored in association with message 4 and message 5, so keyword C is stored in association with message 4 and message 5.
[0074] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation to the embodiments.
[0075] The embodiment of the present application associates and stores keywords and historical information in advance according to a similarity threshold. In subsequent query processes, associated keywords can be obtained based on keywords input by the user to perform parallel queries. The user does not need to remember specific keywords, and accurate information can be retrieved, thereby improving information retrieval efficiency and accuracy.
[0076] In this embodiment, information may be retrieved first according to the query keywords input by the user, and then the search terms may be extracted from the information triggered by the user for further retrieval. Specifically, this may be described in detail in combination with the following specific implementation methods.
[0077] In another specific implementation of the present application, after the above step 101, the following may also be included:
[0078] Step M1: Acquire and display the first information matching the query keyword.
[0079] In this embodiment, the first information refers to the retrieved information that matches the query keyword.
[0080] After obtaining the query keyword input by the user, information can be retrieved according to the query keyword to obtain the first information matching the query keyword, and then the first information can be displayed. Figure 4 As shown, after obtaining the query keyword input by the user, you can search based on the query keyword to obtain matching information, such as Figure 2 The left half of the figure shows messages containing keywords, etc.
[0081] After acquiring and displaying the first information matching the query keyword, step M2 is executed.
[0082] Step M2: Receive the second input of the user regarding the first information.
[0083] The second input refers to an input performed by the user on the first information for extracting keywords in the first information.
[0084] In some examples, the second input may be an input formed by a user long pressing the first information, for example, Figure 4 As shown, after displaying a message containing a keyword, when the message does not meet the user's needs, the user needs to perform an associated search. At this time, the user can long press the message containing the keyword to form a second input of the message.
[0085] In some examples, the second input may be an input formed by a user performing a specific gesture operation, for example, Figure 4As shown, after a message containing a keyword is displayed, when the message does not meet the user's needs, the user needs to perform an associated search. At this time, the user can perform a specific gesture operation to form a second input of the message.
[0086] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation to the embodiments.
[0087] After receiving the second input of the first information from the user, step M3 is executed.
[0088] Step M3: In response to the second input, extract a first keyword from the first information, wherein the first keyword does not include the query keyword.
[0089] The first keyword refers to a keyword extracted from the first information, and the first keyword does not include a query keyword.
[0090] After receiving the second input of the user to the first information, the first keyword in the first information can be extracted in response to the second input, for example, Figure 4 As shown, after receiving the second input of the user to the message containing the keyword, the first keyword in the message containing the keyword can be extracted, such as Figure 4 Keyword C shown in the right half of the figure.
[0091] After extracting the first keyword from the first information, execute step M4.
[0092] Step M4: Acquire a second keyword associated with the first keyword.
[0093] The second keyword refers to a keyword associated with the first keyword.
[0094] In some examples, the second keyword may be a keyword synonymous with the first keyword. For example, when the first keyword is "weather", synonymous keywords of the query keyword include: climate, meteorology, weather, etc., then the synonymous keyword can be used as the second keyword.
[0095] The second keyword can also be a keyword that has a logical relationship with the first keyword. For example, when the first keyword is "weather", the keywords that have a logical relationship with the first keyword include: umbrella, rain, temperature, clothes, etc., then the keywords that have a logical relationship with the first keyword will be regarded as the second keyword.
[0096] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation to the embodiments.
[0097] After obtaining the second keyword associated with the first keyword, step M5 is performed.
[0098] Step M5: Based on the first keyword and the second keyword, obtain and display second information.
[0099] After obtaining the second keyword associated with the first keyword, information can be retrieved based on the first keyword and the second keyword to obtain second information matching the first keyword and the second keyword. Figure 4 As shown, by performing keyword extraction on the first information "message containing keywords", the first keyword extracted is keyword C. At this time, information retrieval can be performed based on keyword C, and the retrieved information is the message displayed on message card 1 and message card 2. Of course, a second keyword associated with keyword C can also be obtained, and second information matching the second keyword can be retrieved at the same time (not shown in the figure).
[0100] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation to the embodiments.
[0101] In the embodiment of the present application, when the information obtained according to the query does not meet the user's query requirements, keywords in the information can be extracted in combination with the user's operation to perform another associated search, thereby improving the accuracy of information retrieval and the efficiency of information retrieval.
[0102] In this embodiment, a corresponding display frame may be generated for the retrieved target information. In addition to the target information, the display frame may also display information associated with the target. Specifically, it may be described in detail in conjunction with the following specific implementation method.
[0103] In a specific implementation of the present application, after the above step 104, the following may also be included:
[0104] Step N1: Generate a display frame corresponding to the target information.
[0105] In this embodiment, the display frame refers to a frame for displaying the target media information.
[0106] Each target information can correspond to a display box, and each display box can be used as a message card, such as Figure 3 As shown, the target information obtained by searching according to keyword A includes two items, and message cards for the two items of target information can be generated, such as message card 1 and message card 2.
[0107] After generating the display frame corresponding to the target information, execute step N2.
[0108] Step N2: Obtain associated information corresponding to the target information.
[0109] The associated information refers to information associated with the target information. In this example, the associated information of the target information may include at least one of: application icon, information sender information, information generation time information, and the like.
[0110] Among them, the application icon refers to the icon of the APP where the target information is located.
[0111] The information sender information refers to the party that sends the target information. For example, when the target information is a conversation text message, the sender information may be the conversation user who sends the target information.
[0112] The information generation time information refers to the generation time of the target information.
[0113] After generating the display frame corresponding to the target information, the associated information corresponding to the target information may be acquired, and then step N3 is executed.
[0114] Step N3: Display the target information and the associated information in the display frame.
[0115] After obtaining the associated information corresponding to the target information, the target information and the associated information can be displayed in a display box, such as Figure 3 As shown, in addition to the message containing the keyword, the message card may also include related information such as application icons.
[0116] The embodiment of the present application can display the target information in the display box and also display the information associated with the target information, which can facilitate the user to find the information he needs and timely understand the application where the target information is located, thereby improving the user experience.
[0117] In this embodiment, the target application corresponding to the information in the display box can also be started in combination with the user's input to the display box, and the display page corresponding to the information can be jumped to. Specifically, it can be described in detail in combination with the following specific implementation method.
[0118] In another specific implementation of the present application, after the above step N3, the following may also be included:
[0119] Step P1: receiving a third input from the user to the display frame.
[0120] In this embodiment, the third input refers to an input performed by the user on the display frame displaying the target information for displaying a display page corresponding to the target information.
[0121] In some examples, the third input may be an input formed by a user clicking on a display box. For example, after the target information is displayed in the display box, when it is necessary to display a display page corresponding to the target information, the user may click on the display box to jump to the display page corresponding to the target information. At this time, the user's click on the display box may be regarded as the third input.
[0122] In some examples, the third input may be an input formed by a user dragging a display box. For example, a target area for a display page corresponding to target information is displayed in the display interface. When the display page corresponding to the target information needs to be displayed, the user can drag the display box containing the target information into the target area to jump to the display page corresponding to the target information. At this time, the user's operation of dragging the display box may be regarded as the third input.
[0123] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation to the embodiments.
[0124] After the target information is displayed in the display frame, a third input from the user to the display frame may be received, and then step P2 is executed.
[0125] Step P2: In response to the third input, start the target application corresponding to the target information and jump to the display page corresponding to the target information.
[0126] After receiving the third input of the user to the display box, the third input may be responded to so as to start the target application corresponding to the target information and jump to the display page corresponding to the target information.
[0127] The embodiment of the present application can quickly start the target application corresponding to the target information by inputting into the display box where the target information is displayed, and can jump to the display page corresponding to the target information. The user does not need to search for the target information from within the target application, which can save the user time in searching for the page where the target information is located, thereby improving the user experience.
[0128] The information query method provided in the embodiment of the present application obtains the query keyword input by the user, receives the first input of the query keyword by the user, obtains the target keyword associated with the query keyword in response to the first input, and obtains the target information matching the query keyword and the target keyword. The embodiment of the present application stores the keywords and information associated with the associated relationship in advance, and after the user inputs the query keyword, the keywords with the associated relationship can be obtained for information retrieval, and the keyword index can be used to conveniently view the message records corresponding to the keywords, thereby improving the efficiency and accuracy of information retrieval and reducing the time consumption of information query.
[0129] It should be noted that the information query method provided in the embodiment of the present application can be executed by an information query device or a control module in the information query device for executing the information query method. In the embodiment of the present application, the information query method provided in the embodiment of the present application is described by taking the information query device executing the information query method as an example.
[0130] Reference Figure 5 , shows a schematic diagram of the structure of an information query device provided by an embodiment of the present application, such as Figure 5 As shown, the information query device 500 may specifically include the following modules:
[0131] A query keyword acquisition module 510 is used to acquire a query keyword input by a user;
[0132] A first input receiving module 520, configured to receive a first input of the query keyword by the user;
[0133] A target keyword acquisition module 530 is used to acquire a target keyword associated with the query keyword in response to the first input;
[0134] The target information acquisition module 540 is used to acquire target information matching the query keyword and the target keyword.
[0135] Optionally, it also includes:
[0136] A historical information acquisition module is used to acquire pre-saved historical information;
[0137] A keyword extraction module, used to extract keywords from the historical information;
[0138] An information association storage module, used for associating and storing the keywords and the corresponding historical information;
[0139] An initial keyword acquisition module, used for acquiring at least two initial keywords whose similarity is greater than the similarity threshold value according to a preset similarity threshold value;
[0140] The keyword association storage module is used to store the at least two initial keywords in association with each other.
[0141] Optionally, it also includes:
[0142] A first information acquisition module, used to acquire and display first information matching the query keyword;
[0143] A second input receiving module, used for receiving a second input of the user on the first information;
[0144] A first keyword extraction module, configured to extract a first keyword from the first information in response to the second input, wherein the first keyword does not include the query keyword;
[0145] A second keyword acquisition module, used to acquire a second keyword associated with the first keyword;
[0146] The second information acquisition module is used to acquire and display second information based on the first keyword and the second keyword.
[0147] Optionally, it also includes:
[0148] A display frame generating module, used to generate a display frame corresponding to the target information;
[0149] A related information acquisition module, used to acquire related information corresponding to the target information;
[0150] A related information display module, used for displaying the target information and the related information in the display frame;
[0151] The associated information includes at least one of an application icon, information about the sender of the information, and information about the time when the information was generated.
[0152] Optionally, it also includes:
[0153] A third input receiving module, used for receiving a third input of the user to the display frame;
[0154] The display page jump module is used to start the target application corresponding to the target information in response to the third input, and jump to the display page corresponding to the target information.
[0155] The information query device provided by the embodiment of the present application obtains the query keyword input by the user, receives the first input of the query keyword by the user, obtains the target keyword associated with the query keyword in response to the first input, and obtains the target information matching the query keyword and the target keyword. The embodiment of the present application stores the keywords and information associated with the associated relationship in advance, and after the user inputs the query keyword, the keywords with the associated relationship can be obtained for information retrieval, and the keyword index can be used to conveniently view the message records corresponding to the keywords, thereby improving the retrieval efficiency and accuracy of information and reducing the time consumption of information query.
[0156] The information query device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0157] The information query device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0158] The information query device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0159] Alternatively, if Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned information query method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0160] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0161] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0162] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
[0163] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0164] Among them, the processor 710 is used to obtain a query keyword input by a user; receive a first input of the query keyword by the user; in response to the first input, obtain a target keyword associated with the query keyword; and obtain target information matching the query keyword and the target keyword.
[0165] This application can improve the efficiency and accuracy of information retrieval and reduce the time consumption of information query.
[0166] Optionally, the processor 710 is further used to obtain pre-saved historical information; extract keywords from the historical information; store the keywords and the corresponding historical information in association with each other; obtain at least two initial keywords from the keywords whose similarity is greater than the similarity threshold according to a pre-set similarity threshold; and store the at least two initial keywords in association with each other.
[0167] Optionally, the processor 710 is also used to obtain and display first information matching the query keyword; receive a second input from the user for the first information; extract a first keyword from the first information in response to the second input, wherein the first keyword does not include the query keyword; obtain a second keyword associated with the first keyword; and obtain and display second information based on the first keyword and the second keyword.
[0168] Optionally, the processor 710 is further used to generate a display box corresponding to the target information; obtain related information corresponding to the target information; display the target information and the related information in the display box; wherein the related information includes at least one of an application icon, information sender information, and information generation time information.
[0169] Optionally, the processor 710 is further configured to receive a third input from the user to the display box; in response to the third input, start a target application corresponding to the target information, and jump to a display page corresponding to the target information.
[0170] The embodiment of the present application does not require the user to remember the keywords accurately, which greatly reduces the cost of the user to query the message record. Compared with the traditional message record retrieval method, the query of the present application is more convenient and supports more scenarios.
[0171] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 709 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 710 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 710.
[0172] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned information query method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0173] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0174] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned information query method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0175] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0176] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0177] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0178] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An information query method, characterized in that: include: Get the query keywords entered by the user; The query keyword is a keyword entered by the user in an information search box set on the main page of the electronic device; receiving a first input of the query keyword by the user; In response to the first input, obtaining a target keyword associated with the query keyword; Acquire target information matching the query keyword and the target keyword; generating a display frame corresponding to the target information; Each target information corresponds to a display frame, and each display frame is a message card; Acquire associated information corresponding to the target information; Displaying the target information and the associated information in the display frame; receiving a third input from the user to the display frame; In response to the third input, starting a target application corresponding to the target information and jumping to a display page corresponding to the target information; The associated information includes at least one of an application icon, information about the sender of the information, and information about the time when the information was generated; After obtaining the query keyword input by the user, the method further includes: Acquire and display first information matching the query keyword; receiving a second input of the user regarding the first information; In response to the second input, extracting a first keyword from the first information, wherein the first keyword does not include the query keyword; Acquire a second keyword associated with the first keyword; Based on the first keyword and the second keyword, second information is acquired and displayed.
2. The method according to claim 1, characterized in that Before obtaining the query keyword input by the user, the method further includes: Get pre-saved historical information; Extracting keywords from the historical information; storing the keyword and the corresponding historical information in association with each other; According to a preset similarity threshold, obtaining at least two initial keywords from the keywords whose similarity is greater than the similarity threshold; The at least two initial keywords are stored in association with each other.
3. An information query device, characterized in that: include: A query keyword acquisition module is used to obtain the query keyword input by the user; The query keyword is a keyword entered by the user in an information search box set on the main page of the electronic device; A first input receiving module, used to receive a first input of the query keyword by the user; a target keyword acquisition module, configured to acquire a target keyword associated with the query keyword in response to the first input; A target information acquisition module, used to acquire target information matching the query keyword and the target keyword; A display frame generating module, used to generate a display frame corresponding to the target information; Each target information corresponds to a display frame, and each display frame is a message card; A related information acquisition module, used to acquire related information corresponding to the target information; A related information display module, used for displaying the target information and the related information in the display frame; A third input receiving module, used for receiving a third input of the user to the display frame; a display page jump module, configured to start a target application corresponding to the target information in response to the third input, and jump to a display page corresponding to the target information; The associated information includes at least one of an application icon, information about the sender of the information, and information about the time when the information was generated; The device also includes: A first information acquisition module, used to acquire and display first information matching the query keyword; A second input receiving module, used for receiving a second input of the user on the first information; a first keyword extraction module, configured to extract keywords from the first information in response to the second input; A first keyword, wherein the first keyword does not include the query keyword; A second keyword acquisition module, used to acquire a second keyword associated with the first keyword; The second information acquisition module is used to acquire and display second information based on the first keyword and the second keyword.
4. The device according to claim 3, characterized in that Also includes: A historical information acquisition module is used to acquire pre-saved historical information; A keyword extraction module, used to extract keywords from the historical information; An information association storage module, used for associating and storing the keywords and the corresponding historical information; An initial keyword acquisition module, used for acquiring at least two initial keywords whose similarity is greater than the similarity threshold value according to a preset similarity threshold value; The keyword association storage module is used to store the at least two initial keywords in association with each other.
5. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the information query method as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Inter-application information association method and device and storage medium
CN111026995A
Information processing method and device, electronic equipment and computer readable storage medium
CN111160029A
Application program starting method and device
CN111813305A
