Book presentation method, system and storage medium based on typesetting engine
Through a method based on the layout engine, combined with AI models to analyze user reading habits and personalize the content of book, the problem that existing electronic reading methods cannot adapt to user reading habits is solved, and user experience and satisfaction are improved.
Patent Information
- Application Number
- CN202210879415.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-25
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2042-07-25
AI Technical Summary
The existing e-reading methods cannot be typed at different users' reading preferences and habits for various types of books, resulting in reduced user experience and potential user churn.
Using a type-based engine method, by obtaining user identity information and reading data, using AI models to analyze users' reading habits, and determining the layout method of books based on the analysis results to adapt to users' reading habits.
It improves the user's reading experience, better meets users' reading needs for various types of books through personalized types of layout, and reduces user churn.
Smart Images

Figure CN115169317B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a book presentation method, system and storage medium based on a typesetting engine. Background Art
[0002] With the increasing application of Internet technology, traditional paper reading methods have gradually been replaced by electronic reading methods, and people are increasingly inclined to use the Internet and computer technology to read books through reading applications or readers.
[0003] At present, people have the following two ways to read electronically: one is to download a reader APP through mobile devices such as mobile phones and iPads for online reading, and the other is to use a PC to open a browser and browse the web for online reading. Both methods usually support multiple reading modes. Users can read various types of book content online according to their needs, and can also update the latest resource materials online in real time, bringing more convenience to users. Although the existing electronic reading methods can meet people's online reading needs, since everyone's reading preferences and habits are different and the same user has different reading methods for different types of books, the electronic books obtained through the existing electronic reading methods cannot be typeset according to the reading preferences and habits of different users for various types of books, so as to better adapt to the reading habits of users, which can easily reduce the user experience and even lead to user loss. Summary of the invention
[0004] The purpose of the present invention is to provide a book presentation method, system and storage medium based on a typesetting engine, so as to improve the problem in the prior art that various types of books cannot be typeset according to the reading preferences and habits of different users for various types of books to better suit the reading habits of users.
[0005] The embodiment of the present invention is achieved as follows:
[0006] In a first aspect, an embodiment of the present application provides a book presentation method based on a typesetting engine, which comprises the following steps:
[0007] When responding to a user's book reading operation, obtaining user identity information, user operation path and information of the book to be read;
[0008] Inputting the information of the book to be read into the preset book type database for matching, and determining the type information of the book to be read;
[0009] Read each line of the book to be read in binary form according to the page number sequence, and generate a binary line sequence corresponding to the book to be read;
[0010] According to the user identity information, the reading data of the user in multiple reading paths are obtained, wherein the reading data of any reading path includes browsing characteristics and first reading book type information;
[0011] Input all reading data into the trained AI model to analyze the user's reading habits and obtain the user's reading characteristics;
[0012] Determine the typesetting mode of the book to be read according to the reading characteristics and the type information of the book to be read, and typeset the binary line sequence according to the typesetting mode;
[0013] According to the typeset binary line sequence, the corresponding page information in the to-be-read book is retrieved to obtain the typeset book to be read, and based on the user operation path, the typeset book to be read is displayed.
[0014] In some embodiments of the present invention, the step of inputting all reading data into a trained AI model to analyze the user's reading habits and obtain the user's reading characteristics includes:
[0015] All reading data is input into the trained AI model to determine the browsing characteristics that match the type information of each first-read book;
[0016] Utilizing all the first reading book type information and the corresponding browsing characteristics to form the reading characteristics of the user;
[0017] Configure the corresponding typesetting template according to the reading characteristics.
[0018] In some embodiments of the present invention, the step of typeset the binary line sequence according to the typeset method includes:
[0019] According to the typesetting mode of the book to be read, a corresponding typesetting template is determined, and the binary line sequence is typeset according to the typesetting template.
[0020] In some embodiments of the present invention, after the step of obtaining the reading data of the user in multiple reading paths according to the user identity information, the method further includes:
[0021] Determine the type information of the second reading book according to all the reading data;
[0022] Using a web crawler to crawl all book data in the electronic library that matches the second reading book type information, any book data includes a book introduction and the number of readers;
[0023] Based on the number of readers, all book introductions are displayed in order.
[0024] In some embodiments of the present invention, the step of displaying the typeset books to be read based on the user operation path includes:
[0025] The typeset books to be read are displayed after page rendering.
[0026] In some embodiments of the present invention, before the above step of inputting all reading data into the trained AI model to analyze the user's reading habits, the method further includes:
[0027] Build AI models;
[0028] Obtain multiple samples, the samples include test book reading type information and test browsing characteristics;
[0029] Use multiple samples to train the AI model to obtain a trained AI model.
[0030] In some embodiments of the present invention, the above step of building an AI model includes:
[0031] The AI model is built using the random forest algorithm and convolutional neural network algorithm.
[0032] In a second aspect, an embodiment of the present application provides a book presentation system implemented based on a typesetting engine, which includes:
[0033] A module for obtaining information of books to be read, used for obtaining user identity information, user operation path and information of books to be read in response to a user's book reading operation;
[0034] A module for determining the type of book to be read, used for inputting the information of the book to be read into a preset book type database for matching, and determining the type of book to be read;
[0035] A binary reading module is used to read each line of the book to be read in binary mode according to the page number sequence, and generate a binary line sequence corresponding to the book to be read;
[0036] A reading data acquisition module, used to acquire the reading data of the user in multiple reading paths according to the user identity information, wherein the reading data of any reading path includes browsing characteristics and first reading book type information;
[0037] The reading characteristics acquisition module is used to input all reading data into the trained AI model to analyze the user's reading habits and obtain the user's reading characteristics;
[0038] A typesetting module, used to determine the typesetting mode of the book to be read according to the reading characteristics and the type information of the book to be read, and typeset the binary line sequence according to the typesetting mode;
[0039] The display module is used to retrieve the corresponding page information in the book to be read according to the typeset binary line sequence, obtain the typeset book to be read, and display the typeset book to be read based on the user operation path.
[0040] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory for storing one or more programs and a processor. When the one or more programs are executed by the processor, any method in the first aspect is implemented.
[0041] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method as described in any one of the first aspects above.
[0042] Compared with the prior art, the embodiments of the present invention have at least the following advantages or beneficial effects:
[0043] The present invention provides a book presentation method, system and storage medium based on a typesetting engine, which comprises the following steps: when responding to a user's book reading operation, obtaining user identity information, user operation path and information of a book to be read. Inputting the information of the book to be read into a preset book type database for matching, and determining the type information of the book to be read. Reading each line of the book to be read in binary mode according to the page number sequence, generating a binary line sequence corresponding to the book to be read, thereby simplifying the complex and text-rich content of the book to be read, and ensuring that each line of content after conversion is unique. According to the user identity information, obtaining the reading data of the user in multiple reading paths, wherein the reading data of any reading path includes browsing characteristics and first reading book type information. Inputting all reading data into a trained AI model to analyze the user's reading habits, and obtaining the user's reading characteristics. Then, determining the browsing characteristics of the user for each first reading book type according to the user's reading characteristics, and then determining the browsing characteristics matching the book to be read according to the type information of the book to be read, and then determining the typesetting method for the book to be read, so that the typesetting method is consistent with the browsing characteristics of the user for the information of the book to be read. Then, when the binary line sequence is typeset according to the typesetting method, the page information corresponding to the typeset binary line sequence can be adapted to the user's reading habits, thereby improving the user's reading experience. Finally, according to the typeset binary line sequence, the corresponding page information in the book to be read is retrieved to obtain the typeset book to be read, and the typeset book to be read is displayed based on the user's operation path. The purpose of typeset books to be read is achieved according to the user's reading preferences and habits for various types of books. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 A flowchart of a book presentation method based on a typesetting engine provided by an embodiment of the present invention;
[0046] Figure 2 A flowchart of an AI model analysis provided by an embodiment of the present invention;
[0047] Figure 3 A flowchart of another book presentation method based on a typesetting engine provided by an embodiment of the present invention;
[0048] Figure 4 A structural block diagram of a book presentation system based on a typesetting engine provided by an embodiment of the present invention;
[0049] Figure 5 A schematic structural block diagram of an electronic device provided by an embodiment of the present invention.
[0050] Icons: 110 - module for acquiring information of books to be read; 120 - module for determining information of types of books to be read; 130 - binary reading module; 140 - module for acquiring reading data; 150 - module for obtaining reading characteristics; 160 - typesetting module; 170 - display module; 101 - memory; 102 - processor; 103 - communication interface. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0052] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0053] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of this application, if the terms "first", "second", etc. appear, they are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0054] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, if the terms "include", "comprise" or any other variant thereof appear, it is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of further restrictions, if an element defined by the sentence "comprises a..." appears, it does not exclude the presence of other identical elements in the process, method, article or equipment including the element.
[0055] In the description of the present application, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, or are the orientation or position relationship in which the product of the application is usually placed when used. This is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.
[0056] In the description of this application, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0057] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0058] Example
[0059] Please refer to Figure 1 , Figure 1The flowchart of a book presentation method based on a typesetting engine provided by an embodiment of the present invention is shown. The present invention provides a book presentation method based on a typesetting engine, which includes the following steps:
[0060] S110: in response to the user's book reading operation, obtaining user identity information, user operation path and information of the book to be read;
[0061] Among them, the book reading operation refers to the operation used to display the book reading page. For example, in a book application, controls such as "Enter Reading" or "Free Trial Reading" will be presented. If the user clicks or triggers the control, it is considered that the user is performing a book reading operation.
[0062] Specifically, when a user performs a book reading operation, the user identity information, the user operation path and the information of the book to be read are obtained, the user identity is locked through the user identity information, and the terminal page where the book to be read should be presented after the user triggers the book reading operation can be determined through the user operation path.
[0063] As an implementation of this embodiment, before a user reads a book online, it is necessary to register user identity information.
[0064] S120: Inputting the information of the book to be read into the preset book type database for matching, and determining the type information of the book to be read;
[0065] The preset book type database stores all book types in the electronic library. Specifically, the information of the book to be read is compared with all book types in the preset book type database one by one to find the book type that best matches the book to be read, thus determining the type information of the book to be read.
[0066] S130: Read each line of the book to be read in binary format according to the page number sequence to generate a binary line sequence corresponding to the book to be read;
[0067] Specifically, in step S130, each line of the book to be read is converted in binary mode and then read in, thereby converting the book to be read into a binary line sequence, thereby simplifying the complex and text-rich book to be read while ensuring that each line of the converted content is unique.
[0068] S140: acquiring reading data of the user in multiple reading paths according to the user identity information, wherein the reading data of any reading path includes browsing characteristics and first reading book type information;
[0069] Among them, browsing characteristics include browsing order, browsing content, browsing method, etc. Specifically, according to the user identity information, the reading data of the user in multiple reading paths is located. For example, the reading data of user A in reading path B can be: when user A reads online in reading path B, he browses the two first reading book types of type C and type D. When browsing type C books, the user usually reads according to the browsing characteristics of first reading the title page, then reading the table of contents, and then selecting and jumping according to the table of contents according to his own preferences. When browsing type D books, the user usually reads according to the browsing characteristics of browsing and flipping through the book pages in sequence.
[0070] S150: Input all reading data into the trained AI model to analyze the user's reading habits and obtain the user's reading characteristics;
[0071] Specifically, the trained AI model can analyze all reading data of the same user to determine the user's browsing characteristics for each first-read book type, that is, the user's reading characteristics.
[0072] S160: Determine the typesetting method of the book to be read according to the reading characteristics and the type information of the book to be read, and typeset the binary line sequence according to the typesetting method;
[0073] Specifically, the browsing characteristics of the user for each first reading book type can be determined according to the user's reading characteristics, and then the browsing characteristics matching the to-be-read book type information can be determined, and then the typesetting method for the to-be-read book can be determined, so that the typesetting method is consistent with the browsing characteristics of the user for the to-be-read book information. When the binary line sequence is typeset according to the typesetting method, the page information corresponding to the typeset binary line sequence can be adapted to the user's reading habits, thereby improving the user's reading experience.
[0074] S170: According to the typeset binary line sequence, corresponding page information in the book to be read is retrieved to obtain the typeset book to be read, and the typeset book to be read is displayed based on the user operation path.
[0075] Specifically, through step S170, the corresponding page information in the book to be read is retrieved according to the typeset binary row sequence, the typeset book to be read is obtained, and the typeset book to be read is displayed to the user, thereby achieving the purpose of typeset the book to be read according to the user's reading preferences and habits for various types of books. Since the typeset book to be read is adapted to the user's reading habits, the user's reading experience is effectively improved.
[0076] Please refer to Figure 2 , Figure 2The flowchart of an AI model analysis provided by an embodiment of the present invention is shown. In some implementations of this embodiment, the above step of inputting all reading data into a trained AI model to analyze the user's reading habits and obtain the user's reading characteristics includes:
[0077] All reading data is input into the trained AI model to determine the browsing characteristics that match the type information of each first-read book;
[0078] Utilizing all the first reading book type information and the corresponding browsing characteristics to form the reading characteristics of the user;
[0079] Configure the corresponding typesetting template according to the reading characteristics.
[0080] Specifically, all reading data of the same user are analyzed through the trained AI model to determine the user's browsing characteristics for each first reading book type, and typesetting templates are configured according to the user's browsing characteristics, so as to use different typesetting templates to typeset the corresponding first reading book types to meet the typesetting requirements of different reading book types.
[0081] In some implementations of this embodiment, the step of typeset the binary line sequence according to the typeset method includes:
[0082] According to the typesetting mode of the book to be read, a corresponding typesetting template is determined, and the binary line sequence is typeset according to the typesetting template.
[0083] Specifically, a typesetting template matching the book to be read is determined according to the type information of the book to be read, and the binary line sequence is typeset according to the typesetting template, so that the typeset binary line sequence can be further adapted to the user's reading habits.
[0084] Please refer to Figure 3 , Figure 3 FIG. 1 is a flow chart of another method for presenting books based on a typesetting engine according to an embodiment of the present invention. In some implementations of this embodiment, after the step of obtaining the reading data of the user in multiple reading paths according to the user identity information, the method further includes:
[0085] Determine the type information of the second reading book according to all the reading data;
[0086] Using a web crawler to crawl all book data in the electronic library that matches the second reading book type information, any book data includes a book introduction and the number of readers;
[0087] Based on the number of readers, all book introductions are displayed in order.
[0088] In the above implementation process, the second reading book type information that the user frequently reads is determined based on all reading data, and then all book data that meets the second reading book type information in the electronic library is crawled using a web crawler, so as to recommend reading texts to the user, thereby further providing the user with the most comfortable reading experience.
[0089] In some implementations of this embodiment, the step of displaying the typeset books to be read based on the user operation path includes:
[0090] The typeset books to be read are displayed after page rendering.
[0091] Specifically, the pages of the typeset books to be read are rendered through a page rendering engine, so that the typeset books to be read can be flipped through more smoothly, thereby further improving the reading experience of the user.
[0092] In some implementations of this embodiment, before the above step of inputting all reading data into the trained AI model to analyze the user's reading habits, the method further includes:
[0093] Build AI models;
[0094] Obtain multiple samples, the samples include test book reading type information and test browsing characteristics;
[0095] Use multiple samples to train the AI model to obtain a trained AI model.
[0096] In some implementations of this embodiment, the step of building an AI model includes:
[0097] The AI model is constructed through the random forest algorithm and the convolutional neural network algorithm, so that the AI model can analyze the user's reading data.
[0098] Among them, the random forest algorithm is a classifier that contains multiple decision trees, and the category of its output is determined by the majority of the categories output by individual trees. The convolutional neural network algorithm is a type of feedforward neural network with a deep structure that contains convolution calculations and is one of the representative algorithms of deep learning. Convolutional neural networks have representation learning capabilities and can perform translation-invariant classification of input information according to their hierarchical structure.
[0099] Please refer to Figure 4 , Figure 4 The figure is a structural block diagram of a book presentation system based on a typesetting engine provided by an embodiment of the present invention. The present application embodiment provides a book presentation system based on a typesetting engine, which includes:
[0100] The to-be-read book information acquisition module 110 is used to acquire user identity information, user operation path and to-be-read book information in response to a user's book reading operation;
[0101] The module 120 for determining the type of book to be read is used to input the information of the book to be read into the preset book type database for matching and determine the type of book to be read;
[0102] The binary reading module 130 is used to read each line of the book to be read in binary mode according to the page number sequence, and generate a binary line sequence corresponding to the book to be read;
[0103] The reading data acquisition module 140 is used to acquire the reading data of the user in multiple reading paths according to the user identity information, wherein the reading data of any reading path includes browsing characteristics and first reading book type information;
[0104] The reading characteristics obtaining module 150 is used to input all reading data into the trained AI model to analyze the user's reading habits and obtain the user's reading characteristics;
[0105] The typesetting module 160 is used to determine the typesetting mode of the book to be read according to the reading characteristics and the type information of the book to be read, and typeset the binary line sequence according to the typesetting mode;
[0106] The display module 170 is used to retrieve the corresponding page information in the book to be read according to the typeset binary line sequence, obtain the typeset book to be read, and display the typeset book to be read based on the user operation path.
[0107] In the above implementation process, when responding to the user's book reading operation, the user identity information, user operation path and information of the book to be read are obtained. The information of the book to be read is input into the preset book type database for matching to determine the type information of the book to be read. According to the page number sequence, each line of the book to be read is read in binary mode to generate a binary line sequence corresponding to the book to be read, so that while simplifying the complex and text-rich content of the book to be read, each line of content after conversion can also be guaranteed to be unique. According to the user identity information, the reading data of the user in multiple reading paths is obtained, wherein the reading data of any reading path includes browsing characteristics and first reading book type information. All reading data are input into the trained AI model to analyze the user's reading habits and obtain the user's reading characteristics. Then, according to the user's reading characteristics, the user's browsing characteristics for each first reading book type are determined, and then the browsing characteristics matching the book to be read are determined according to the type information of the book to be read, and then the typesetting method for the book to be read is determined, so that the typesetting method is consistent with the user's browsing characteristics for the information of the book to be read. Then, when the binary line sequence is typeset according to the typesetting method, the page information corresponding to the typeset binary line sequence can be adapted to the user's reading habits, thereby improving the user's reading experience. Finally, according to the typeset binary line sequence, the corresponding page information in the book to be read is retrieved to obtain the typeset book to be read, and the typeset book to be read is displayed based on the user's operation path. The purpose of typeset books to be read is achieved according to the user's reading preferences and habits for various types of books.
[0108] Please refer to Figure 5 , Figure 5 A schematic structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device includes a memory 101, a processor 102 and a communication interface 103, and the memory 101, the processor 102 and the communication interface 103 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The memory 101 can be used to store software programs and modules, such as program instructions / modules corresponding to a book presentation system based on a typesetting engine implementation provided in an embodiment of the present application, and the processor 102 executes various functional applications and data processing by executing software programs and modules stored in the memory 101. The communication interface 103 can be used to communicate signaling or data with other node devices.
[0109] Among them, the memory 101 can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.
[0110] The processor 102 may be an integrated circuit chip with signal processing capability. The processor 102 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0111] Understandably, Figure 5 The structure shown is for illustration only. The electronic device may also include Figure 5 More or fewer components as shown, or with Figure 5 Different configurations shown. Figure 5 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0112] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0113] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0114] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0115] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0116] It will be apparent to those skilled in the art that the present application is not limited to the details of the exemplary embodiments described above, and that the present application can be implemented in other specific forms without departing from the spirit or essential features of the present application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present application. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A book presentation method based on a typesetting engine, characterized in that: The steps include: When responding to a user's book reading operation, obtaining user identity information, user operation path and information of the book to be read; Inputting the information of the book to be read into a preset book type database for matching, and determining the type information of the book to be read; Read each line of the book to be read in binary form according to the page number sequence, and generate a binary line sequence corresponding to the book to be read; According to the user identity information, obtaining the reading data of the user in multiple reading paths, wherein the reading data of any reading path includes browsing characteristics and first reading book type information; Input all reading data into the trained AI model to analyze the user's reading habits and obtain the user's reading characteristics; Determining the browsing characteristics of the user for each first reading book type according to the reading characteristics of the user, determining the browsing characteristics matching the book to be read according to the type information of the book to be read, determining the typesetting mode of the book to be read according to the reading characteristics and the type information of the book to be read, and typeset the binary line sequence according to the typesetting mode; According to the typeset binary line sequence, the corresponding page information in the book to be read is retrieved to obtain the typeset book to be read, and based on the user operation path, the typeset book to be read is displayed.
2. The book presentation method based on typesetting engine according to claim 1, characterized in that: The step of inputting all reading data into the trained AI model to analyze the user's reading habits and obtain the user's reading characteristics includes: All reading data is input into the trained AI model to determine the browsing characteristics that match the type information of each first-read book; Utilizing all the first reading book type information and the corresponding browsing characteristics to form the reading characteristics of the user; According to the reading characteristics, a corresponding typesetting template is configured.
3. The book presentation method based on typesetting engine according to claim 2, characterized in that: The step of typeset the binary line sequence according to the typeset mode comprises: According to the typesetting mode of the book to be read, a corresponding typesetting template is determined, and the binary line sequence is typeset according to the typesetting template.
4. The book presentation method based on typesetting engine according to claim 1, characterized in that: After the step of obtaining the reading data of the user in multiple reading paths according to the user identity information, the method further includes: Determine the type information of the second reading book according to all the reading data; Using a web crawler to crawl all book data in the electronic library that matches the second reading book type information, any of the book data includes a book introduction and the number of readers; Based on the number of readers, all book introductions are displayed in sequence.
5. The book presentation method based on typesetting engine according to claim 1, characterized in that: Based on the user operation path, the step of displaying the typeset books to be read includes: The typeset books to be read are displayed after page rendering.
6. The book presentation method based on typesetting engine according to claim 1, characterized in that: Before the step of inputting all reading data into the trained AI model to analyze the user's reading habits, the step further includes: Build AI models; Acquire multiple samples, wherein the samples include test book reading type information and test browsing characteristics; The AI model is trained using the multiple samples to obtain a trained AI model.
7. The book presentation method based on typesetting engine according to claim 6, characterized in that: The steps of building the AI model include: The AI model is built using the random forest algorithm and convolutional neural network algorithm.
8. A book presentation system based on a typesetting engine, characterized in that: include: A module for obtaining information of books to be read, used for obtaining user identity information, user operation path and information of books to be read in response to a user's book reading operation; A module for determining the type information of books to be read, used for inputting the information of books to be read into a preset book type database for matching, and determining the type information of books to be read; A binary reading module is used to read each line of the book to be read in binary mode according to the page number sequence, and generate a binary line sequence corresponding to the book to be read; A reading data acquisition module, used to acquire the reading data of the user in multiple reading paths according to the user identity information, wherein the reading data of any reading path includes browsing characteristics and first reading book type information; The reading characteristics acquisition module is used to input all reading data into the trained AI model to analyze the user's reading habits and obtain the user's reading characteristics; a typesetting module, for determining the browsing characteristics of the user for each first reading book type according to the user's reading characteristics, determining the browsing characteristics matching the book to be read according to the type information of the book to be read, determining the typesetting mode of the book to be read according to the reading characteristics and the type information of the book to be read, and typeset the binary line sequence according to the typesetting mode; The display module is used to retrieve the corresponding page information in the book to be read according to the typeset binary line sequence, obtain the typeset book to be read, and display the typeset book to be read based on the user operation path.
9. An electronic device, characterized in that: include: A memory for storing one or more programs; processor; When the one or more programs are executed by the processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Presentation method and device for electronic book
CN104166689A
User browsing behavior analysis method and device
CN110647680A