CN112307273A - Information query method and device and electronic equipment - Google Patents

Information query method and device and electronic equipment Download PDF

Info

Publication number
CN112307273A
CN112307273A CN202011194273.6A CN202011194273A CN112307273A CN 112307273 A CN112307273 A CN 112307273A CN 202011194273 A CN202011194273 A CN 202011194273A CN 112307273 A CN112307273 A CN 112307273A
Authority
CN
China
Prior art keywords
information
keyword
input
query
target
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.)
Pending
Application number
CN202011194273.6A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011194273.6A priority Critical patent/CN112307273A/en
Publication of CN112307273A publication Critical patent/CN112307273A/en
Pending legal-status Critical Current

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/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • G06F40/247Thesauruses; Synonyms

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an information query method, an information query device and electronic equipment, and belongs to the technical field of communication. The method comprises the following steps: acquiring a query keyword input by a user; receiving a first input of the query keyword by the user; responding to the first input, and acquiring a target keyword having an incidence relation with the query keyword; and acquiring target information matched with the query keyword and the target keyword. The method and the device can improve the retrieval efficiency and accuracy of the information.

Description

Information query method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an information query method and device and electronic equipment.
Background
With the continuous development of scientific technology, electronic devices (such as mobile phones, tablet computers and the like) have gradually become an indispensable device in the life and work of people.
With the increase of the time of using the electronic device by the user, a large amount of information, such as chat records, may be generated in the electronic device, and when the user needs to search for one piece of information, the user is usually required to start a corresponding APP (Application) to perform a search, or perform a global search.
The searching method needs the user to clearly know the searched keyword, and in some cases, the user needs to clearly know the APP stored with the information to be searched, and when the user forgets the searched keyword or the APP stored with the information to be searched, the user cannot search the required information, and the searching efficiency is low due to the fact that the global searching method is time-consuming.
Disclosure of Invention
The embodiment of the application aims to provide an information query method, an information query device and electronic equipment, and can solve the problems that a user cannot search required information or the searching is time-consuming and low in efficiency due to an information query mode in the prior art.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an information query method, where the method includes:
acquiring a query keyword input by a user;
receiving a first input of the query keyword by the user;
responding to the first input, and acquiring a target keyword having an incidence relation with the query keyword;
and acquiring target information matched with the query keyword and the target keyword.
In a second aspect, an embodiment of the present application provides an information query apparatus, where the apparatus includes:
the query keyword acquisition module is used for acquiring query keywords input by a user;
the first input receiving module is used for receiving first input of the user on the query keyword;
a target keyword obtaining module, configured to obtain, in response to the first input, a target keyword having an association relationship with the query keyword;
and the target information acquisition module is used for acquiring target information matched with the query keyword and the target keyword.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the information query method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the information query method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the information query method according to the first aspect.
In the embodiment of the application, the first input of the query keyword by the user is received by acquiring the query keyword input by the user, the target keyword having an association relation with the query keyword is acquired in response to the first input, and the target information matched with the query keyword and the target keyword is acquired. According to the information retrieval method and device, the keywords with the association relation and the information are stored in association in advance, after the user inputs the query keywords, the keywords with the association relation can be obtained to conduct information retrieval, the corresponding message records under the keywords can be conveniently checked through the keyword indexes, information retrieval efficiency and accuracy are improved, and time consumption of information query is reduced.
Drawings
Fig. 1 is a flowchart illustrating steps of an information query method according to an embodiment of the present application;
FIG. 2 is a diagram illustrating an associated storage structure according to an embodiment of the present application;
fig. 3 is a schematic diagram of a message card according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an association query provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an information query apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The information query method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of an information query method provided in an embodiment of the present application is shown, and as shown in fig. 1, the information query method may specifically include the following steps:
step 101: and acquiring a query keyword input by a user.
The method and the device can be applied to a scene of information query according to the query keywords input by the user and the keywords associated with the query associated words.
The query keyword refers to a keyword input by the user for information query, for example, "weather" may be input as the query keyword when the user needs to query for information associated with weather.
An information search box can be preset on the main page of the electronic equipment, and when a user needs to inquire certain information, a query keyword can be input in the information search box.
After the query keyword input by the user is obtained, step 102 is executed.
Step 102: receiving a first input of the query keyword by the user.
The first input refers to an input performed by the user on the query keyword for obtaining a keyword associated with the query keyword.
In some examples, the first input may be an input formed by a user long pressing a query keyword, for example, after the query keyword input by the user in the information search box is obtained, when an associated query needs to be performed, the query keyword in the search box may be long pressed by the user to generate the first input.
In some examples, the first input may be an input formed by a user performing a specific gesture operation, for example, a corresponding relationship between a specific gesture and an associated query may be saved in the electronic device in advance, and after a query keyword input by the user in the information search box is obtained, when the associated query needs to be performed, the specific gesture operation may be performed by the user to form the first input.
It can be understood that the above examples are merely examples listed for better understanding of the technical solution of the embodiment of the present application, and in a specific implementation, the first input may also be an input formed by other operations performed on the query keyword by the user, and specifically, the first input may be determined according to a business requirement, and this embodiment is not limited to this.
After the query keyword input by the user is obtained, a first input performed by the user on the query keyword may be received, and then step 103 is performed.
Step 103: and responding to the first input, and acquiring a target keyword having an incidence relation with the query keyword.
The target keyword refers to a keyword having an association relationship with the query keyword.
In this embodiment, the target keyword may be a keyword synonymous with the query keyword, for example, when the query keyword is "weather", the synonymous keyword of the query keyword includes: climate, weather, sky, etc., the synonymous keyword may be used as the target keyword.
The target keywords may also be keywords having a logical relationship with the query keywords, for example, when the query keywords are "weather", the keywords having a logical relationship with the query keywords include: and regarding keywords such as umbrellas, rains, temperatures, clothes and the like as target keywords, wherein the keywords have a logical relation with the query keywords.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
After receiving a first input performed by the user on the query keyword, a target keyword having an association relationship with the query keyword may be obtained in response to the first input, and then step 104 is performed.
Step 104: and acquiring target information matched with the query keyword and the target keyword.
After the target keywords having the association relation with the query keywords are obtained, information query can be performed by combining the query keywords and the target keywords so as to retrieve target information matched with the query keywords and the target keywords.
According to the information retrieval method and device, the keywords with the association relation and the information are stored in an associated mode in advance, after the user inputs the query keywords, the keywords with the association relation can be obtained to conduct information retrieval, the corresponding message records under the keywords can be conveniently checked through the keyword indexes, and the information retrieval efficiency and accuracy are improved.
In this embodiment, the keyword may be extracted in combination with history information in the electronic device, and the keyword and the history information may be stored in association with a similarity threshold, which may be described in detail in combination with the following specific implementation manner.
In a specific implementation manner of the present application, before the step 101, the method may further include:
step S1: and acquiring pre-saved history information.
In this embodiment, the history information refers to information stored in the electronic device system in advance, such as pictures, videos, texts, music and the like stored in the electronic device system in advance.
When the information and the keyword need to be stored in association, the history information saved in advance can be acquired. Specifically, the electronic device system may be scanned once every preset time period to obtain initial information generated in the electronic device system, and further, the initial information may be filtered to filter some useless information, such as highly repetitive information, or text information with only special characters and punctuations.
After the history information is acquired, step S2 is executed.
Step S2: and extracting keywords in the historical information.
After the history information is acquired, keywords in the history information may be extracted, specifically, the history information takes text information as an example, and a text of the history information may be simply divided into sentences according to the following division criteria: space, line feed, punctuation, and the like, and then the sentence is divided by using a word segmentation algorithm to extract keywords.
After the keywords in the history information are extracted, step S3 is performed.
Step S3: and storing the keywords and the corresponding historical information in an associated manner.
After extracting the keywords in the history information, the keywords and the corresponding history information may be stored in association, for example, the history information includes information 1, information 2, and information 3, after extracting the keyword a and the keyword b from the information 1, the keyword a, the keyword b, and the information 1 may be stored in association, after extracting the keyword b and the keyword c from the information 2, the keyword b, the keyword c, and the information 2 may be stored in association, and after extracting the keyword a, the keyword b, and the keyword c from the information 3, the keyword a, the keyword b, the keyword c, and the information 3 may be stored in association, and the like.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
After the related words and the corresponding history information are stored in association, step S4 is executed.
Step S4: and acquiring at least two initial keywords with the similarity greater than the similarity threshold in the keywords according to a preset similarity threshold.
The similarity threshold refers to a threshold preset by a service person and used for determining whether the keywords are similar, and a specific numerical value of the similarity threshold may be determined according to a service requirement, which is not limited in this embodiment.
After extracting the keywords in the history information, at least two initial keywords with similarity greater than a similarity threshold in the keywords may be obtained according to a preset similarity threshold, for example, the extracted keywords include keyword 1, keyword 2, keyword 3, and keyword 4, where 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 the initial keywords.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
In a specific implementation, the similarity threshold may also be adjusted in combination with a continuous use process, for example, after obtaining the historical information and the associated at least two initial keywords according to the initial similarity threshold, the user may be prompted whether to save, which keywords and historical information to save, and further, the similarity threshold may be adjusted according to the saving result.
After at least two initial keywords with similarity greater than the similarity threshold value among the keywords are obtained, step S5 is performed.
Step S5: and storing the at least two initial keywords in an associated manner.
After at least two initial keywords with similarity greater than a similarity threshold value in the keywords are obtained, the at least two initial keywords can be stored in an associated manner. Specifically, the merged keywords may be sorted according to a dictionary order and an index may be established, and meanwhile, the history information corresponding to the keywords may be stored in an associated manner according to a time order.
It is understood that after at least two initial keyword association storage, one piece of information may correspond to a plurality of keywords, so that a storage structure of a grid is formed, for example, as shown in fig. 2, the keywords include keyword a, keyword B and keyword C, the information includes message 1, message 2, and message 5, and as can be seen from fig. 2, the keyword a is stored in association with message 1, message 2, and message 3, and then the keyword a is stored in association with message 1, message 2, and message 3. And if the keyword B has an association relation with the message 3, the message 5 and the message 4, storing the keyword B in association with the message 3, the message 5 and the message 4. And if the keyword C has an association relation with the message 4 and the message 5, storing the keyword C in association with the message 4 and the message 5.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
According to the embodiment of the application, the keywords and the historical information are stored in an associated manner in advance according to the similarity threshold, in the subsequent query process, the associated keywords can be obtained according to the keywords input by the user, parallel query is carried out, the user does not need to remember the specific keywords, accurate information can be retrieved, and the information retrieval efficiency and accuracy are improved.
In this embodiment, information may also be retrieved according to a query keyword input by a user, and then, in combination with information triggered by the user, a search term in the information is extracted to perform retrieval again, which may be described in detail in combination with the following specific implementation manner.
In another specific implementation manner of the present application, after the step 101, the method may further include:
step M1: and acquiring and displaying first information matched with the query keyword.
In this embodiment, the first information refers to the retrieved information matching the query keyword.
After the query keyword input by the user is obtained, information can be retrieved according to the query keyword to obtain first information matched with the query keyword, and the first information can be displayed. For example, as shown in fig. 4, after the query keyword input by the user is obtained, a query may be performed according to the query keyword to obtain matching information, such as a message containing the keyword as shown in the left half of fig. 2.
After the first information matching the query keyword is acquired and displayed, step M2 is performed.
Step M2: receiving a second input of the first information by the user.
The second input refers to an input performed by the user on the first information for extracting a keyword in the first information.
In some examples, the second input may be an input formed by a user pressing the first information, for example, as shown in fig. 4, after displaying a message containing a keyword, when the message does not meet the user's requirement, the user needs to perform a related search, and at this time, the user may press the message containing the keyword to form the second input of the message.
In some examples, the second input may be an input formed by a user performing a particular gesture operation, for example, as shown in fig. 4, after displaying a message containing a keyword, when the message does not meet the user's requirements, the user needs to perform a related search, at which time the user may perform the particular gesture operation to form the second input of the message.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
After receiving the second input of the first information by the user, step M3 is performed.
Step M3: in response to the second input, extracting a first keyword in the first information, wherein the first keyword does not include the query keyword.
The first keyword refers to a keyword extracted from the first information, and the first keyword does not include the query keyword.
After receiving the second input of the first information by the user, the first keyword in the first information may be extracted in response to the second input, for example, as shown in fig. 4, and after receiving the second input of the message containing the keyword, the first keyword in the message containing the keyword may be extracted, as shown in the right half of fig. 4.
After the first keyword in the first information is extracted, step M4 is performed.
Step M4: and acquiring a second keyword having an association relation with the first keyword.
The second keyword is a keyword having an association relationship with the first keyword.
In some examples, the second keyword may be a keyword that is synonymous with the first keyword, e.g., the second keyword may be a keyword that is synonymous with the first keyword, such as when the first keyword is "weather," synonymous keywords for the query keyword include: climate, weather, sky, etc., the synonymous keyword may be used as the second keyword.
The second keyword may also be a keyword having a logical relationship with the first keyword, for example, when the first keyword is "weather", the keyword having a logical relationship with the first keyword includes: and taking the keywords having a logical relation with the first keyword as second keywords if the keywords are the keywords of umbrella, rain, temperature, clothes and the like.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
After acquiring the second keyword having an association relationship with the first keyword, step M5 is performed.
Step M5: and acquiring and displaying second information based on the first keyword and the second keyword.
After the second keyword having an association relation with the first keyword is obtained, information retrieval may be performed according to the first keyword and the second keyword to obtain second information matching the first keyword and the second keyword. For example, as shown in fig. 4, by extracting a keyword from the first information "message including a keyword", the extracted first keyword is the keyword C, and at this time, information can be retrieved according to the keyword C, and the retrieved information is the messages displayed on the message card 1 and the message card 2. Of course, it is also possible to acquire a second keyword having an association relationship with the keyword C and retrieve second information (not shown in the figure) matching the second keyword at the same time.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
According to the information retrieval method and device, the information obtained according to the query does not meet the query requirements of the user, the keywords in the information can be extracted in combination with the user operation to perform the secondary associated retrieval, the accuracy of the information retrieval can be improved, and the efficiency of the information retrieval is improved.
In this embodiment, a corresponding display frame may be generated for the retrieved target information, and in addition to displaying the target information, information associated with the target may also be displayed in the display frame, which may be described in detail in conjunction with the following specific implementation manner.
In a specific implementation manner of the present application, after the step 104, the method may further include:
step N1: and generating a display frame corresponding to the target information.
In the present embodiment, the display frame refers to a frame for displaying the target-to-media information.
Each piece of target information may correspond to one display box, each display box may be used as one message card, as shown in fig. 3, the target information obtained by querying according to the keyword a includes two pieces of target information, and the two pieces of target information may be generated as the message cards, such as the message card 1 and the message card 2.
After the display frame corresponding to the target information is generated, step N2 is executed.
Step N2: and acquiring the associated information corresponding to the target information.
The associated information refers to information associated with the target information, and in this example, the associated information of the target information may include: at least one of application icon, information of sender of information, information of generation time of information, etc.
The application icon refers to an icon of an APP where the target information is located.
The information sender information is a party that sends the target information, and for example, when the target information is session text information, the sender information may be a session user who sends the target information, or the like.
The information generation time information refers to the generation time of the target information.
After the display frame corresponding to the target information is generated, the related information corresponding to the target information may be acquired, and then step N3 is performed.
Step N3: and displaying the target information and the associated information on the display frame.
After obtaining the associated information corresponding to the target information, the target information and the associated information may be displayed in a display box, as shown in fig. 3, the message card may include associated information such as an application icon in addition to a message including a keyword.
According to the embodiment of the application, the target information is displayed in the display frame, and the information related to the target information can be displayed, so that a user can conveniently find the information required by the user, the application program where the target information is located can be known in time, and the use experience of the user is improved.
In this embodiment, a target application corresponding to information in the display frame may be started in combination with an input of a user to the display frame, and a display page corresponding to the information is skipped, which may be described in detail in combination with the following specific implementation manner.
In another specific implementation manner of the present application, after the step N3, the method may further include:
step P1: and receiving a third input of the display frame by the user.
In this embodiment, the third input is input performed by the user on the display frame for displaying the target information, and is used for displaying the display page corresponding to the target information.
In some examples, the third input may be an input formed by a click operation performed by the user on the display frame, for example, after the target information is displayed on the display frame, when a display page corresponding to the target information needs to be displayed, the click operation may be performed by the user on the display frame to jump to the display page corresponding to the target information, and at this time, the click operation performed by the user on the display frame may be regarded as the third input.
In some examples, the third input may be an input formed by a dragging operation performed by the user on the display frame, for example, a target area of a display page corresponding to one piece of jump target information is displayed in the display interface, and when the display page corresponding to the target information needs to be displayed, the display frame where the target information is located may be dragged into the target area by the user to jump to the display page corresponding to the target information, at which time, the operation of dragging the display frame by the user may be regarded as the third input.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
After the target information is displayed in the display frame, a third input to the display frame by the user may be received, and then, step P2 is performed.
Step P2: and responding to the third input, starting a target application program corresponding to the target information, and jumping to a display page corresponding to the target information.
After receiving a third input of the user for the display frame, the third input may be responded to start the target application program corresponding to the target information, and jump to the display page corresponding to the target information.
According to the method and the device, the target application corresponding to the target information can be started quickly by inputting the display frame displayed by the target information, the display page corresponding to the target information can be skipped to, the user does not need to search the target information from the target application program, the time for the user to search the page where the target information is located can be saved, and the user experience is improved.
According to the information query method provided by the embodiment of the application, the query keyword input by the user is obtained, the first input of the query keyword by the user is received, the target keyword having an incidence relation with the query keyword is obtained in response to the first input, and the target information matched with the query keyword and the target keyword is obtained. According to the information retrieval method and device, the keywords with the association relation and the information are stored in association in advance, after the user inputs the query keywords, the keywords with the association relation can be obtained to conduct information retrieval, the corresponding message records under the keywords can be conveniently checked through the keyword indexes, information retrieval efficiency and accuracy are improved, and time consumption of information query is reduced.
It should be noted that, in the information query method provided in the embodiment of the present application, the execution main body may be 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, an information query method executed by an information query device is taken as an example to describe the information query method provided in the embodiment of the present application.
Referring to fig. 5, a schematic structural diagram of an information query apparatus provided in an embodiment of the present application is shown, and as shown in fig. 5, the information query apparatus 500 may specifically include the following modules:
a query keyword obtaining module 510, configured to obtain a query keyword input by a user;
a first input receiving module 520, configured to receive a first input of the query keyword by the user;
a target keyword obtaining module 530, configured to, in response to the first input, obtain a target keyword having an association relationship with the query keyword;
and a target information obtaining module 540, configured to obtain target information that matches the query keyword and the target keyword.
Optionally, the method further comprises:
the historical information acquisition module is used for acquiring pre-stored historical information;
the keyword extraction module is used for extracting keywords in the historical information;
the information association storage module is used for storing the keywords and the corresponding historical information in an association manner;
the initial keyword acquisition module is used for acquiring at least two initial keywords with the similarity greater than a similarity threshold value in the keywords according to the preset similarity threshold value;
and the keyword association storage module is used for storing the at least two initial keywords in an associated manner.
Optionally, the method further comprises:
the first information acquisition module is used for acquiring and displaying first information matched with the query keyword;
the second input receiving module is used for receiving second input of the first information by the user;
a first keyword extraction module, configured to extract a first keyword in the first information in response to the second input, where the first keyword does not include the query keyword;
the second keyword acquisition module is used for acquiring a second keyword which has an incidence relation with the first keyword;
and the second information acquisition module is used for acquiring and displaying second information based on the first keyword and the second keyword.
Optionally, the method further comprises:
the display frame generating module is used for generating a display frame corresponding to the target information;
the associated information acquisition module is used for acquiring associated information corresponding to the target information;
the associated information display module is used for displaying the target information and the associated information on the display frame;
wherein the associated information comprises at least one of an application icon, information of an information sender and information of information generation time.
Optionally, the method further comprises:
the third input receiving module is used for receiving a third input of the user to the display frame;
and the display page jumping module is used for responding to the third input, starting a target application program corresponding to the target information and jumping to a display page corresponding to the target information.
According to the information inquiry device provided by the embodiment of the application, the inquiry keyword input by the user is obtained, the first input of the inquiry keyword by the user is received, the target keyword having an incidence relation with the inquiry keyword is obtained in response to the first input, and the target information matched with the inquiry keyword and the target keyword is obtained. According to the information retrieval method and device, the keywords with the association relation and the information are stored in association in advance, after the user inputs the query keywords, the keywords with the association relation can be obtained to conduct information retrieval, the corresponding message records under the keywords can be conveniently checked through the keyword indexes, information retrieval efficiency and accuracy are improved, and time consumption of information query is reduced.
The information query device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
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 (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The information query device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in this embodiment of the present application, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of being executed on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the above-mentioned information query method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
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.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 710 is configured to obtain a query keyword input by a user; receiving a first input of the query keyword by the user; responding to the first input, and acquiring a target keyword having an incidence relation with the query keyword; and acquiring target information matched with the query keyword and the target keyword.
The method and the device can improve the retrieval efficiency and accuracy of the information and reduce the time consumption of information query.
Optionally, the processor 710 is further configured to obtain pre-saved history information; extracting keywords in the historical information; storing the keywords and the corresponding historical information in an associated manner; acquiring at least two initial keywords with similarity greater than a similarity threshold value in the keywords according to a preset similarity threshold value; and storing the at least two initial keywords in an associated manner.
Optionally, the processor 710 is further configured to obtain and display first information matching the query keyword; receiving a second input of the first information by the user; extracting a first keyword in the first information in response to the second input, wherein the first keyword does not include the query keyword; acquiring a second keyword having an association relation with the first keyword; and acquiring and displaying second information based on the first keyword and the second keyword.
Optionally, the processor 710 is further configured to generate a display frame corresponding to the target information; acquiring associated information corresponding to the target information; displaying the target information and the associated information on the display frame; wherein the associated information comprises at least one of an application icon, information of an information sender and information of information generation time.
Optionally, the processor 710 is further configured to receive a third input to the display frame by the user; and responding to the third input, starting a target application program corresponding to the target information, and jumping to a display page corresponding to the target information.
According to the method and the device, the user does not need to accurately remember the keywords, and the cost for inquiring the message record by the user is greatly reduced. Compared with the traditional message record retrieval mode, the method and the system are more convenient to query and support more scenes.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing 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, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned information query method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above information query method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. An information query method, comprising:
acquiring a query keyword input by a user;
receiving a first input of the query keyword by the user;
responding to the first input, and acquiring a target keyword having an incidence relation with the query keyword;
and acquiring target information matched with the query keyword and the target keyword.
2. The method of claim 1, prior to the obtaining the query keyword input by the user, further comprising:
acquiring pre-stored history information;
extracting keywords in the historical information;
storing the keywords and the corresponding historical information in an associated manner;
acquiring at least two initial keywords with similarity greater than a similarity threshold value in the keywords according to a preset similarity threshold value;
and storing the at least two initial keywords in an associated manner.
3. The method of claim 1, further comprising, after the obtaining the query keyword input by the user:
acquiring and displaying first information matched with the query keyword;
receiving a second input of the first information by the user;
extracting a first keyword in the first information in response to the second input, wherein the first keyword does not include the query keyword;
acquiring a second keyword having an association relation with the first keyword;
and acquiring and displaying second information based on the first keyword and the second keyword.
4. The method of claim 1, further comprising, after the obtaining target information matching the query keyword and the target keyword:
generating a display frame corresponding to the target information;
acquiring associated information corresponding to the target information;
displaying the target information and the associated information on the display frame;
wherein the associated information comprises at least one of an application icon, information of an information sender and information of information generation time.
5. The method of claim 4, further comprising, after the displaying the target information and the associated information in the display frame:
receiving a third input of the user to the display frame;
and responding to the third input, starting a target application program corresponding to the target information, and jumping to a display page corresponding to the target information.
6. An information inquiry apparatus, comprising:
the query keyword acquisition module is used for acquiring query keywords input by a user;
the first input receiving module is used for receiving first input of the user on the query keyword;
a target keyword obtaining module, configured to obtain, in response to the first input, a target keyword having an association relationship with the query keyword;
and the target information acquisition module is used for acquiring target information matched with the query keyword and the target keyword.
7. The apparatus of claim 6, further comprising:
the historical information acquisition module is used for acquiring pre-stored historical information;
the keyword extraction module is used for extracting keywords in the historical information;
the information association storage module is used for storing the keywords and the corresponding historical information in an association manner;
the initial keyword acquisition module is used for acquiring at least two initial keywords with the similarity greater than a similarity threshold value in the keywords according to the preset similarity threshold value;
and the keyword association storage module is used for storing the at least two initial keywords in an associated manner.
8. The apparatus of claim 6, further comprising:
the first information acquisition module is used for acquiring and displaying first information matched with the query keyword;
the second input receiving module is used for receiving second input of the first information by the user;
a first keyword extraction module, configured to extract a first keyword in the first information in response to the second input, where the first keyword does not include the query keyword;
the second keyword acquisition module is used for acquiring a second keyword which has an incidence relation with the first keyword;
and the second information acquisition module is used for acquiring and displaying second information based on the first keyword and the second keyword.
9. The apparatus of claim 6, further comprising:
the display frame generating module is used for generating a display frame corresponding to the target information;
the associated information acquisition module is used for acquiring associated information corresponding to the target information;
the associated information display module is used for displaying the target information and the associated information on the display frame;
wherein the associated information comprises at least one of an application icon, information of an information sender and information of information generation time.
10. The apparatus of claim 9, further comprising:
the third input receiving module is used for receiving a third input of the user to the display frame;
and the display page jumping module is used for responding to the third input, starting a target application program corresponding to the target information and jumping to a display page corresponding to the target information.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the information query method according to any one of claims 1-5.
CN202011194273.6A 2020-10-30 2020-10-30 Information query method and device and electronic equipment Pending CN112307273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011194273.6A CN112307273A (en) 2020-10-30 2020-10-30 Information query method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011194273.6A CN112307273A (en) 2020-10-30 2020-10-30 Information query method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112307273A true CN112307273A (en) 2021-02-02

Family

ID=74334140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011194273.6A Pending CN112307273A (en) 2020-10-30 2020-10-30 Information query method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112307273A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114944976A (en) * 2022-04-28 2022-08-26 中国电子科技集团公司第三十六研究所 Signal processing method based on mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026995A (en) * 2019-12-02 2020-04-17 深圳市云歌人工智能技术有限公司 Method and device for information association between applications and storage medium
CN111160029A (en) * 2020-01-02 2020-05-15 腾讯科技(深圳)有限公司 Information processing method and device, electronic equipment and computer readable storage medium
CN111694999A (en) * 2020-06-11 2020-09-22 维沃移动通信(杭州)有限公司 Information processing method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026995A (en) * 2019-12-02 2020-04-17 深圳市云歌人工智能技术有限公司 Method and device for information association between applications and storage medium
CN111160029A (en) * 2020-01-02 2020-05-15 腾讯科技(深圳)有限公司 Information processing method and device, electronic equipment and computer readable storage medium
CN111694999A (en) * 2020-06-11 2020-09-22 维沃移动通信(杭州)有限公司 Information processing method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114944976A (en) * 2022-04-28 2022-08-26 中国电子科技集团公司第三十六研究所 Signal processing method based on mobile terminal

Similar Documents

Publication Publication Date Title
CN112099704A (en) Information display method and device, electronic equipment and readable storage medium
WO2021254251A1 (en) Input display method and apparatus, and electronic device
CN112307365A (en) Information display method and device, electronic equipment and storage medium
CN112083854A (en) Application program running method and device
CN113127432A (en) Operation execution method, device, electronic equipment and medium
CN112181253A (en) Information display method and device and electronic equipment
CN112269798A (en) Information display method and device and electronic equipment
CN113037925B (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN113869063A (en) Data recommendation method and device, electronic equipment and storage medium
CN113849092A (en) Content sharing method and device and electronic equipment
US11429660B2 (en) Photo processing method, device and computer equipment
CN112307273A (en) Information query method and device and electronic equipment
WO2022237877A1 (en) Information processing method and apparatus, and electronic device
WO2022257883A1 (en) Presentation method and presentation apparatus
WO2022228294A1 (en) Method and apparatus for carrying out searching, electronic device, and readable storage medium
CN113127653B (en) Information display method and device
CN112765946B (en) Chart display method and device and electronic equipment
CN115292462A (en) Character generation method and device, mobile terminal, readable storage medium and chip
CN115309487A (en) Display method, display device, electronic equipment and readable storage medium
CN112818094A (en) Chat content processing method and device and electronic equipment
CN112698734A (en) Candidate word display method and device and electronic equipment
CN112084151A (en) File processing method and device and electronic equipment
CN113359998B (en) Information query method and device
CN112346643B (en) Text processing method and device, electronic equipment and readable storage medium
CN113179207B (en) Message processing method and electronic equipment

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