CN109508418B - Method and device for displaying information - Google Patents
Method and device for displaying information Download PDFInfo
- Publication number
- CN109508418B CN109508418B CN201811373599.8A CN201811373599A CN109508418B CN 109508418 B CN109508418 B CN 109508418B CN 201811373599 A CN201811373599 A CN 201811373599A CN 109508418 B CN109508418 B CN 109508418B
- Authority
- CN
- China
- Prior art keywords
- information
- feature word
- rewriting
- queried
- piece
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
the embodiment of the application discloses a method and a device for displaying information. One embodiment of the method comprises: in response to the detection of the information to be inquired, rewriting the information to be inquired to obtain at least one piece of rewriting information; inquiring the validity of the rewriting information in the at least one piece of rewriting information, wherein the validity is used for representing whether the rewriting information exists in an information base corresponding to the information to be inquired; in response to there being at least one piece of overwrite information valid, displaying the valid at least one piece of overwrite information. This embodiment improves the effectiveness of the user in obtaining information by rewriting the information.
Description
Technical Field
The embodiment of the application relates to the technical field of data processing, in particular to a method and a device for displaying information.
Background
With the development of science and technology, various search applications meet the information search requirements of the work and life of users, and the work and life efficiency of the users is improved. When the user inputs the information to be searched in the search application, the search application can obtain the corresponding search result according to the information to be searched, and can display other search information similar to the information to be searched to the user so as to be convenient for the user to select.
Disclosure of Invention
The embodiment of the application provides a method and a device for displaying information.
in a first aspect, an embodiment of the present application provides a method for displaying information, where the method includes: in response to the detection of the information to be queried, rewriting the information to be queried to obtain at least one piece of rewriting information, wherein the rewriting information is obtained by replacing a corresponding entry in the information to be queried according to an existing entry in an information base; inquiring the validity of the rewriting information in the at least one piece of rewriting information, wherein the validity is used for representing whether the rewriting information exists in an information base corresponding to the information to be inquired; in response to there being at least one piece of overwrite information valid, displaying the valid at least one piece of overwrite information.
In some embodiments, the rewritten information is obtained by replacing at least one first feature word in the information to be queried.
In some embodiments, the rewriting the information to be queried to obtain at least one piece of rewriting information includes: extracting feature words of the information to be queried to obtain at least one first feature word corresponding to the information to be queried; responding to that a first feature word in the at least one first feature word does not belong to a first feature word set, and querying a target feature word matched with the first feature word in the first feature word set, wherein the first feature word set and the first feature word belong to the same information category, and the target feature word is a feature word in the first feature word set, which is similar to the semantic of the first feature word; and replacing the first characteristic word corresponding to the target characteristic word in the information to be queried by the target characteristic word to obtain the rewriting information corresponding to the information to be queried.
in some embodiments, the querying the validity of the rewriting information includes: extracting the characteristic words of the rewriting information to obtain at least one second characteristic word corresponding to the rewriting information; and determining the rewriting information to be effective in response to the existence of a piece of information corresponding to the at least one second feature word.
In some embodiments, the above method further comprises: and in response to detecting the inquiry signal corresponding to the rewritten information in the valid at least one piece of rewritten information, displaying at least one piece of first inquiry result information corresponding to the rewritten information.
in some embodiments, the above method further comprises: extracting feature words of the information to be queried to obtain at least one third feature word corresponding to the information to be queried; and inquiring at least one piece of second inquiry result information corresponding to the third characteristic word for the third characteristic word in the at least one third characteristic word.
In a second aspect, an embodiment of the present application provides an apparatus for displaying information, the apparatus including: the rewriting information acquisition unit is used for responding to the detection of the information to be inquired and is configured to rewrite the information to be inquired to obtain at least one piece of rewriting information, and the rewriting information is obtained by replacing corresponding entries in the information to be inquired according to the existing entries in the information base; a validity inquiry unit configured to inquire, for rewritten information in the at least one piece of rewritten information, validity of the rewritten information, the validity being used to indicate whether the rewritten information exists in an information base corresponding to the information to be inquired; an information display unit configured to display the valid at least one piece of rewriting information in response to the existence of the at least one piece of rewriting information being valid.
In some embodiments, the rewritten information is obtained by replacing at least one first feature word in the information to be queried.
In some embodiments, the rewriting information acquisition unit includes: the first feature word acquisition subunit is configured to perform feature word extraction on the information to be queried to obtain at least one first feature word corresponding to the information to be queried; a target feature word query subunit, configured to, in response to that a first feature word in the at least one first feature word does not belong to a first feature word set, query a target feature word in the first feature word set that matches the first feature word, where the first feature word set and the first feature word belong to the same information category, and the target feature word is a feature word in the first feature word set that is similar to the semantic of the first feature word; and the rewriting information acquisition subunit is configured to replace a first feature word corresponding to the target feature word in the information to be queried by the target feature word to obtain rewriting information corresponding to the information to be queried.
in some embodiments, the validity query unit includes: a second feature word obtaining subunit, configured to perform feature word extraction on the rewriting information to obtain at least one second feature word corresponding to the rewriting information; and the validity inquiry subunit is configured to determine that the rewriting information is valid in response to the existence of information corresponding to the at least one second characteristic word.
In some embodiments, the above apparatus further comprises: and a first inquiry result information display unit configured to display at least one piece of first inquiry result information corresponding to the rewrite information in response to detection of an inquiry signal corresponding to the rewrite information in the valid at least one piece of rewrite information.
In some embodiments, the above apparatus further comprises: the third feature word acquisition unit is configured to extract feature words of the information to be queried to obtain at least one third feature word corresponding to the information to be queried; and the second query result information display unit is used for querying at least one piece of second query result information corresponding to the third characteristic word in the at least one third characteristic word.
In a third aspect, an embodiment of the present application provides a server, including: one or more processors; a memory having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to perform the method for displaying information of the first aspect.
In a fourth aspect, the present application provides a computer-readable medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for displaying information of the first aspect.
according to the method and the device for displaying the information, provided by the embodiment of the application, the information to be inquired is rewritten to obtain at least one piece of rewriting information; then inquiring the validity of the rewriting information, wherein the validity is used for representing whether the rewriting information exists in an information base corresponding to the information to be inquired; and finally displaying the valid at least one piece of rewriting information. According to the technical scheme, before the rewriting information is displayed to the user, the validity of the rewriting information is verified, and the rewriting information is displayed only when the rewriting information is valid, so that the validity of the information acquired by the user through the rewriting information is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for displaying information according to the present application;
FIG. 3 is a schematic illustration of an application scenario of a method for displaying information according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for displaying information according to the present application;
FIG. 5 is a schematic diagram of an embodiment of an apparatus for displaying information according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing a server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which a method for displaying information or an apparatus for displaying information of an embodiment of the present application may be applied.
as shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
the user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as an electronic map application, a web browser application, a shopping-like application, a search-like application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen and supporting information inquiry, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as a plurality of software or software modules (for example, for providing distributed services), or as a single software or software module, which is not specifically limited herein.
The server 105 may be a server that provides various services, for example, a server that performs data processing on information to be queried sent from the terminal apparatuses 101, 102, 103. The server can analyze and process the received data such as the information to be inquired and feed back the processing result (such as rewriting information) to the terminal equipment.
It should be noted that the method for displaying information provided in the embodiment of the present application is generally performed by the server 105, and accordingly, the apparatus for displaying information is generally disposed in the server 105.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (for example, to provide distributed services), or may be implemented as a single software or software module, and is not limited specifically herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for displaying information in accordance with the present application is shown. The method for displaying information comprises the following steps:
Step 201, in response to detecting the information to be queried, rewriting the information to be queried to obtain at least one piece of rewriting information.
In the present embodiment, the execution subject of the method for displaying information (e.g., the terminal devices 101, 102, 103 shown in fig. 1) may receive information to be queried from a terminal with which a user makes an information query, through a wired connection manner or a wireless connection manner. The information to be queried may be information obtained by converting voice information sent by a user into characters, or information directly input by the user.
It is noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a UWB (ultra wideband) connection, and other wireless connection means now known or developed in the future.
In the prior art, the information to be queried input by a user through voice or manual mode and the like is not always identical to the data stored in the information base of the execution main body. In order to match with the information in the information base as much as possible, the execution subject may rewrite the information to be queried to obtain at least one piece of rewritten information. Generally, the rewriting information may be obtained by replacing the corresponding entry in the information to be queried with the existing entry with a high frequency of occurrence in the information base. For a specific information searching mode on the execution main body, the information searching modes all correspond to an information base. For example, when the information search mode is a network search engine, the corresponding information base may be an information base of the network search engine; when the information searching mode is an electronic map, the corresponding information base can be the information base of the electronic map.
In some optional implementation manners of this embodiment, the rewritten information is information obtained by replacing at least one first feature word in the information to be queried.
the rewriting information may be information obtained by replacing at least one first feature word in the information to be queried. For example, the user makes an information query through an electronic map, and the information to be queried input by the user may be "XX is very popular". Where the "XX" entry often appears in the information store in front of the "bank" entry. The word "very" is similar to the word "silver". Therefore, the execution subject may modify "XX very popular" into "XX bank" contained in the information base so as to query the information base for corresponding query result information. The type is rewriting information obtained by modifying the wrong entries; the information to be queried input by the user may also be "XX building". However, in the information base, the "XX" entry is followed by "building". At this time, the execution agent may modify "XX building" to "XX building" so as to query the corresponding query result information from the information base. This type is rewriting information obtained by replacing an entry. That is, the first feature word may be a possible error word caused by a stroke error, pronunciation, etc. in the information to be queried, such as the above-mentioned "very popular" and "building", the "very popular" and the "building" are the first feature words. The information to be queried can be modified in other manners to obtain the rewriting information, which is not described herein any more.
In some optional implementation manners of this embodiment, the rewriting the information to be queried to obtain at least one piece of rewriting information may include the following steps:
firstly, extracting feature words of the information to be queried to obtain at least one first feature word corresponding to the information to be queried.
In order to modify the information to be queried to obtain the rewritten information, first, a first feature word (such as the above-mentioned "building", "very popular" and the like) is extracted from the information to be queried. Generally, the execution subject may extract a plurality of first feature words from the information to be queried.
And secondly, responding to the fact that a first feature word in the at least one first feature word does not belong to a first feature word set, and inquiring a target feature word matched with the first feature word in the first feature word set.
After obtaining the first feature word, the execution main body may first determine whether the first feature word belongs to the first feature word set. The first characteristic word set and the first characteristic word belong to the same information category. Generally, the information in the first feature word set is information with high occurrence frequency in the information base. The execution subject can quickly modify the characteristic words which may be wrong through the first characteristic word set. For example, when the first feature word is "building", the first feature word set may be a set of information about buildings in the information base, and may include: "building", "office building", etc. When the first feature word is "street", the first feature word set may be a set of information about roads in the information base, and may include: "street", "avenue", "lane" etc. When the first feature word does not belong to the corresponding first feature word set, the execution main body may query information in the first feature word set, which is most similar to the semantics of the first feature word, and use the information as a target feature word most matched with the first feature word. That is, the target feature word may be a feature word in the first feature word set that is similar to the semantic meaning of the first feature word. For example, when the first feature word is "college," the first set of feature words may include: "building", "office building", etc., but does not include "yard". At this time, the executive body may select a target feature word similar to "college" from the first feature word set. For example, it may be: a building is provided.
and thirdly, replacing the first characteristic word corresponding to the target characteristic word in the information to be inquired by the target characteristic word to obtain the rewriting information corresponding to the information to be inquired.
The execution main body may replace each first feature word in all the first feature words with a corresponding target feature word, or may replace some first feature words in all the first feature words with corresponding target feature words. And the information to be inquired after replacing the target characteristic words is the rewriting information.
step 202, inquiring about the validity of the rewriting information in the at least one piece of rewriting information.
In practice, the updating of the information base is usually periodic. When the actual information changes and the information base is not updated, the rewritten information obtained by the execution main body may be wrong. The error in rewriting information may also be caused by the process of converting text by voice, and so on, which is not described in detail herein. In order to provide accurate and effective information to the user, the executing entity may query for the validity of the rewritten information.
In the prior art, in order to provide prompt information to a user as quickly as possible, the rewriting information (namely, the prompt information) is often displayed to the user after being obtained. When the user clicks and selects the rewriting information, the situation that the query result information corresponding to the rewriting information cannot be acquired due to the fact that the rewriting information does not exist or is wrong due to reasons such as untimely updating of the information base and the like is possible, and the use experience of the user and the efficiency of acquiring the information are seriously influenced.
Therefore, the execution subject of the present application can inquire about the validity of the rewriting information after obtaining the rewriting information. The validity may be used to represent whether the rewritten information exists in the information base corresponding to the information to be queried.
in some optional implementation manners of this embodiment, the querying the validity of the rewriting information may include the following steps:
Firstly, extracting the characteristic words of the rewriting information to obtain at least one second characteristic word corresponding to the rewriting information.
in order to verify the validity of the rewritten information, the executing body may perform feature word extraction on the rewritten information again to obtain at least one second feature word corresponding to the rewritten information. As can be seen from the above description, the rewriting information is obtained by modifying the information to be queried through the first feature word set. And the obvious error information in the information to be queried can be modified through the first feature word set. When at least one second characteristic word is extracted from the rewriting information again, the second characteristic word at this time is extracted for searching the query result information corresponding to the information to be queried. For example, the information to be queried may be: "XX very big row of XX college". The rewrite information obtained after performing the body processing may be: "XX Bank of XX building". When at least one second feature word is extracted from the rewriting information again, the at least one second feature word may be: "XX building" and "XX bank," rather than the first featured words such as "XX," large house, "and" very bank.
and a second step of determining the rewrite information to be valid in response to the presence of a piece of information corresponding to the at least one second feature word.
when the execution main body inquires by rewriting all the second feature words of the information and can inquire the information corresponding to all the second feature words, the execution main body explains that the actual information corresponding to the rewritten information exists and the rewritten information is effective. In this case, the query for all the second feature words may be a query from an information base, or may be a real-time online query. Generally, the query can be firstly made from the information base, and then the real-time online query is made when the information base is not. Therefore, the effectiveness of rewriting the information is ensured, and the accuracy and the effectiveness of the user for obtaining the information are improved.
Step 203, responding to the existence of at least one piece of rewriting information as effective, displaying the effective at least one piece of rewriting information.
When there is at least one piece of rewriting information valid, the execution body may display the valid rewriting information for the user to acquire. When all the rewriting information is invalid, the rewriting information may not be displayed. Therefore, the effectiveness of the user for acquiring the corresponding query result information by rewriting the information is improved. For example, the user inputs information to be queried in an information search box of an electronic map. When the execution main body performs data processing on the information to be inquired to obtain effective rewriting information, the effective rewriting information can be displayed at the lower part of the display interface of the electronic map; and when the effective rewriting information does not exist, the execution body does not display the ineffective rewriting information on the display interface of the electronic map.
In some optional implementations of this embodiment, the method may further include:
Firstly, extracting feature words of the information to be queried to obtain at least one third feature word corresponding to the information to be queried.
In general, in order to obtain the full information as much as possible, the execution main body may directly query the corresponding query result information according to the information to be queried, in addition to obtaining the rewriting information. At this time, the execution subject may extract at least one third feature word from the information to be queried.
and secondly, inquiring at least one piece of second inquiry result information corresponding to the third characteristic word in the information base for the third characteristic word in the at least one third characteristic word.
and after the third characteristic word is obtained, the execution main body directly carries out information query through the third characteristic word to obtain related second query result information. Therefore, the corresponding query result information can be obtained through the rewriting information and the information to be queried respectively, and the effectiveness of obtaining the information is improved.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for displaying information according to the present embodiment. In the application scenario of fig. 3, a user inputs information to be queried to a terminal device: "XX very big row of XX college". The terminal equipment rewrites the information to be inquired to obtain rewritten information: "XX Bank of XX building". Then, the validity of the rewriting information is inquired, and the rewriting information is found to be valid. And finally, the terminal equipment displays the rewriting information at the lower part of the interface so as to be convenient for a user to select.
The method provided by the above embodiment of the present application firstly rewrites the above information to be queried to obtain at least one piece of rewriting information; then inquiring the validity of the rewriting information, wherein the validity is used for representing whether the rewriting information exists in an information base corresponding to the information to be inquired; and finally displaying the valid at least one piece of rewriting information. According to the technical scheme, before the rewriting information is displayed to the user, the validity of the rewriting information is verified, and the rewriting information is displayed only when the rewriting information is valid, so that the validity of the information acquired by the user through the rewriting information is improved.
with further reference to fig. 4, a flow 400 of yet another embodiment of a method for displaying information is shown. The process 400 of the method for displaying information includes the steps of:
Step 401, in response to detecting the information to be queried, rewriting the information to be queried to obtain at least one piece of rewriting information.
The specific content of step 401 is the same as that of step 201, and is not described in detail here.
Step 402, inquiring about the validity of the rewriting information in the at least one piece of rewriting information.
The specific content of step 402 is the same as step 202, and is not described in detail here.
Step 403, in response to the existence of the at least one piece of rewriting information as valid, displaying the valid at least one piece of rewriting information.
The specific content of step 403 is the same as that of step 203, and is not described in detail here.
in response to detecting the query signal corresponding to the rewritten information in the valid at least one rewritten information, at least one piece of first query result information corresponding to the rewritten information is displayed, step 404.
after the rewriting information is displayed, the user can select to view the query result information corresponding to the rewriting information by clicking the rewriting information or the like. At this time, the execution main body may further inquire the first inquiry result information corresponding to the rewriting information. Thus, the rewriting information provided to the user can be effective, and the effectiveness of the user in acquiring the information is provided.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for displaying information, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable in various electronic devices.
As shown in fig. 5, the apparatus 500 for displaying information of the present embodiment may include: a rewriting information acquisition unit 501, a validity inquiry unit 502, and an information display unit 503. The rewriting information obtaining unit 501, in response to detecting information to be queried, is configured to rewrite the information to be queried to obtain at least one piece of rewriting information; a validity inquiry unit 502 configured to inquire, for rewritten information in the at least one piece of rewritten information, validity of the rewritten information, the validity being used for indicating whether the rewritten information exists in an information base corresponding to the information to be inquired; the information display unit 503 is configured to display at least one piece of rewriting information that is valid in response to the existence of the at least one piece of rewriting information being valid.
in some optional implementation manners of this embodiment, the rewritten information is information obtained by replacing at least one first feature word in the information to be queried.
In some optional implementation manners of this embodiment, the rewriting information obtaining unit 501 may include: a first feature word obtaining sub-unit (not shown in the figure), a target feature word querying sub-unit (not shown in the figure), and a rewriting information obtaining sub-unit (not shown in the figure). The first feature word acquisition subunit is configured to perform feature word extraction on the information to be queried to obtain at least one first feature word corresponding to the information to be queried; a target feature word query subunit, configured to, in response to that a first feature word in the at least one first feature word does not belong to a first feature word set, query a target feature word in the first feature word set that matches the first feature word, where the first feature word set and the first feature word belong to the same information category, and the target feature word is a feature word in the first feature word set that is similar to the semantic of the first feature word; the rewriting information acquisition subunit is configured to replace a first feature word corresponding to the target feature word in the information to be queried by the target feature word to obtain rewriting information corresponding to the information to be queried.
in some optional implementations of this embodiment, the validity query unit 502 may include: a second feature word obtaining subunit (not shown in the figure) and a validity query subunit (not shown in the figure). The second characteristic word obtaining subunit is configured to perform characteristic word extraction on the rewriting information to obtain at least one second characteristic word corresponding to the rewriting information; and the validity inquiry subunit is configured to determine that the rewriting information is valid in response to the existence of information corresponding to the at least one second characteristic word.
In some optional implementations of the present embodiment, the apparatus 500 for displaying information may further include: a first inquiry result information display unit (not shown in the figure) configured to display at least one piece of first inquiry result information corresponding to rewrite information in response to detection of an inquiry signal corresponding to the rewrite information in the valid at least one piece of rewrite information.
In some optional implementations of the present embodiment, the apparatus 500 for displaying information may further include: a third characteristic word obtaining unit (not shown in the figure) and a second query result information display unit (not shown in the figure). The third feature word acquisition unit is configured to perform feature word extraction on the information to be queried to obtain at least one third feature word corresponding to the information to be queried; and the second query result information display unit is used for querying at least one piece of second query result information corresponding to the third characteristic word in the at least one third characteristic word.
The present embodiment further provides a server, including: one or more processors; a memory having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to perform the above-described method for displaying information.
the present embodiment also provides a computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the above-mentioned method for displaying information.
referring now to FIG. 6, a block diagram of a computer system 600 suitable for use in implementing a server (e.g., server 105 of FIG. 1) of an embodiment of the present application is shown. The server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a rewriting information acquisition unit, a validity inquiry unit, and an information display unit. Here, the names of these units do not constitute a limitation of the unit itself in some cases, and for example, the information display unit may also be described as "a unit for displaying rewriting information".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: in response to the detection of the information to be inquired, rewriting the information to be inquired to obtain at least one piece of rewriting information; inquiring the validity of the rewriting information in the at least one piece of rewriting information, wherein the validity is used for representing whether the rewriting information exists in an information base corresponding to the information to be inquired; in response to there being at least one piece of overwrite information valid, displaying the valid at least one piece of overwrite information.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Claims (14)
1. A method for displaying information, comprising:
In response to the detection of the information to be queried, rewriting the information to be queried to obtain at least one piece of rewriting information, wherein the rewriting information is obtained by replacing a corresponding entry in the information to be queried according to an existing entry in an information base;
inquiring the validity of the rewriting information in the at least one piece of rewriting information, wherein the validity is used for representing whether the rewriting information exists in an information base corresponding to the information to be inquired;
In response to there being at least one piece of overwrite information valid, displaying the valid at least one piece of overwrite information.
2. the method according to claim 1, wherein the rewritten information is information obtained by replacing at least one first feature word in the information to be queried.
3. The method of claim 2, wherein the rewriting the information to be queried to obtain at least one piece of rewriting information includes:
Extracting feature words of the information to be queried to obtain at least one first feature word corresponding to the information to be queried;
Responding to that a first feature word in the at least one first feature word does not belong to a first feature word set, and querying a target feature word matched with the first feature word in the first feature word set, wherein the first feature word set and the first feature word belong to the same information category, and the target feature word is a feature word in the first feature word set, which is similar to the semantic of the first feature word;
And replacing a first characteristic word corresponding to the target characteristic word in the information to be queried by the target characteristic word to obtain rewriting information corresponding to the information to be queried.
4. The method of claim 2, wherein said querying the validity of the rewritten information comprises:
Extracting the characteristic words of the rewriting information to obtain at least one second characteristic word corresponding to the rewriting information;
in response to the presence of a piece of information corresponding to the at least one second feature word, determining the rewrite information to be valid.
5. The method of claim 1, wherein the method further comprises:
And in response to detecting the inquiry signal corresponding to the rewritten information in the valid at least one piece of rewritten information, displaying at least one piece of first inquiry result information corresponding to the rewritten information.
6. The method of any of claims 1 to 5, wherein the method further comprises:
Extracting feature words of the information to be queried to obtain at least one third feature word corresponding to the information to be queried;
And for a third feature word in the at least one third feature word, querying at least one piece of second query result information corresponding to the third feature word.
7. an apparatus for displaying information, comprising:
The rewriting information acquisition unit is used for responding to the detection of the information to be inquired and is configured to rewrite the information to be inquired to obtain at least one piece of rewriting information, and the rewriting information is obtained by replacing corresponding entries in the information to be inquired according to the existing entries in the information base;
The validity inquiry unit is used for inquiring the validity of the rewriting information in the at least one piece of rewriting information, wherein the validity is used for representing whether the rewriting information exists in an information base corresponding to the information to be inquired;
An information display unit configured to display the valid at least one piece of rewriting information in response to the existence of the at least one piece of rewriting information being valid.
8. The device of claim 7, wherein the rewritten information is information obtained by replacing at least one first feature word in the information to be queried.
9. the apparatus according to claim 8, wherein the rewriting information acquisition unit includes:
The first feature word acquisition subunit is configured to perform feature word extraction on the information to be queried to obtain at least one first feature word corresponding to the information to be queried;
A target feature word query subunit, configured to, in response to that a first feature word in the at least one first feature word does not belong to a first feature word set, query a target feature word in the first feature word set that matches the first feature word, where the first feature word set and the first feature word belong to the same information category, and the target feature word is a feature word in the first feature word set that is similar to the semantic of the first feature word;
And the rewriting information acquisition subunit is configured to replace a first feature word corresponding to the target feature word in the information to be queried by the target feature word to obtain rewriting information corresponding to the information to be queried.
10. The apparatus of claim 8, wherein the validity query unit comprises:
The second characteristic word acquisition subunit is configured to perform characteristic word extraction on the rewriting information to obtain at least one second characteristic word corresponding to the rewriting information;
A validity query subunit, responsive to the presence of a piece of information corresponding to the at least one second feature word, configured to determine that the rewritten information is valid.
11. The apparatus of claim 7, wherein the apparatus further comprises:
And a first inquiry result information display unit configured to display at least one piece of first inquiry result information corresponding to the rewrite information in response to detection of an inquiry signal corresponding to the rewrite information in the valid at least one piece of rewrite information.
12. the apparatus of any of claims 7 to 11, wherein the apparatus further comprises:
The third feature word acquisition unit is configured to extract feature words of the information to be queried to obtain at least one third feature word corresponding to the information to be queried;
And the second query result information display unit is used for querying at least one piece of second query result information corresponding to the third characteristic word in the at least one third characteristic word.
13. a server, comprising:
One or more processors;
A memory having one or more programs stored thereon,
The one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
14. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811373599.8A CN109508418B (en) | 2018-11-19 | 2018-11-19 | Method and device for displaying information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811373599.8A CN109508418B (en) | 2018-11-19 | 2018-11-19 | Method and device for displaying information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109508418A CN109508418A (en) | 2019-03-22 |
CN109508418B true CN109508418B (en) | 2019-12-13 |
Family
ID=65748960
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811373599.8A Active CN109508418B (en) | 2018-11-19 | 2018-11-19 | Method and device for displaying information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109508418B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010141429A1 (en) * | 2009-06-01 | 2010-12-09 | Sean Christopher Timm | Providing suggested web search queries based on click data of stored search queries |
CN103092919A (en) * | 2012-12-24 | 2013-05-08 | 北京百度网讯科技有限公司 | Search guide method and search engine |
CN104036004A (en) * | 2014-06-17 | 2014-09-10 | 百度在线网络技术(北京)有限公司 | Search error correction method and search error correction device |
-
2018
- 2018-11-19 CN CN201811373599.8A patent/CN109508418B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010141429A1 (en) * | 2009-06-01 | 2010-12-09 | Sean Christopher Timm | Providing suggested web search queries based on click data of stored search queries |
CN103092919A (en) * | 2012-12-24 | 2013-05-08 | 北京百度网讯科技有限公司 | Search guide method and search engine |
CN104036004A (en) * | 2014-06-17 | 2014-09-10 | 百度在线网络技术(北京)有限公司 | Search error correction method and search error correction device |
Also Published As
Publication number | Publication date |
---|---|
CN109508418A (en) | 2019-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109947788B (en) | Data query method and device | |
US11038975B2 (en) | Information pushing method and device | |
CN110069698B (en) | Information pushing method and device | |
CN108536867B (en) | Method and apparatus for generating information | |
CN109359194B (en) | Method and apparatus for predicting information categories | |
CN108491387B (en) | Method and apparatus for outputting information | |
CN111522927A (en) | Entity query method and device based on knowledge graph | |
CN109409419B (en) | Method and apparatus for processing data | |
CN110059172B (en) | Method and device for recommending answers based on natural language understanding | |
CN111324786A (en) | Method and device for processing consultation problem information | |
CN107908662B (en) | Method and device for realizing search system | |
CN110134869B (en) | Information pushing method, device, equipment and storage medium | |
CN107291835B (en) | Search term recommendation method and device | |
CN110889000B (en) | Method and apparatus for outputting information | |
CN108667875B (en) | Information updating method and device | |
CN108011936B (en) | Method and device for pushing information | |
CN107291923B (en) | Information processing method and device | |
CN113590756A (en) | Information sequence generation method and device, terminal equipment and computer readable medium | |
CN109710634B (en) | Method and device for generating information | |
KR102151322B1 (en) | Information push method and device | |
CN109508418B (en) | Method and device for displaying information | |
CN107622766B (en) | Method and apparatus for searching information | |
CN110881056A (en) | Method and device for pushing information | |
CN113360590B (en) | Method and device for updating interest point information, electronic equipment and storage medium | |
CN110647623B (en) | Method and device for updating information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |