Disclosure of Invention
One of the purposes of the invention is to provide an intelligent retrieval method based on experience knowledge, which can improve the retrieval speed and efficiency, and also can improve the precision ratio and the recall ratio, so that the retrieval result is more targeted and more accurate.
The technical scheme adopted by the invention to solve the technical problems is as follows: an intelligent retrieval method based on experience knowledge comprises the following steps: a user inputs and sends a retrieval request from a client; the receiving end determines whether to call history information and records; the receiving end divides the retrieval request; the receiving end analyzes the user retrieval purpose of the client according to experience; the receiving end carries out retrieval; and displaying the retrieval results in sequence from high to low according to the degree of correlation.
According to another aspect of the present invention, after the user inputs and transmits the retrieval request from the client in step S1, step S11 is further performed: and the user interface in the receiving end interacts with the user of the client and acquires user identification information.
According to another aspect of the present invention, the step S11 of the user interface in the receiving end interacting with the user of the client and acquiring the user identification information further includes: in step S111, the receiving end sends a query to the user of the client through the user interface: whether a user of the client performs retrieval request interaction with a receiving end before the retrieval, if so, executing step S112, otherwise, executing step S113; in step S113, directly obtaining the identification information of the user, and returning a first retrieval message to the receiving end; in step S112, the identification information of the user is directly obtained, and a message that is not retrieved for the first time is returned to the receiving end.
According to another aspect of the present invention, the receiving end determining whether to call the history information and record further comprises the steps of, in step S2: step S21, if the receiving end determines whether to call history information and record according to the message whether to search for the first time returned by the user interaction, then step S23 is executed; step S22, if the receiving end analyzes the user' S mark information of the client end directly according to the attached information of the searching request, and determines whether to call the history information and record, then step S24 is executed; step S23, if not, calling history information and record, otherwise, not calling history information and record; step S24, if the identification information matches the history information and the entries in the record, it is called, otherwise it is not called.
According to another aspect of the present invention, in step S3, the receiver-side split search request further includes: dividing a search request S into one or more sub-requests SiI is a positive integer, where S ═ S1,……,si,……,sPAnd P is the number of the sub-requests and is a positive integer.
According to another aspect of the present invention, in step S4, the analyzing the user retrieval purpose of the client based on experience by the receiving end further includes: step S41, calling historical information and records by a calling module in the receiving end; step S42, the segmentation and classification module in the receiving end performs segmentation and classification on the calling historical information and the source data in the record to obtain the frequency of segmentation and the type of the source data; step S43, the destination analysis module in the receiving end analyzes one or more sub-requests S in the retrieval request S according to the history information and the record, the frequency of word segmentation and the type of the source dataiCalculating a target value, wherein the target value is an evaluation quantitative value of which the sub-request belongs to a certain type; step S44, the retrieval module in the receiving end matches the sub-request with the source data, and counts the correlation degree of the single source data according to the matching frequency of the sub-request in different parts of the unit source data, the destination value and the type of the source data.
According to another aspect of the present invention, the calculation manner in step S43 is: first, each sub-request s is calculatediThen calculates all sub-requests siAfter which each sub-request s is judgediIf the final sum is larger than a second threshold value, selecting the highest sum as a target and adding a label.
According to another aspect of the present invention, the receiving end performs a search for further packets in step S5Comprises the following steps: step S51, based on the sub-request SiAnd the semantic extension module is used for effectively extending.
According to another aspect of the present invention, the step S51 of performing effective expansion by the semantic expansion module further comprises: step S511: first module of semantic extension module analyzes sub-request siDetermining semantics of the user request, and associating the semantics with the determined concept or object; step S512, the semantic expansion module sends a call request to the synonym/near-synonym semantic database, wherein the call request comprises a sub-request SiThe information of (a); step S513, the synonym/near-synonym meaning database returns a calling response after traversing; step S514, the semantic expansion module receives the calling response and sends the calling response to the receiving end; in addition, sub-requests s can be added as needediAnd/or its upper and lower concepts.
According to another aspect of the present invention, in step S6, the search results are displayed in order from high to low according to the degree of correlation. And carrying out statistical sorting according to the correlation degree of the single source data, and sequentially displaying the retrieval results from high to low according to the correlation degree.
Detailed Description
In the following description, reference is made to the accompanying drawings that show, by way of illustration, several specific embodiments. It will be understood that: other embodiments are contemplated and may be made without departing from the scope or spirit of the present disclosure. The following detailed description is, therefore, not to be taken in a limiting sense.
Fig. 1 illustrates a flowchart of an intelligent retrieval method based on empirical knowledge, according to an exemplary embodiment of the present invention. The intelligent retrieval method based on experience knowledge comprises the following steps:
in step S1, the user inputs and transmits a retrieval request from the client;
in step S2, the reception end determines whether to call history information and record;
in step S3, the receiving end segments the search request;
in step S4, the receiving end analyzes the user retrieval purpose of the client based on experience;
in step S5, the receiving end performs a search; and
in step S6, the search results are displayed in order from high to low according to the degree of correlation.
Preferably, in step S1, the client is a mobile terminal, which communicates with the receiving end through a wireless link and performs retrieval. Alternatively, in step S1, the client is a computer, including but not limited to a desktop, a laptop, a portable notebook, a netbook, a tablet computer, etc., which communicates with the receiving end through a wired link or a wireless link and performs retrieval.
Preferably, in step S1, after the user inputs and transmits the retrieval request from the client, step S11 is further performed: and the user interface in the receiving end interacts with the user of the client and acquires user identification information. Preferably, the step S11 of the receiving end interacting with the user of the client and acquiring the user identification information further includes: in step S111, the receiving end sends a query to the user of the client through the user interface: whether a user of the client performs retrieval request interaction with a receiving end before the retrieval, if so, executing step S112, otherwise, executing step S113; in step S113, directly obtaining the identification information of the user, and returning a first retrieval message to the receiving end; in step S112, the identification information of the user is directly obtained, and a message that is not retrieved for the first time is returned to the receiving end.
Specifically, the identification information described herein may be any information that can identify characteristics/attributes of the user of the client; preferably, the identification information may be, for example, an IP address, a fixed/mobile phone number, a resolved geographical location, a network access registration account, etc.
Preferably, in step S2, the receiving end determining whether to call history information and record further comprises the steps of: step S21, if the receiving end determines whether to call history information and record according to the message whether to search for the first time returned by the user interaction, then step S23 is executed; step S22, if the receiving end analyzes the user' S mark information of the client end directly according to the attached information of the searching request, and determines whether to call the history information and record, then step S24 is executed; step S23, if not, calling history information and record, otherwise, not calling history information and record; step S24, if the identification information matches the history information and the entries in the record, it is called, otherwise it is not called.
Preferably, in step S3, the receiver-side split search request further includes: dividing a search request S into one or more sub-requests SiI is a positive integer, where s is the smallest retrievable unit when the retrieval request isiIs one, otherwise is a plurality, where S ═ { S ═ S1,……,si,……,sPAnd P is the number of the sub-requests and is a positive integer.
Preferably, in step S4, the receiving end further includes, according to the user search purpose of the empirical analysis client:
step S41, calling historical information and records by a calling module in the receiving end;
step S42, the segmentation and classification module in the receiving end performs segmentation and classification on the calling historical information and the source data in the record to obtain the frequency of segmentation and the type of the source data;
step S43, the destination analysis module in the receiving end analyzes one or more sub-requests S in the retrieval request S according to the history information and the record, the frequency of word segmentation and the type of the source dataiCalculating a target value; preferably, the calculation method is as follows: first, each sub-request s is calculatediThen calculates all sub-requests siAfter which each sub-request s is judgediIf the final sum is larger than a second threshold value, selecting the highest sum as a target and adding a label. Example (b)For example, if the type of the source data obtained according to the foregoing steps is the type of the photovoltaic technology, the enterprise, the taiwan, and the like; if the input is the mapping management display, the sub-requests are the mapping management and the display, each has a certain target value, and the mapping management and the display belong to the same category, the target values are added, and finally after settlement, the target value of the type of the photoelectric technology is found to be the highest, so that the mapping management display is selected as the target and the corresponding label is added.
Step S44, the retrieval module in the receiving end matches the sub-request with the source data, and counts the correlation degree of the single source data according to the matching frequency of the sub-request in different parts of the unit source data, the destination value and the type of the source data.
Preferably, in step S5, the receiving end performing retrieval further includes: step S51, based on the sub-request SiAnd the semantic extension module is used for effectively extending.
Preferably, the step S51 of performing effective expansion by the semantic expansion module further includes: step S511: first module of semantic extension module analyzes sub-request siDetermining semantics of the user request, and associating the semantics with the determined concept or object; step S512, the semantic expansion module sends a call request to the synonym/near-synonym semantic database, wherein the call request comprises a sub-request SiThe information of (a); step S513, the synonym/near-synonym meaning database returns a calling response after traversing; step S514, the semantic expansion module receives the call response and sends the call response to the receiving end. Preferably, after receiving the call response and before sending the call response to the receiving end, the semantic extension module sends the sub-request s through the second module of the semantic extension moduleiAnd expanding the words by using a plurality of language expression modes, and packaging and sending the words and the call response sent by the synonym/near-synonym meaning database to a receiving end. Preferably, after receiving the call response and before sending the call response to the receiving end, the semantic extension module sends the sub-request s through a third module of the semantic extension moduleiExpanded by upper concepts and lower concepts, and packaged and sent to a receiving end together with the call response (and various language expressions if necessary) sent by the synonym/near-synonym meaning database.
Preferably, in step S6, the search results are displayed in order from high to low according to the degree of correlation. And carrying out statistical sorting according to the correlation degree of the single source data, and sequentially displaying the retrieval results from high to low according to the correlation degree.
In conclusion, in the technical scheme of the invention, by adopting the intelligent retrieval method based on the experience knowledge, the retrieval speed and efficiency can be improved, and the precision ratio and the recall ratio can also be improved, so that the retrieval result is more targeted and more accurate.
It will be understood that: the examples and embodiments of the invention may be implemented in hardware, software, or a combination of hardware and software. As mentioned above, any body performing such a method may be stored in the form of volatile or non-volatile storage, for example a storage device like a ROM, whether erasable or rewritable or not, or in the form of memory, such as for example a RAM, a memory chip, a device or an integrated circuit or on an optically or magnetically readable medium such as for example a CD, a DVD, a disk or a tape. It will be understood that: storage devices and storage media are examples of machine-readable storage suitable for storing one or more programs that, when executed, implement examples of the present invention. Examples of the present invention may be conveyed electronically via any medium, such as a communication signal carried over a wired or wireless connection, and the examples contain the same where appropriate.
It should be noted that: the invention solves the technical problems of improving the retrieval speed and efficiency, improving the precision ratio and the recall ratio and enabling the retrieval result to be more targeted and accurate, adopts the technical means which can be understood by technical personnel in the technical field of computers according to the teaching of the specification after reading the specification and obtains the beneficial technical effects of improving the retrieval speed and efficiency, improving the precision ratio and the recall ratio and enabling the retrieval result to be more targeted and accurate, so the scheme claimed in the appended claims belongs to the technical scheme in the meaning of patent law. Furthermore, the solution claimed in the appended claims has utility since it can be manufactured or used in industry.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Unless expressly stated otherwise, each feature disclosed is one example only of a generic series of equivalent or similar features. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.