Literary work searching method and system

Through real-time search and data link construction technology, it solves the problem of redundant choices when users search for literary works, realizes a method of quickly finding target works, and improves search efficiency and experience.

CN118535689AActive Publication Date: 2024-08-23JIANGXI YUANJU NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410498400.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-24
Publication Date
2024-08-23
Estimated Expiration
2044-04-24

AI Technical Summary

Technical Problem

In the existing technology, after a user needs to enter relevant keywords when searching for literary works, multiple related works are likely to appear, causing the user to need to make further selections, which increases search time and reduces search efficiency and user experience.

Method used

By receiving the target keywords input by the user in real time, a search is performed and relevant original literary sentences are pushed. After the user selects, a second search is performed. A search data chain is constructed by combining the keywords, sentences and authors, and identification is added to search for the unique target. literary works.

Benefits of technology

It achieves a quick and accurate search for the only target literary works, reduces user search time, and improves search efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535689A
    Figure CN118535689A
Patent Text Reader

Abstract

The invention provides a literature work search method and system, and the method comprises the steps: carrying out the first search in a preset literature database according to a target keyword, and pushing a plurality of original literature statements containing the target keyword to a user in real time; detecting a target literature statement selected by the user from the plurality of original literature statements in real time, and performing secondary search in a preset literature database according to the target literature statement so as to push a plurality of original literature authors writing the target literature statement to the user in real time; detecting a target literature author selected by the user from the plurality of original literature authors in real time, and constructing a corresponding search data chain according to the target keyword, the target literature statement and the target literature author in real time based on a preset rule; and adding a corresponding target identifier to the search data link, and searching a corresponding target literature work in real time in a preset literature database according to the search data link based on the target identifier. The work searching time of the user can be saved, and the searching efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a literary work search method and system. Background Art

[0002] With the development of the times and the advancement of science and technology, computers and Internet technology have become popular in people's daily lives, allowing people to study, entertain, and shop on the Internet, greatly facilitating people's lives.

[0003] Among them, in order to facilitate users' online reading, most of the existing literary works have corresponding electronic versions that can be read online on computers, and when the user needs to read a specific text work, the current user only needs to enter the required keywords in the corresponding search box to further retrieve the corresponding literary works.

[0004] However, in the actual search process of users, when users enter keywords related to the literary works they need, multiple related literary works are likely to appear in the corresponding search results, causing the current user to further select the literary work he or she ultimately needs from the current multiple related literary works, thereby correspondingly increasing the time it takes for users to search for literary works, correspondingly reducing the search efficiency for literary works, and at the same time reducing the user's usage experience. Summary of the invention

[0005] Based on this, the purpose of the present invention is to provide a literary work search method and system to solve the problem that the prior art requires users to spend a long time searching for the literary works they need, which correspondingly reduces the efficiency of literary work search.

[0006] The first aspect of the embodiment of the present invention proposes:

[0007] A method for searching literary works, wherein the method comprises:

[0008] When receiving a target keyword input by a user in real time, performing a search in a preset literature database according to the target keyword, and pushing a number of original literature sentences containing the target keyword to the user in real time;

[0009] Detecting in real time a target literary sentence selected by the user from among the plurality of original literary sentences, and performing a secondary search in the preset literature database according to the target literary sentence, so as to push to the user in real time a plurality of original literary authors who have written the target literary sentence;

[0010] Detecting in real time the target literature author selected by the user from the plurality of original literature authors, and constructing a corresponding search data chain in real time according to the target keyword, the target literature sentence and the target literature author based on a preset rule;

[0011] A corresponding target identifier is added to the search data chain, and based on the target identifier, a corresponding target literary work is searched in real time in the preset literature database according to the search data chain, so as to push the target literary work to the user.

[0012] The beneficial effects of the present invention are: by detecting the keywords input by the user in real time, and based on the keywords, first searching for a number of original literary sentences that are suitable for the keywords, further, searching for a number of corresponding literary authors again according to the target literary sentences selected by the user, and finally searching for a unique target literary work according to the literary sentences, literary authors and keywords selected in sequence by the user, thereby eliminating the need for users to spend a long time searching for literary works, thereby improving the search efficiency of literary works.

[0013] Furthermore, the step of searching a preset literature database according to the target keyword and pushing a number of original literature sentences containing the target keyword to the user in real time includes:

[0014] When the target keyword is acquired in real time, a target character corresponding to the target keyword is detected in real time, and the target character is converted into a corresponding character code sequence by a DTW algorithm, wherein the character code sequence is composed of a number of digits;

[0015] Performing a full scan on the character code sequence to detect the start code and the end code corresponding to the character code sequence in real time;

[0016] A search is performed in the preset literature database according to the start code and the end code, and a number of the original literature sentences are pushed to the user in real time.

[0017] Furthermore, the step of searching the preset literature database according to the start code and the end code and pushing a number of the original literature sentences to the user in real time includes:

[0018] When the preset literature database is acquired, a plurality of original literature works contained in the preset literature database are detected in real time, and a character code library corresponding to each of the original literature works is matched in real time;

[0019] Creating a target two-dimensional coordinate system in real time, wherein the abscissa of the target two-dimensional coordinate system is the start code and the ordinate is the end code;

[0020] A character code area corresponding to the character code library of each original literary work is created in real time in the target two-dimensional coordinate system, and a search is performed based on the character code area to push a number of the original literary sentences to the user in real time. The character code area is an area with certain rules and a certain range.

[0021] Furthermore, the step of performing a search based on the character code region to push a number of the original literary sentences to the user in real time includes:

[0022] When each character code region is acquired in real time, a corresponding search point is generated in real time according to the start code and the end code;

[0023] Mapping the search point to the inside of the target two-dimensional coordinate system, and detecting in real time a number of target character code areas where the search point falls in the target two-dimensional coordinate system;

[0024] A plurality of the original literary sentences are pushed to the user in real time according to a plurality of the target character code regions, and the search point is unique.

[0025] Furthermore, the step of pushing a plurality of the original literary sentences to the user in real time according to the plurality of the target character code regions comprises:

[0026] When a plurality of the target character code regions are detected in real time, a target sentence code including the start code and the end code is detected in real time in the original literary work corresponding to each of the target character code regions;

[0027] Each of the target sentence codes is input into a preset Transformer encoder, and each of the target sentence codes is encoded into each of the original literary sentences through the Transformer encoder, and each of the original literary sentences is unique.

[0028] Furthermore, the method further comprises:

[0029] When it is detected in real time that the user opens the target literary work, a first target moment generated when the user opens the target literary work is recorded in real time;

[0030] When it is detected in real time that the user closes the target literary work, the second target moment generated when the user closes the target literary work is recorded in real time, and the reading progress of the user between the first target moment and the second target moment is correspondingly detected;

[0031] A corresponding reading data chain is constructed in real time according to the first target time, the second target time and the reading progress, and a corresponding reading report is generated in real time according to the reading data chain, so as to send the reading report to the mobile terminal of the user in real time.

[0032] Furthermore, the method further comprises:

[0033] When the reading data chain is acquired in real time, a number of target numbers contained in the reading data chain are extracted in real time;

[0034] A number of the target numbers are randomly arranged and combined to generate a number of target sequences, and a target sequence is randomly selected as the encryption key of the target literary work.

[0035] The second aspect of the embodiment of the present invention proposes:

[0036] A literary work search system, wherein the system comprises:

[0037] A first search module is used for, when receiving a target keyword input by a user in real time, performing a search in a preset literature database according to the target keyword, and pushing a number of original literature sentences containing the target keyword to the user in real time;

[0038] A second search module is used to detect in real time a target literary sentence selected by the user from the plurality of original literary sentences, and to perform a secondary search in the preset literature database according to the target literary sentence, so as to push to the user in real time a plurality of original literary authors who have written the target literary sentence;

[0039] A processing module, used for detecting in real time the target literature author selected by the user from the plurality of original literature authors, and constructing a corresponding search data chain in real time according to the target keyword, the target literature sentence and the target literature author based on a preset rule;

[0040] The push module is used to add a corresponding target identifier to the search data chain, and based on the target identifier, search for the corresponding target literary work in the preset literature database in real time according to the search data chain, so as to push the target literary work to the user.

[0041] Furthermore, the first search module is specifically used for:

[0042] When the target keyword is acquired in real time, a target character corresponding to the target keyword is detected in real time, and the target character is converted into a corresponding character code sequence by a DTW algorithm, wherein the character code sequence is composed of a number of digits;

[0043] Performing a full scan on the character code sequence to detect the start code and the end code corresponding to the character code sequence in real time;

[0044] A search is performed in the preset literature database according to the start code and the end code, and a number of the original literature sentences are pushed to the user in real time.

[0045] Furthermore, the first search module is also specifically used for:

[0046] When the preset literature database is acquired, a plurality of original literature works contained in the preset literature database are detected in real time, and a character code library corresponding to each of the original literature works is matched in real time;

[0047] Creating a target two-dimensional coordinate system in real time, wherein the abscissa of the target two-dimensional coordinate system is the start code and the ordinate is the end code;

[0048] A character code area corresponding to the character code library of each original literary work is created in real time in the target two-dimensional coordinate system, and a search is performed based on the character code area to push a number of the original literary sentences to the user in real time. The character code area is an area with certain rules and a certain range.

[0049] Furthermore, the first search module is also specifically used for:

[0050] When each character code region is acquired in real time, a corresponding search point is generated in real time according to the start code and the end code;

[0051] Mapping the search point to the inside of the target two-dimensional coordinate system, and detecting in real time a number of target character code areas where the search point falls in the target two-dimensional coordinate system;

[0052] A plurality of the original literary sentences are pushed to the user in real time according to a plurality of the target character code regions, and the search point is unique.

[0053] Furthermore, the first search module is also specifically used for:

[0054] When a plurality of the target character code regions are detected in real time, a target sentence code including the start code and the end code is detected in real time in the original literary work corresponding to each of the target character code regions;

[0055] Each of the target sentence codes is input into a preset Transformer encoder, and each of the target sentence codes is encoded into each of the original literary sentences through the Transformer encoder, and each of the original literary sentences is unique.

[0056] Furthermore, the literary work search system further includes a detection module, which is specifically used to:

[0057] When it is detected in real time that the user opens the target literary work, a first target moment generated when the user opens the target literary work is recorded in real time;

[0058] When it is detected in real time that the user closes the target literary work, the second target moment generated when the user closes the target literary work is recorded in real time, and the reading progress of the user between the first target moment and the second target moment is correspondingly detected;

[0059] A corresponding reading data chain is constructed in real time according to the first target time, the second target time and the reading progress, and a corresponding reading report is generated in real time according to the reading data chain, so as to send the reading report to the mobile terminal of the user in real time.

[0060] Furthermore, the literary work search system further includes an encryption module, which is specifically used for:

[0061] When the reading data chain is acquired in real time, a number of target numbers contained in the reading data chain are extracted in real time;

[0062] A number of the target numbers are randomly arranged and combined to generate a number of target sequences, and a target sequence is randomly selected as the encryption key of the target literary work.

[0063] The third aspect of the embodiment of the present invention proposes:

[0064] A computer comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the literary work search method as described above when executing the computer program.

[0065] The fourth aspect of the embodiments of the present invention proposes:

[0066] A readable storage medium stores a computer program, wherein when the program is executed by a processor, the method for searching for literary works as described above is implemented.

[0067] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A flowchart of a method for searching for literary works provided by a first embodiment of the present invention;

[0069] Figure 2 This is a structural block diagram of a literary work search system provided in the sixth embodiment of the present invention.

[0070] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0071] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0072] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0073] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0074] See also Figure 1 , shown is the literary work search method provided by the first embodiment of the present invention. The literary work search method provided by this embodiment can ultimately search out a unique target literary work, thereby eliminating the need for users to spend a long time searching for literary works, thereby improving the search efficiency of literary works.

[0075] Specifically, this embodiment provides:

[0076] A method for searching literary works comprises the following steps:

[0077] Step S10, when a target keyword input by a user is received in real time, a search is performed in a preset literature database according to the target keyword, and a number of original literature sentences containing the target keyword are pushed to the user in real time;

[0078] Step S20, detecting in real time the target literary sentence selected by the user from the plurality of original literary sentences, and performing a secondary search in the preset literature database according to the target literary sentence, so as to push to the user in real time a plurality of original literary authors who have written the target literary sentence;

[0079] Step S30, detecting in real time the target literature author selected by the user from the plurality of original literature authors, and constructing a corresponding search data chain in real time according to the target keyword, the target literature sentence and the target literature author based on a preset rule;

[0080] Step S40, adding a corresponding target identifier to the search data chain, and searching for corresponding target literary works in real time in the preset literature database based on the target identifier and the search data chain, so as to push the target literary works to the user.

[0081] Specifically, in this embodiment, it should be noted that in order to quickly and accurately search for the literary works needed by the current user, it is necessary to first accurately obtain the needs of the current user. Based on this, after receiving the target keyword entered by the user in the search box in real time, it is necessary to first perform a corresponding search in real time in a pre-set literary database based on the text information contained in the target keyword. Specifically, the purpose of this search is only to determine in which literary works the current target keyword has appeared, and to push a number of original literary sentences containing the current target keyword to the current user in real time. Specifically, for ease of understanding, for example, the keywords entered by the user may be "sunset" and "seaside", and the corresponding original literary sentences searched out may be sentences such as "I once took a walk on the seaside full of sunsets". Based on this, the current user is further enabled to further select the sentence he needs from the several original literary sentences pushed out in real time, that is, to select the target literary sentence he needs in real time. Furthermore, a secondary search is performed in real time in the above-mentioned preset literary database based on the current target literary sentence, and a number of original literary authors who may have written the current target literary sentence are further searched out in real time. Based on this, the current user can further select the target literary author he needs.

[0082] Furthermore, after obtaining the required target keywords, target literary sentences and target literary authors respectively through the above steps, the required search data chain can be further created according to the set "keyword-literary sentence-author" arrangement format. At the same time, in order to be able to immediately perform subsequent search processing based on the current search data chain, it is necessary to further add a corresponding target identifier to the current search data chain, that is, a mark to speed up processing. Based on this, the corresponding target literary work can be finally searched in real time in the above-mentioned preset literary database according to the current search data chain. It should be pointed out that the target literary work finally searched out in real time is unique, which can greatly save the user's time in searching for literary works, correspondingly improving the user's search efficiency and improving the user experience.

[0083] Second embodiment

[0084] Furthermore, the step of searching a preset literature database according to the target keyword and pushing a number of original literature sentences containing the target keyword to the user in real time includes:

[0085] When the target keyword is acquired in real time, a target character corresponding to the target keyword is detected in real time, and the target character is converted into a corresponding character code sequence by a DTW algorithm, wherein the character code sequence is composed of a number of digits;

[0086] Performing a full scan on the character code sequence to detect the start code and the end code corresponding to the character code sequence in real time;

[0087] A search is performed in the preset literature database according to the start code and the end code, and a number of the original literature sentences are pushed to the user in real time.

[0088] Specifically, in this embodiment, it should be noted that after the target keyword input by the user is obtained in real time through the above steps, in order to quickly and accurately complete the above search, it is necessary to first detect the target character corresponding to the current target keyword, that is, to detect the specific text. Further, it should be pointed out that in the computer field, the essence of each text is composed of a series of digital codes, so that the computer only needs to recognize each digital code to display and recognize the corresponding text. Based on this, after the target character is obtained in real time, the currently obtained target character can be further converted into a corresponding character code sequence through the existing DTW (dynamic warping) algorithm, and the character code sequence is composed of one or more numbers.

[0089] Furthermore, the character code sequence currently converted in real time is fully scanned, and the start code and the end code corresponding to the current character code sequence can be directly scanned, and a subsequent search is completed in real time according to the current start code and the end code, so as to facilitate subsequent processing.

[0090] Furthermore, the step of searching the preset literature database according to the start code and the end code and pushing a number of the original literature sentences to the user in real time includes:

[0091] When the preset literature database is acquired, a plurality of original literature works contained in the preset literature database are detected in real time, and a character code library corresponding to each of the original literature works is matched in real time;

[0092] Creating a target two-dimensional coordinate system in real time, wherein the abscissa of the target two-dimensional coordinate system is the start code and the ordinate is the end code;

[0093] A character code area corresponding to the character code library of each original literary work is created in real time in the target two-dimensional coordinate system, and a search is performed based on the character code area to push a number of the original literary sentences to the user in real time. The character code area is an area with certain rules and a certain range.

[0094] Specifically, in this embodiment, it is also necessary to explain that after obtaining the required start code and end code through the above steps, in order to facilitate subsequent searches, it is necessary to further detect several original literary works contained in the above preset literature database. Similarly, it is possible to further match the complete character code library corresponding to each current original literary work in real time. Further, in order to improve the efficiency of subsequent searches, a target two-dimensional coordinate system can be first created at this time, and the target two-dimensional coordinate system is created with the above start code as the horizontal coordinate and the above end code as the vertical coordinate. On this basis, the character code area corresponding to the character code library of each current original literary work is further divided in real time in the current target two-dimensional coordinate system, and a search is completed in real time based on the current target two-dimensional coordinate system and each character code area. It should be pointed out that the character code area corresponding to the character code library of each original literary work will have overlapping parts, and the overlapping parts correspond to the existence of the same or similar literary sentences between different literary works. Based on this, further judgment is required to facilitate subsequent processing.

[0095] Third embodiment

[0096] Furthermore, the step of performing a search based on the character code region to push a number of the original literary sentences to the user in real time includes:

[0097] When each character code region is acquired in real time, a corresponding search point is generated in real time according to the start code and the end code;

[0098] Mapping the search point to the inside of the target two-dimensional coordinate system, and detecting in real time a number of target character code areas where the search point falls in the target two-dimensional coordinate system;

[0099] A plurality of the original literary sentences are pushed to the user in real time according to a plurality of the target character code regions, and the search point is unique.

[0100] In addition, in this embodiment, it should be noted that after a number of character code areas have been divided in the target two-dimensional coordinate system through the above steps, subsequent searches can be performed at this time. Specifically, a two-dimensional coordinate is created with the above-mentioned start code as the horizontal coordinate and the above-mentioned end code as the vertical coordinate, and the two-dimensional coordinate is immediately set as the required search point. Specifically, the search point represents the above-mentioned target keyword.

[0101] Furthermore, the search point is mapped to the interior of the above-mentioned target two-dimensional coordinate system according to the size of its internal specific numerical value. At the same time, several target character code areas where the current search point falls in the above-mentioned target two-dimensional coordinate system are synchronously detected, wherein each target character code area represents an original literary work. Based on this, several original literary works that are compatible with the target keywords currently input by the user can be preliminarily locked in for subsequent processing.

[0102] Furthermore, the step of pushing a plurality of the original literary sentences to the user in real time according to the plurality of the target character code regions comprises:

[0103] When a plurality of the target character code regions are detected in real time, a target sentence code including the start code and the end code is detected in real time in the original literary work corresponding to each of the target character code regions;

[0104] Each of the target sentence codes is input into a preset Transformer encoder, and each of the target sentence codes is encoded into each of the original literary sentences through the Transformer encoder, and each of the original literary sentences is unique.

[0105] In addition, in this embodiment, it is also necessary to explain that after the above steps are used to detect in real time the target character code areas where the above search point falls, the original literary works corresponding to each current target character code area can be reversely inferred, and the target sentence code containing the above start code and end code can be further detected in real time in each current original literary work, wherein each original literary work generates a target sentence code. Based on this, it is only necessary to further input each current target sentence code into the pre-set Transformer encoder, and at the same time, each target sentence code can be encoded and encoded into the required original literary sentence, and the current original literary sentences can be pushed to the current user for subsequent processing.

[0106] Fourth embodiment

[0107] Furthermore, the method further comprises:

[0108] When it is detected in real time that the user opens the target literary work, a first target moment generated when the user opens the target literary work is recorded in real time;

[0109] When it is detected in real time that the user closes the target literary work, the second target moment generated when the user closes the target literary work is recorded in real time, and the reading progress of the user between the first target moment and the second target moment is correspondingly detected;

[0110] A corresponding reading data chain is constructed in real time according to the first target time, the second target time and the reading progress, and a corresponding reading report is generated in real time according to the reading data chain, so as to send the reading report to the mobile terminal of the user in real time.

[0111] Among them, in this embodiment, it should be pointed out that after the user finally obtains the required target literary works through the above steps, in order to be able to control the current user's reading status and reading progress in real time, the first target moment generated by the current user opening the target literary work and the second target moment generated by closing the target literary work will be further recorded in real time. Based on this, within the time period of the current first target moment and the second target moment, the current user's reading progress can be further detected in real time. Based on this, a reading data chain that can accurately reflect the current user's reading status can be immediately constructed in real time according to the current first target moment, the second target moment and the reading progress, and a corresponding reading report can be further generated objectively and accurately according to the reading data chain. At the same time, the reading report is synchronously sent to the current user's mobile terminal for subsequent processing.

[0112] Fifth embodiment

[0113] Furthermore, the method further comprises:

[0114] When the reading data chain is acquired in real time, a number of target numbers contained in the reading data chain are extracted in real time;

[0115] A number of the target numbers are randomly arranged and combined to generate a number of target sequences, and a target sequence is randomly selected as the encryption key of the target literary work.

[0116] Among them, in this embodiment, it should be pointed out that after further obtaining the required reading data chain through the above steps, in order to timely and effectively save the reading information of the current user, several target numbers corresponding to the current reading data chain can be further extracted in real time, preferably, six-digit target numbers are extracted in real time. Based on this, the current six-digit target numbers are randomly arranged and combined accordingly, and several target sequences can be generated. On this basis, a target sequence is randomly selected as the encryption key of the current target literary work.

[0117] Furthermore, for ease of understanding, for example, the first target time can be "12:10 on March 10, 2024", and the second target time can be "15:36 on March 10, 2024". During this process, the reading progress generated in real time can be 10%. Based on this, the reading data chain constructed in real time can be "2024.03.10.12.10--10%--2024.03.10.15.36". Further, for example, the randomly selected six-digit number can be "101536". Based on this, the randomly generated target sequence can be "105316", etc., and finally "105316" can be set as the encryption key of the above-mentioned target literary work.

[0118] See also Figure 2 , the sixth embodiment of the present invention provides:

[0119] A literary work search system, wherein the system comprises:

[0120] A first search module is used for, when receiving a target keyword input by a user in real time, performing a search in a preset literature database according to the target keyword, and pushing a number of original literature sentences containing the target keyword to the user in real time;

[0121] A second search module is used to detect in real time a target literary sentence selected by the user from the plurality of original literary sentences, and to perform a secondary search in the preset literature database according to the target literary sentence, so as to push to the user in real time a plurality of original literary authors who have written the target literary sentence;

[0122] A processing module, used for detecting in real time the target literature author selected by the user from the plurality of original literature authors, and constructing a corresponding search data chain in real time according to the target keyword, the target literature sentence and the target literature author based on a preset rule;

[0123] The push module is used to add a corresponding target identifier to the search data chain, and based on the target identifier, search for the corresponding target literary work in the preset literature database in real time according to the search data chain, so as to push the target literary work to the user.

[0124] Furthermore, the first search module is specifically used for:

[0125] When the target keyword is acquired in real time, a target character corresponding to the target keyword is detected in real time, and the target character is converted into a corresponding character code sequence by a DTW algorithm, wherein the character code sequence is composed of a number of digits;

[0126] Performing a full scan on the character code sequence to detect the start code and the end code corresponding to the character code sequence in real time;

[0127] A search is performed in the preset literature database according to the start code and the end code, and a number of the original literature sentences are pushed to the user in real time.

[0128] Furthermore, the first search module is also specifically used for:

[0129] When the preset literature database is acquired, a plurality of original literature works contained in the preset literature database are detected in real time, and a character code library corresponding to each of the original literature works is matched in real time;

[0130] Creating a target two-dimensional coordinate system in real time, wherein the abscissa of the target two-dimensional coordinate system is the start code and the ordinate is the end code;

[0131] A character code area corresponding to the character code library of each original literary work is created in real time in the target two-dimensional coordinate system, and a search is performed based on the character code area to push a number of the original literary sentences to the user in real time. The character code area is an area with certain rules and a certain range.

[0132] Furthermore, the first search module is also specifically used for:

[0133] When each character code region is acquired in real time, a corresponding search point is generated in real time according to the start code and the end code;

[0134] Mapping the search point to the inside of the target two-dimensional coordinate system, and detecting in real time a number of target character code areas where the search point falls in the target two-dimensional coordinate system;

[0135] A plurality of the original literary sentences are pushed to the user in real time according to a plurality of the target character code regions, and the search point is unique.

[0136] Furthermore, the first search module is also specifically used for:

[0137] When a plurality of the target character code regions are detected in real time, a target sentence code including the start code and the end code is detected in real time in the original literary work corresponding to each of the target character code regions;

[0138] Each of the target sentence codes is input into a preset Transformer encoder, and each of the target sentence codes is encoded into each of the original literary sentences through the Transformer encoder, and each of the original literary sentences is unique.

[0139] Furthermore, the literary work search system further includes a detection module, which is specifically used to:

[0140] When it is detected in real time that the user opens the target literary work, a first target moment generated when the user opens the target literary work is recorded in real time;

[0141] When it is detected in real time that the user closes the target literary work, the second target moment generated when the user closes the target literary work is recorded in real time, and the reading progress of the user between the first target moment and the second target moment is correspondingly detected;

[0142] A corresponding reading data chain is constructed in real time according to the first target time, the second target time and the reading progress, and a corresponding reading report is generated in real time according to the reading data chain, so as to send the reading report to the mobile terminal of the user in real time.

[0143] Furthermore, the literary work search system further includes an encryption module, which is specifically used for:

[0144] When the reading data chain is acquired in real time, a number of target numbers contained in the reading data chain are extracted in real time;

[0145] A number of the target numbers are randomly arranged and combined to generate a number of target sequences, and a target sequence is randomly selected as the encryption key of the target literary work.

[0146] The seventh embodiment of the present invention provides a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the literary work search method as described above when executing the computer program.

[0147] An eighth embodiment of the present invention provides a readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the literary work search method as described above.

[0148] In summary, the literary work search method provided by the above embodiments of the present invention can ultimately search for a unique target literary work, thereby eliminating the need for users to spend a long time searching for literary works, thereby improving the search efficiency of literary works.

[0149] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0150] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0151] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0152] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0153] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0154] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for searching literary works, characterized in that: The method comprises: When receiving a target keyword input by a user in real time, performing a search in a preset literature database according to the target keyword, and pushing a number of original literature sentences containing the target keyword to the user in real time; Detecting in real time a target literary sentence selected by the user from among the plurality of original literary sentences, and performing a secondary search in the preset literature database according to the target literary sentence, so as to push to the user in real time a plurality of original literary authors who have written the target literary sentence; Detecting in real time the target literature author selected by the user from the plurality of original literature authors, and constructing a corresponding search data chain in real time according to the target keyword, the target literature sentence and the target literature author based on a preset rule; A corresponding target identifier is added to the search data chain, and based on the target identifier, a corresponding target literary work is searched in real time in the preset literature database according to the search data chain, so as to push the target literary work to the user.

2. The method for searching literary works according to claim 1, characterized in that: The step of searching a preset literature database according to the target keyword and pushing a number of original literature sentences containing the target keyword to the user in real time includes: When the target keyword is acquired in real time, a target character corresponding to the target keyword is detected in real time, and the target character is converted into a corresponding character code sequence by a DTW algorithm, wherein the character code sequence is composed of a number of digits; Performing a full scan on the character code sequence to detect the start code and the end code corresponding to the character code sequence in real time; A search is performed in the preset literature database according to the start code and the end code, and a number of the original literature sentences are pushed to the user in real time.

3. The literary work search method according to claim 2, characterized in that: The step of searching the preset literature database according to the start code and the end code and pushing a number of the original literature sentences to the user in real time comprises: When the preset literature database is acquired, a plurality of original literature works contained in the preset literature database are detected in real time, and a character code library corresponding to each of the original literature works is matched in real time; Creating a target two-dimensional coordinate system in real time, wherein the abscissa of the target two-dimensional coordinate system is the start code and the ordinate is the end code; A character code area corresponding to the character code library of each original literary work is created in real time in the target two-dimensional coordinate system, and a search is performed based on the character code area to push a number of the original literary sentences to the user in real time. The character code area is an area with certain rules and a certain range.

4. The literary works search method according to claim 3, characterized in that: The step of performing a search based on the character code region to push a number of the original literary sentences to the user in real time comprises: When each character code region is acquired in real time, a corresponding search point is generated in real time according to the start code and the end code; Mapping the search point to the inside of the target two-dimensional coordinate system, and detecting in real time a number of target character code areas where the search point falls in the target two-dimensional coordinate system; A plurality of the original literary sentences are pushed to the user in real time according to a plurality of the target character code regions, and the search point is unique.

5. The method for searching for literary works according to claim 4, characterized in that: The step of pushing a plurality of the original literary sentences to the user in real time according to the plurality of the target character code regions comprises: When a plurality of the target character code regions are detected in real time, a target sentence code including the start code and the end code is detected in real time in the original literary work corresponding to each of the target character code regions; Each of the target sentence codes is input into a preset Transformer encoder, and each of the target sentence codes is encoded into each of the original literary sentences through the Transformer encoder, and each of the original literary sentences is unique.

6. The method for searching literary works according to claim 1, characterized in that: The method further comprises: When it is detected in real time that the user opens the target literary work, a first target moment generated when the user opens the target literary work is recorded in real time; When it is detected in real time that the user closes the target literary work, a second target moment generated when the user closes the target literary work is recorded in real time, and the reading progress of the user between the first target moment and the second target moment is correspondingly detected; A corresponding reading data chain is constructed in real time according to the first target time, the second target time and the reading progress, and a corresponding reading report is generated in real time according to the reading data chain, so as to send the reading report to the mobile terminal of the user in real time.

7. The method for searching for literary works according to claim 6, characterized in that: The method further comprises: When the reading data chain is acquired in real time, a number of target numbers contained in the reading data chain are extracted in real time; A number of the target numbers are randomly arranged and combined to generate a number of target sequences, and a target sequence is randomly selected as the encryption key of the target literary work.

8. A literary work search system, characterized in that: The system comprises: A first search module is used for, when receiving a target keyword input by a user in real time, performing a search in a preset literature database according to the target keyword, and pushing a number of original literature sentences containing the target keyword to the user in real time; A second search module is used to detect in real time a target literary sentence selected by the user from the plurality of original literary sentences, and to perform a secondary search in the preset literature database according to the target literary sentence, so as to push to the user in real time a plurality of original literary authors who have written the target literary sentence; A processing module, used for detecting in real time the target literature author selected by the user from the plurality of original literature authors, and constructing a corresponding search data chain in real time according to the target keyword, the target literature sentence and the target literature author based on a preset rule; The push module is used to add a corresponding target identifier to the search data chain, and based on the target identifier, search for the corresponding target literary work in the preset literature database in real time according to the search data chain, so as to push the target literary work to the user.

9. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for searching for literary works as described in any one of claims 1 to 7 is implemented.

10. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for searching for literary works as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Book search method based on tag

    CN104537116A

  • Electronic dictionary reconstruction method based on electronic book content and computing device

    CN110489528A

  • Scientific and technical literature data classification method

    CN115269848A

  • Generation of multi-faceted search results in response to query

    US20140324825A1

  • Data acquisition device, data acquisition method, and recording medium

    US20210004367A1