











技术领域technical field
本申请中涉及数据处理的技术,尤其是一种生成书签的方法、装置、电子设备及介质。The present application relates to data processing technologies, in particular to a method, apparatus, electronic device and medium for generating bookmarks.
背景技术Background technique
由于通信时代和社会的兴起,智能设备已经随着越来越多用户的使用而不断发展。Due to the rise of the communication age and society, smart devices have been continuously developed with the use of more and more users.
其中,随着互联网的飞速发展,用户利用智能设备阅读自身感兴趣的书籍已经成为了一种常态。进一步的,随着计算机技术的快速发展,现有的书籍一般都可以实现添加书签的功能。例如,用户可以根据自身的选择,为每一本阅读的书籍手动添加一个书签,以便下次阅读时能够快速地定位到书签指定的位置。Among them, with the rapid development of the Internet, it has become the norm for users to use smart devices to read books they are interested in. Further, with the rapid development of computer technology, the function of adding bookmarks can generally be implemented in existing books. For example, the user can manually add a bookmark to each book he reads according to his own choice, so that the next time he reads the book, he can quickly locate the position specified by the bookmark.
然而,相关技术中存在的书签生成方式由于需要用户手动生成,这也导致添加书签的效率较低。However, the bookmark generation method existing in the related art requires the user to generate manually, which also leads to low efficiency of adding bookmarks.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种生成书签的方法、装置、电子设备及介质,本申请实施例用于解决相关技术中存在的书签生成方式只能由用户手动生成所导致的添加书签效果低的问题。The embodiments of the present application provide a method, an apparatus, an electronic device and a medium for generating bookmarks. The embodiments of the present application are used to solve the problem of low bookmark adding effect caused by the fact that the bookmark generation method in the related art can only be manually generated by a user.
其中,根据本申请实施例的一个方面,提供的一种生成书签的方法,其特征在于,应用于服务端,包括:Wherein, according to an aspect of the embodiments of the present application, a method for generating bookmarks is provided, which is characterized in that, when applied to a server, the method includes:
响应于接收到用户设备发送的在目标书籍的阅读页上添加书签指令,生成阅读页书签,所述阅读页书签包括所述阅读页位置标记信息,所述添加书签指令包括书签内容附注信息,所述书签内容附注信息用于指示所述服务端获取书签内容;In response to receiving an instruction to add a bookmark on the reading page of the target book sent by the user equipment, a reading page bookmark is generated, the reading page bookmark includes the reading page position mark information, and the bookmark adding instruction includes bookmark content annotation information, so The bookmark content annotation information is used to instruct the server to obtain the bookmark content;
响应于所述书签添加指令,获取所述目标书籍对应的用户评论内容;In response to the bookmark adding instruction, acquiring the user comment content corresponding to the target book;
在所述用户评论内容中确定目标语句信息,将目标语句信息作为书签内容;Determine target sentence information in the user comment content, and use the target sentence information as bookmark content;
将包含所述目标语句信息的阅读页书签发送至所述用户设备。A reading page bookmark containing the target sentence information is sent to the user equipment.
可选地,在基于本申请上述方法的另一个实施例中,在所述接收到用户设备发送的在目标书籍的阅读页上添加书签指令之后,还包括:Optionally, in another embodiment based on the above method of the present application, after receiving the instruction to add a bookmark on the reading page of the target book sent by the user equipment, the method further includes:
当检测到所述书签内容附注信息中包含所述用户设备生成的附加语句信息时,将所述附加语句信息作为书签内容添加至所述阅读页书签。When it is detected that the additional sentence information generated by the user equipment is included in the bookmark content annotation information, the additional sentence information is added to the reading page bookmark as bookmark content.
可选地,在基于本申请上述方法的另一个实施例中,所述在所述用户评论内容中确定目标语句信息,包括:Optionally, in another embodiment based on the above method of the present application, the determining target sentence information in the user comment content includes:
获取所述评论内容中,各个语句对应的出现次数;Obtain the number of occurrences corresponding to each statement in the comment content;
将所述出现次数最多的对应语句作为所述目标语句信息。The corresponding sentence with the largest number of occurrences is used as the target sentence information.
可选地,在基于本申请上述方法的另一个实施例中,所述将所述出现次数最多的对应语句作为所述目标语句信息,包括:Optionally, in another embodiment based on the above method of the present application, using the corresponding sentence with the most occurrences as the target sentence information includes:
当检测到所述出现次数最多的对应语句的数量为多个时,确定每个所述对应语句的文字数量;When it is detected that the number of the corresponding sentences with the largest number of occurrences is multiple, determine the number of characters of each of the corresponding sentences;
将所述出现次数最多的对应语句中,文字数量满足第一范围的对应语句作为所述目标语句信息。Among the corresponding sentences with the largest number of occurrences, the corresponding sentences with the number of characters satisfying the first range are used as the target sentence information.
可选地,在基于本申请上述方法的另一个实施例中,所述将所述出现次数最多的对应语句作为所述目标语句信息,包括:Optionally, in another embodiment based on the above method of the present application, using the corresponding sentence with the most occurrences as the target sentence information includes:
当检测到所述出现次数最多的对应语句的数量为多个时,确定每个所述对应语句的点赞数量;When it is detected that the number of the corresponding sentences with the most occurrences is multiple, determining the number of likes for each of the corresponding sentences;
将所述出现次数最多的对应语句中,点赞数量满足第二范围的对应语句作为所述目标语句信息。Among the corresponding sentences with the largest number of occurrences, the corresponding sentences with the number of likes satisfying the second range are used as the target sentence information.
可选地,在基于本申请上述方法的另一个实施例中,所述将所述出现次数最多的对应语句作为所述目标语句信息,包括:Optionally, in another embodiment based on the above method of the present application, using the corresponding sentence with the most occurrences as the target sentence information includes:
获取用户的阅读参数;Get the user's reading parameters;
基于所述用户的阅读参数,生成用户标签;generating a user tag based on the user's reading parameters;
将所述用户标签与所述出现次数最多的对应语句合并作为所述目标语句信息。The user tag and the corresponding sentence with the most occurrences are combined as the target sentence information.
可选地,在基于本申请上述方法的另一个实施例中,所述将所述出现次数最多的对应语句作为所述目标语句信息,包括:Optionally, in another embodiment based on the above method of the present application, using the corresponding sentence with the most occurrences as the target sentence information includes:
获取当前阅读页数以及当前阅读时长;Get the current number of pages read and the current reading time;
基于所述当前阅读页数以及当前阅读时长,生成阅读标签;generating a reading label based on the current number of pages read and the current reading duration;
将所述阅读标签与所述出现次数最多的对应语句合并作为所述目标语句信息。The read tag and the corresponding sentence with the most occurrences are combined as the target sentence information.
可选地,在基于本申请上述方法的另一个实施例中,所述在所述用户评论内容中确定目标语句信息,包括:Optionally, in another embodiment based on the above method of the present application, the determining target sentence information in the user comment content includes:
获取所述评论内容中出现预设标识的语句,所述预设标识包括表情标识、动画标识、符号标识、数字标识的至少任意一种;Obtaining a statement in which a preset identifier appears in the comment content, where the preset identifier includes at least any one of an expression identifier, an animation identifier, a symbol identifier, and a digital identifier;
基于出现所述预设标识的语句,从所述评论内容中选取所述目标语句信息。The target sentence information is selected from the comment content based on the occurrence of the sentence with the preset identification.
可选地,在基于本申请上述方法的另一个实施例中,在所述将目标语句信息作为书签内容之后,还包括:Optionally, in another embodiment based on the above method of the present application, after the target sentence information is used as the bookmark content, the method further includes:
基于用户属性以及历史阅读数据的至少一种信息,确定将所述包含目标语句信息的阅读页书签发送给生成所述添加书签指令的至少一个用户;Determine, based on at least one information of user attributes and historical reading data, to send the reading page bookmark including target sentence information to at least one user who generated the bookmark adding instruction;
将所述生成所述添加书签指令的至少一个用户中,获得相同阅读页书签的用户添加到同一阅读群组中。Among the at least one user who generated the bookmark adding instruction, the user who obtained the same reading page bookmark is added to the same reading group.
可选地,在基于本申请上述方法的另一个实施例中,在所述将目标语句信息作为书签内容之后,还包括:Optionally, in another embodiment based on the above method of the present application, after the target sentence information is used as the bookmark content, the method further includes:
当检测到所述包含所述目标语句信息的阅读页书签数量为多个时,获取用户信息,所述用户为生成所述添加书签指令的用户;When it is detected that the number of reading page bookmarks containing the target sentence information is multiple, obtain user information, and the user is the user who generated the bookmark adding instruction;
从多个所述目标书籍的书签中,随机为所述用户分配一个所述目标书籍的书签。A bookmark of the target book is randomly assigned to the user from a plurality of bookmarks of the target book.
可选地,在基于本申请上述方法的另一个实施例中,在所述获取所述目标书籍对应的评论内容之后,还包括:Optionally, in another embodiment based on the above method of the present application, after obtaining the comment content corresponding to the target book, the method further includes:
基于预设的字段数据库,检测所述评论内容中是否包含非法字段内容;Based on a preset field database, detecting whether the comment content contains illegal field content;
当确定包含时,将所述非法字段内容从所述评论内容中清除。When it is determined to include, the illegal field content is removed from the comment content.
其中,根据本申请实施例的一个方面,提供的一种生成书签的方法,其特征在于,应用于用户设备,方法包括:Wherein, according to an aspect of the embodiments of the present application, a method for generating bookmarks is provided, which is characterized in that, applied to user equipment, the method includes:
响应于对在目标书籍阅读页的添加书签操作,向服务器发送添加书签指令,所述添加书签指令包括书签内容附注信息,所述书签内容附注信息用于指示服务端获取书签内容;In response to the bookmarking operation on the reading page of the target book, a bookmarking instruction is sent to the server, where the bookmarking instruction includes bookmark content annotation information, and the bookmark content annotation information is used to instruct the server to obtain the bookmark content;
接收所述服务端发送的包含目标语句信息的阅读页书签,所述目标语句信息为基于所述目标书籍对应的用户评论内容生成的语句信息;Receive a reading page bookmark containing target sentence information sent by the server, where the target sentence information is sentence information generated based on user comment content corresponding to the target book;
将所述包含目标语句信息的阅读页书签进行展示。Display the reading page bookmark containing the target sentence information.
可选地,在基于本申请上述方法的另一个实施例中,所述响应于在目标书籍的阅读页上的添加书签操作,向服务器发送添加书签指令,包括:Optionally, in another embodiment based on the above method of the present application, the sending a bookmark adding instruction to the server in response to the bookmark adding operation on the reading page of the target book includes:
检测到在所述目标书籍阅读页上进行添加书签操作或检测到停止阅读所述目标书籍的事件时,向服务器发送添加书籍指令。When it is detected that a bookmarking operation is performed on the reading page of the target book or an event of stopping reading the target book is detected, a book adding instruction is sent to the server.
可选地,在基于本申请上述方法的另一个实施例中,Optionally, in another embodiment based on the above method of the present application,
获取书签内容附加语句信息,将所述书签内容附加语句信息添加至所述书签内容附注信息中,所述附加语句信息用于生成所述阅读页书签的内容。Obtaining bookmark content additional sentence information, and adding the bookmark content additional sentence information to the bookmark content additional sentence information, where the additional sentence information is used to generate the content of the reading page bookmark.
根据本申请实施例的另一个方面,提供的一种生成书签的装置,应用于服务端,包括:According to another aspect of the embodiments of the present application, a device for generating bookmarks is provided, applied to a server, including:
获取模块,被设置为响应于接收到用户设备发送的在目标书籍的阅读页上添加书签指令,生成阅读页书签,所述阅读页书签包括所述阅读页位置标记信息,所述添加书签指令包括书签内容附注信息,所述书签内容附注信息用于指示所述服务端获取书签内容;The acquiring module is configured to generate a reading page bookmark in response to receiving an instruction to add a bookmark on the reading page of the target book sent by the user equipment, where the reading page bookmark includes the reading page position mark information, and the bookmark adding instruction includes bookmark content annotation information, the bookmark content annotation information is used to instruct the server to obtain the bookmark content;
第一响应模块,被设置为响应于所述书签添加指令,获取所述目标书籍对应的用户评论内容;a first response module, configured to obtain user comment content corresponding to the target book in response to the bookmark adding instruction;
确定模块,被设置为在所述用户评论内容中确定目标语句信息,将目标语句信息作为书签内容;a determining module, configured to determine target sentence information in the user comment content, and use the target sentence information as bookmark content;
第一发送模块,被设置为将包含所述目标语句信息的阅读页书签发送至所述用户设备。The first sending module is configured to send the reading page bookmark including the target sentence information to the user equipment.
根据本申请实施例的另一个方面,提供的一种生成书签的装置,应用于用户设备,包括:According to another aspect of the embodiments of the present application, there is provided an apparatus for generating bookmarks, applied to user equipment, including:
第二响应模块,被设置为响应于对在目标书籍阅读页的添加书签操作,向服务器发送添加书签指令,所述添加书签指令包括书签内容附注信息,所述书签内容附注信息用于指示服务端获取书签内容;The second response module is configured to send a bookmark adding instruction to the server in response to the bookmarking operation on the target book reading page, where the bookmarking instruction includes bookmark content annotation information, and the bookmark content annotation information is used to instruct the server Get bookmark content;
第二发送模块,被设置为接收所述服务端发送的包含目标语句信息的阅读页书签,所述目标语句信息为基于所述目标书籍对应的用户评论内容生成的语句信息;A second sending module, configured to receive a reading page bookmark sent by the server and containing target sentence information, where the target sentence information is sentence information generated based on the user comment content corresponding to the target book;
展示模块,被设置为将所述包含目标语句信息的阅读页书签进行展示。The display module is configured to display the bookmark of the reading page containing the target sentence information.
根据本申请实施例的又一个方面,提供的一种电子设备,包括:According to yet another aspect of the embodiments of the present application, an electronic device is provided, comprising:
存储器,用于存储可执行指令;以及memory for storing executable instructions; and
显示器,用于与所述存储器显示以执行所述可执行指令从而完成上述任一所述生成书签的方法的操作。A display for displaying with the memory to execute the executable instructions so as to complete the operation of any one of the above methods for generating a bookmark.
根据本申请实施例的还一个方面,提供的一种计算机可读存储介质,用于存储计算机可读取的指令,所述指令被执行时执行上述任一所述生成书签的方法的操作。According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided for storing computer-readable instructions, and when the instructions are executed, the operations of any of the foregoing methods for generating bookmarks are performed.
本申请中,在响应于接收到用户设备发送的在目标书籍的阅读页上添加书签指令,生成阅读页书签,阅读页书签包括阅读页位置标记信息,添加书签指令包括书签内容附注信息,书签内容附注信息用于指示服务端获取书签内容;响应于书签添加指令,获取目标书籍对应的用户评论内容;在用户评论内容中确定目标语句信息,将目标语句信息作为书签内容;将包含目标语句信息的阅读页书签发送至用户设备。通过应用本申请的技术方案,可以根据预设规则,从该书籍的用户评论内容中自动选取一个语句作为该书籍的书签。进而避免相关技术中存在的书签生成方式只能由用户手动生成所导致的添加书签效果低的问题。In this application, in response to receiving an instruction to add a bookmark on the reading page of the target book sent by the user equipment, a bookmark for the reading page is generated, the bookmark for the reading page includes the position mark information of the reading page, and the instruction for adding a bookmark includes the annotation information of the bookmark content and the bookmark content. The annotation information is used to instruct the server to obtain the bookmark content; in response to the bookmark adding instruction, obtain the user comment content corresponding to the target book; determine the target sentence information in the user comment content, and use the target sentence information as the bookmark content; Reading page bookmarks are sent to the user device. By applying the technical solution of the present application, a sentence can be automatically selected from the user comment content of the book as the bookmark of the book according to preset rules. In this way, the problem of low bookmarking effect caused by the fact that the bookmark generation method in the related art can only be manually generated by the user is avoided.
下面通过附图和实施例,对本申请的技术方案做进一步的详细描述。The technical solutions of the present application will be described in further detail below through the accompanying drawings and embodiments.
附图说明Description of drawings
构成说明书的一部分的附图描述了本申请的实施例,并且连同描述一起用于解释本申请的原理。The accompanying drawings, which form a part of the specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application.
参照附图,根据下面的详细描述,可以更加清楚地理解本申请,其中:The present application may be more clearly understood from the following detailed description with reference to the accompanying drawings, wherein:
图1为本申请提出的生成书签的系统架构示意图;1 is a schematic diagram of a system architecture for generating bookmarks proposed by this application;
图2为本申请提出的一种生成书签的方法的示意图;2 is a schematic diagram of a method for generating bookmarks proposed by the present application;
图3a-3e为本申请提出的一种设备显示屏的展示图;3a-3e are display diagrams of a display screen of a device proposed by the application;
图4为本申请提出的一种生成书签的方法的示意图;4 is a schematic diagram of a method for generating bookmarks proposed by the present application;
图5为本申请提出的一种生成书签的完整流程图;Fig. 5 is a kind of complete flow chart of bookmark generation proposed for this application;
图6a-6b为本申请生成书签的装置的结构示意图;6a-6b are schematic structural diagrams of a device for generating bookmarks according to the present application;
图7为本申请显示电子设备结构示意图。FIG. 7 is a schematic diagram showing the structure of an electronic device according to the present application.
具体实施方式Detailed ways
现在将参照附图来详细描述本申请的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本申请的范围。Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
同时,应当明白,为了便于描述,附图中所示出的各个部分的尺寸并不是按照实际的比例关系绘制的。Meanwhile, it should be understood that, for the convenience of description, the dimensions of various parts shown in the accompanying drawings are not drawn in an actual proportional relationship.
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,不作为对本申请及其应用或使用的任何限制。The following description of at least one exemplary embodiment is merely illustrative in nature and is not intended to limit the application or its application or uses in any way.
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods, and apparatus should be considered part of the specification.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further discussion in subsequent figures.
另外,本申请各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。In addition, the technical solutions between the various embodiments of the present application can be combined with each other, but must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
需要说明的是,本申请实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that all directional indications (such as up, down, left, right, front, back...) in the embodiments of the present application are only used to explain the relationship between the various components under a certain posture (as shown in the drawings). If the specific posture changes, the directional indication also changes accordingly.
下面结合图1-图5来描述根据本申请示例性实施方式的用于进行生成书签的方法。需要注意的是,下述应用场景仅是为了便于理解本申请的精神和原理而示出,本申请的实施方式在此方面不受任何限制。相反,本申请的实施方式可以应用于适用的任何场景。A method for generating bookmarks according to an exemplary embodiment of the present application will be described below with reference to FIGS. 1-5 . It should be noted that the following application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, the embodiments of the present application can be applied to any scenario where applicable.
图1示出了可以应用本申请实施例的视频处理方法或视频处理装置的示例性系统架构100的示意图。FIG. 1 shows a schematic diagram of an
如图1所示,系统架构100可以包括终端设备101、102、103中的一种或多种,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , the
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。比如服务器105可以是多个服务器组成的服务器集群等。It should be understood that the numbers of terminal devices, networks and servers in FIG. 1 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs. For example, the
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103可以是具有显示屏的各种电子设备,包括但不限于智能手机、平板电脑、便携式计算机和台式计算机等等。The user can use the
本申请中的终端设备101、102、103可以为提供各种服务的终端设备。例如用户通过终端设备103(也可以是终端设备101或102)响应于接收到用户设备发送的在目标书籍的阅读页上添加书签指令,生成阅读页书签,所述阅读页书签包括所述阅读页位置标记信息,所述添加书签指令包括书签内容附注信息,所述书签内容附注信息用于指示所述服务端获取书签内容;响应于所述书签添加指令,获取所述目标书籍对应的用户评论内容;在所述用户评论内容中确定目标语句信息,将目标语句信息作为书签内容;将包含所述目标语句信息的阅读页书签发送至所述用户设备。The
在此需要说明的是,本申请实施例所提供的生成书签的方法可以由终端设备101、102、103中的一个或多个,和/或,服务器105执行,相应地,本申请实施例所提供的生成书签的装置一般设置于对应终端设备中,和/或,服务器105中,但本申请不限于此。It should be noted here that the method for generating bookmarks provided by the embodiments of the present application may be executed by one or more of the
本申请还提出一种生成书签的方法、装置、目标终端及介质。The present application also provides a method, an apparatus, a target terminal and a medium for generating a bookmark.
图2示意性地示出了根据本申请实施方式的一种生成书签的方法的流程示意图。如图2所示,该方法包括:FIG. 2 schematically shows a schematic flowchart of a method for generating a bookmark according to an embodiment of the present application. As shown in Figure 2, the method includes:
S101,响应于接收到用户设备发送的在目标书籍的阅读页上添加书签指令,生成阅读页书签,阅读页书签包括阅读页位置标记信息,添加书签指令包括书签内容附注信息,书签内容附注信息用于指示服务端获取书签内容。S101, in response to receiving an instruction to add a bookmark on a reading page of a target book sent by a user equipment, generate a bookmark for the reading page, where the bookmark for the reading page includes the position mark information of the reading page, and the instruction for adding bookmark includes the annotation information of the bookmark content, and the annotation information of the bookmark content uses To instruct the server to obtain the bookmark content.
首先需要说明的是,本申请中不对获取添加书签指令的设备做具体限定,例如可以为智能设备,也可以为服务器。其中,智能设备可以是PC(Personal Computer,个人电脑),也可以是智能手机、平板电脑、电子书阅读器、MP3(Moving Picture Experts GroupAudioLayer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving PictureExpertsGroup Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、便携计算机等具有显示功能的可移动式终端设备等等。First of all, it should be noted that this application does not specifically limit the device for obtaining the bookmark adding instruction, for example, it may be a smart device or a server. The smart device may be a PC (Personal Computer), a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group AudioLayer III, a moving picture expert compression standard audio layer 3) player, an MP4 player, and an MP4 player. (Moving PictureExpertsGroup Audio Layer IV, moving picture expert compression standard audio layer 4) Players, portable computers and other portable terminal devices with display functions, etc.
同样的,本申请也不对评论内容做具体限定,一种方式中,该评论内容可以为一个或多个用户在阅读过该目标书籍后,在评论区等区域发表的读后感言或是情节探讨等的评论内容。其中,该评论内容可以为作者发布的,也可以是阅读过该书籍的任意一个用户所发表的。Similarly, this application does not specifically limit the content of comments. In one way, the content of comments can be post-reading comments or plot discussions published by one or more users in the comment area and other areas after reading the target book. 's comment content. The comment content may be published by the author, or may be published by any user who has read the book.
可以理解的,本申请中的目标书籍可以为任意的书籍,例如可以包括不同语种文字撰写的书籍,漫画书等等。It can be understood that the target book in this application can be any book, for example, it can include books written in different languages, comic books and so on.
另外,本申请同样不对添加书签指令的生成方式做具体限定,例如可以为用户主动生成的,也可以为在检测到例如用户关闭该书籍等预设事件时,设备自动生成的。In addition, the present application also does not specifically limit the generation method of the bookmark adding instruction, for example, it may be actively generated by the user, or may be automatically generated by the device when a preset event such as the user closing the book is detected.
S102,响应于书签添加指令,获取目标书籍对应的用户评论内容。S102, in response to the bookmark adding instruction, obtain user comment content corresponding to the target book.
S103,在用户评论内容中确定目标语句信息,将目标语句信息作为书签内容。S103: Determine target sentence information in the user comment content, and use the target sentence information as bookmark content.
进一步的,本申请中可以根据不同的策略,从评论内容中选取不同的目标语句信息,以使后续根据该目标语句信息生成对应的书签。Further, in the present application, different target sentence information can be selected from the comment content according to different strategies, so that corresponding bookmarks can be subsequently generated according to the target sentence information.
例如可以为根据文字数量来选取目标语句信息,也可以为根据各条评论出现的次数来选取目标语句信息,还可以为根据各条评论的点赞次数等来选取目标语句信息。For example, the target sentence information may be selected according to the number of characters, or the target sentence information may be selected according to the number of times each comment appears, or the target sentence information may be selected according to the number of likes of each comment.
还需要说明的是,一种方式中,本申请不对目标语句信息的数量做具体限定,例如可以为一个,也可以为多个。可以理解的,该目标语句可以为一个词语,也可以一个句子等等。It should also be noted that, in one manner, the present application does not specifically limit the quantity of target sentence information, for example, it may be one or multiple. Understandably, the target sentence may be a word, a sentence, and so on.
S104,将包含目标语句信息的阅读页书签发送至用户设备。S104: Send the reading page bookmark including the target sentence information to the user equipment.
进一步的,本申请在确定目标语句信息后,即可将该语句信息作为目标书籍的书签。同样可以理解的,当目标语句信息的数量为多个时,该书籍的书签同样也为多个。Further, after the target sentence information is determined in the present application, the sentence information can be used as the bookmark of the target book. It can also be understood that when the number of target sentence information is multiple, the bookmarks of the book are also multiple.
进一步的,当书籍的书签同样也为多个时,可以为每个阅读该书籍的用户随机分配一个或多个书签,也可以根据某个规则,为每个阅读该书籍的用户指定分配一个或多个书签。Further, when there are also multiple bookmarks of the book, one or more bookmarks may be randomly assigned to each user who reads the book, or one or more bookmarks may be assigned to each user who reads the book according to a certain rule. Multiple bookmarks.
本申请中,在响应于接收到用户设备发送的在目标书籍的阅读页上添加书签指令,生成阅读页书签,阅读页书签包括阅读页位置标记信息,添加书签指令包括书签内容附注信息,书签内容附注信息用于指示服务端获取书签内容;响应于书签添加指令,获取目标书籍对应的用户评论内容;在用户评论内容中确定目标语句信息,将目标语句信息作为书签内容;将包含目标语句信息的阅读页书签发送至用户设备。通过应用本申请的技术方案,可以根据预设规则,从该书籍的用户评论内容中自动选取一个语句作为该书籍的书签。进而避免相关技术中存在的书签生成方式只能由用户手动生成所导致的添加书签效果低的问题。In this application, in response to receiving an instruction to add a bookmark on the reading page of the target book sent by the user equipment, a bookmark for the reading page is generated, the bookmark for the reading page includes the position mark information of the reading page, and the instruction for adding a bookmark includes the annotation information of the bookmark content and the bookmark content. The annotation information is used to instruct the server to obtain the bookmark content; in response to the bookmark adding instruction, obtain the user comment content corresponding to the target book; determine the target sentence information in the user comment content, and use the target sentence information as the bookmark content; Reading page bookmarks are sent to the user device. By applying the technical solution of the present application, a sentence can be automatically selected from the user comment content of the book as the bookmark of the book according to preset rules. In this way, the problem of low bookmarking effect caused by the fact that the bookmark generation method in the related art can only be manually generated by the user is avoided.
可选的,在本申请一种可能的实施方式中,在S101(接收到用户设备发送的在目标书籍的阅读页上添加书签指令)之后,可以实施下述步骤:Optionally, in a possible implementation manner of the present application, after S101 (receiving the instruction of adding a bookmark on the reading page of the target book sent by the user equipment), the following steps may be implemented:
当检测到书签内容附注信息中包含用户设备生成的附加语句信息时,将附加语句信息作为书签内容添加至阅读页书签。When it is detected that the additional sentence information generated by the user equipment is included in the annotation information of the bookmark content, the additional sentence information is added to the reading page bookmark as bookmark content.
进一步的,本申请中在接收到用户发送的添加书签指令后,可以进一步的检测其中是否包含有用户生成的附加语句信息。可以理解的,该附加语句信息即为用户需要生成的标签内容。因此,本申请在获取到该附加语句信息后,可以直接将其作为书签内容的一部分并添加至阅读页书签中。Further, in the present application, after receiving the bookmark adding instruction sent by the user, it can be further detected whether it contains additional sentence information generated by the user. It can be understood that the additional sentence information is the label content that the user needs to generate. Therefore, after obtaining the additional sentence information, the present application can directly use it as a part of the bookmark content and add it to the reading page bookmark.
可选的,在本申请一种可能的实施方式中,在S102(在用户评论内容中确定目标语句信息)中,可以通过下述步骤得到:Optionally, in a possible implementation manner of the present application, in S102 (determining target sentence information in the user comment content), it can be obtained through the following steps:
获取评论内容中,各个语句对应的出现次数;Get the number of occurrences of each statement in the comment content;
将出现次数最多的语句作为目标语句信息。The statement with the most occurrences is used as the target statement information.
进一步的,本申请中在基于目标书籍的评论内容选取目标语句信息的过程中,可以通过在评论内容出现的各个语句的出现次数高低来确定目标语句。可以理解的,该目标语句可以为一个词语,也可以一个句子等等。Further, in the process of selecting target sentence information based on the review content of the target book in the present application, the target sentence may be determined by the frequency of occurrence of each sentence appearing in the review content. Understandably, the target sentence may be a word, a sentence, and so on.
其中,该评论内容中各个语句对应的出现次数高低代表着对应语句的受欢迎程度,因此,本申请即可以选择其中出现次数最多的语句作为后续生成标签的语句信息。The number of occurrences corresponding to each statement in the comment content represents the popularity of the corresponding statement. Therefore, the present application can select the statement with the most number of occurrences as the statement information for the subsequent generation of tags.
例如,如图3a所示,对于目标书籍《XX传奇》来说,当检测到该书籍对应的评论区内容中,“漂亮”词语的出现次数为1次,“张三”词语的出现次数为3次,“愿你归来有星光”句子的出现次数为3次。那么则可以确定该书籍的评论内容中,出现次数最多的语句即为“愿你归来有星光”。因此,即可将该句子作为目标语句信息。并且如图3b所示,以使后续将“愿你归来有星光”作为目标书籍《XX传奇》的书签内容。For example, as shown in Figure 3a, for the target book "XX Legend", when the content of the comment area corresponding to the book is detected, the number of occurrences of the word "beautiful" is 1, and the number of occurrences of the word "Zhang San" is 3 times, the number of times the sentence "May you return with starlight" is 3 times. Then, it can be determined that in the comment content of the book, the phrase that appears most frequently is "May you return with starlight". Therefore, the sentence can be used as target sentence information. And as shown in Figure 3b, so that "May you return with starlight" as the bookmark content of the target book "XX Legend".
进一步可选的,本申请中在将出现次数最多的对应语句作为所述目标语句信息的过程中,可以包含以下四种情况:Further optionally, in the process of using the corresponding statement with the most occurrences as the target statement information in this application, the following four situations can be included:
第一种情况:The first case:
当检测到出现次数最多的对应语句的数量为多个时,确定每个对应语句的文字数量;When it is detected that the number of corresponding sentences with the largest number of occurrences is multiple, determine the number of characters of each corresponding sentence;
将出现次数最多的对应语句中,文字数量满足第一范围的对应语句作为目标语句信息。Among the corresponding sentences with the largest number of occurrences, the corresponding sentences with the number of characters satisfying the first range are used as the target sentence information.
其中,本申请中可以限制目标语句信息的文字数量,例如可以选择文字数量较多的语句信息作为目标语句信息。也可以选择文字数量较小的语句信息作为目标语句信息。Wherein, in the present application, the number of characters of the target sentence information may be limited, for example, sentence information with a larger number of characters may be selected as the target sentence information. It is also possible to select sentence information with a smaller number of characters as the target sentence information.
例如,以第一范围为大于5进行举例说明,当检测到针对目标书籍的评论内容中,出现次数最多的对应语句的数量为3个,分别为语句A、语句B以及语句C时,则可以分别确定每个出现次数最多的对应语句的文字数量为语句A文字数量2个、语句B文字数量5个以及语句C文字数量10个。并进一步的,根据预设的第一范围,选择将语句C作为目标语句信息。For example, taking the first range as greater than 5 as an example, when it is detected that the number of corresponding sentences with the most occurrences in the comment content for the target book is 3, which are sentence A, sentence B, and sentence C respectively, then you can The number of characters of each corresponding sentence with the largest number of occurrences is respectively determined to be 2 characters of sentence A, 5 characters of sentence B, and 10 characters of sentence C. And further, according to the preset first range, the sentence C is selected as the target sentence information.
需要说明的是,本申请不对第一范围做具体限定,也即第一范围可以为任意的数量范围。It should be noted that the present application does not specifically limit the first range, that is, the first range may be any number range.
第二种情况:Second case:
当检测到出现次数最多的对应语句的数量为多个时,确定每个对应语句的点赞数量;When it is detected that the number of corresponding sentences with the most occurrences is multiple, determine the number of likes for each corresponding sentence;
将出现次数最多的对应语句中,点赞数量满足第二范围的对应语句作为目标语句信息。Among the corresponding sentences with the largest number of occurrences, the corresponding sentences with the number of likes satisfying the second range are used as the target sentence information.
其中,本申请中不仅可以限制目标语句信息的文字数量,还可以根据评论内容中,每个语句的对应点赞数量来选择目标语句信息。例如可以选择点赞数量较多的语句信息作为目标语句信息。Wherein, in this application, not only the number of characters of the target sentence information can be limited, but also the target sentence information can be selected according to the corresponding number of likes of each sentence in the comment content. For example, sentence information with a large number of likes may be selected as the target sentence information.
例如,以第二范围为大于10进行举例说明。如图3c所示,当检测到针对目标书籍的评论内容中,出现次数最多的对应语句的数量为4个,分别为语句A、语句B以及语句C时,则可以分别确定每个出现次数最多的对应语句的点赞数量为语句A点赞数量2个、语句B点赞数量5个、语句C点赞数量6个以及语句D点赞数量20个。并进一步的,根据预设的第一范围,选择将语句D作为目标语句信息。For example, it is exemplified that the second range is greater than 10. As shown in Figure 3c, when it is detected that the number of corresponding sentences with the most occurrences is 4 in the comment content for the target book, which are sentence A, sentence B, and sentence C, respectively, it can be determined that each occurrence has the largest number of times. The number of likes for the corresponding statement is 2 likes for statement A, 5 likes for statement B, 6 likes for statement C, and 20 likes for statement D. And further, according to the preset first range, sentence D is selected as the target sentence information.
需要说明的是,本申请不对第二范围做具体限定,也即第二范围可以为任意的数量范围。且第二范围可以与第一范围相同,也可以不相同。It should be noted that the present application does not specifically limit the second range, that is, the second range may be any number range. And the second range may be the same as or different from the first range.
第三种情况:The third case:
获取用户的阅读参数;Get the user's reading parameters;
基于用户的阅读参数,生成用户标签;Generate user tags based on the user's reading parameters;
将用户标签与出现次数最多的对应语句合并作为目标语句信息。The user tag and the corresponding sentence with the most occurrences are combined as the target sentence information.
进一步的,为了提高用户体验,本申请实施例中还可以根据每个阅读用户各自对应的阅读参数,生成针对该用户的书签。其中,阅读参数中包括但不限于该阅读用户的昵称ID,其当前阅读书籍时所在的地理位置信息等等。Further, in order to improve the user experience, in this embodiment of the present application, a bookmark for each reading user may be generated according to the respective reading parameters of the reading user. Wherein, the reading parameters include, but are not limited to, the nickname ID of the reading user, the geographic location information where the reading user is currently reading the book, and the like.
例如,如图3d所示,对于目标书籍《XX传奇》来说,当检测到该书籍对应的评论区内容中,“漂亮”词语的出现次数为1次,“张三”词语的出现次数为3次,“愿你归来有星光”句子的出现次数为3次。那么则可以确定该书籍的评论内容中,出现次数最多的语句即为“愿你归来有星光”。因此,即可将该句子作为目标语句信息。进一步的,为了增强用户的体验,本申请还可以获取用户的昵称信息为“小明”,其阅读《XX传奇》所在的地理位置为上海的阅读参数。并根据该阅读参数生成专属于用户的标签,并将用户标签与出现次数最多的对应语句合并作为目标语句信息。以使后续将“愿你归来有星光”以及用户标签合并作为目标书籍《XX传奇》的书签内容。For example, as shown in Figure 3d, for the target book "XX Legend", when the content of the comment area corresponding to the book is detected, the number of occurrences of the word "beautiful" is 1, and the number of occurrences of the word "Zhang San" is 3 times, the number of times the sentence "May you return with starlight" is 3 times. Then, it can be determined that in the comment content of the book, the phrase that appears most frequently is "May you return with starlight". Therefore, the sentence can be used as target sentence information. Further, in order to enhance the user's experience, the application can also obtain the user's nickname information as "Xiao Ming", and the geographic location where he reads "XX Legend" is the reading parameter of Shanghai. And according to the reading parameter, a tag exclusive to the user is generated, and the user tag and the corresponding sentence with the most occurrences are combined as the target sentence information. In order to follow up, "May you return with starlight" and user tags are combined as the bookmark content of the target book "XX Legend".
第四种情况:Fourth case:
获取当前阅读页数以及当前阅读时长;Get the current number of pages read and the current reading time;
基于当前阅读页数以及当前阅读时长,生成阅读标签;Generate a reading label based on the current number of pages read and the current reading duration;
将阅读标签与出现次数最多的对应语句合并作为目标语句信息。The read label and the corresponding sentence with the most occurrences are combined as the target sentence information.
更进一步的,同样为了提高用户体验,本申请实施例中还可以根据每个阅读用户各自对应的当前阅读页数以及当前阅读时长,生成针对该用户的阅读标签,并根据该阅读标签生成该书籍的书签。Further, also in order to improve user experience, in this embodiment of the present application, a reading label for each reading user may be generated according to the current number of pages read and the current reading duration corresponding to the user, and the book may be generated according to the reading label. bookmark.
例如,如图3e所示,同样对于目标书籍《XX传奇》来说,当检测到该书籍对应的评论区内容中,“漂亮”词语的出现次数为1次,“张三”词语的出现次数为3次,“愿你归来有星光”句子的出现次数为3次。那么则可以确定该书籍的评论内容中,出现次数最多的语句即为“愿你归来有星光”。因此,即可将该句子作为目标语句信息。进一步的,为了增强用户的体验,本申请还可以获取当前书籍的阅读页数为“168/2002页”,其阅读《XX传奇》的时长为2小时15分钟。并根据该阅读标签生成专属于目标用户的标签,并将阅读标签与出现次数最多的对应语句合并作为目标语句信息。以使后续将“愿你归来有星光”以及阅读签合并作为目标书籍《XX传奇》的书签内容。For example, as shown in Figure 3e, also for the target book "XX Legend", when the content of the comment area corresponding to the book is detected, the number of occurrences of the word "beautiful" is 1, and the number of occurrences of the word "Zhang San" For 3 times, the number of occurrences of the sentence "May you return with starlight" is 3 times. Then, it can be determined that in the comment content of the book, the phrase that appears most frequently is "May you return with starlight". Therefore, the sentence can be used as target sentence information. Further, in order to enhance the user's experience, the present application can also obtain the number of pages read of the current book as "168/2002 pages", and the reading time of "XX Legend" is 2 hours and 15 minutes. And according to the reading label, a label exclusive to the target user is generated, and the reading label and the corresponding sentence with the most occurrences are combined as the target sentence information. In order to follow-up, "May you return with starlight" and the reading signature will be combined as the bookmark content of the target book "XX Legend".
进一步可选的,在本申请一种可能的实施方式中,在S102(在用户评论内容中确定目标语句信息)中,还可以通过下述方式得到:Further optionally, in a possible implementation manner of the present application, in S102 (determining target sentence information in the user comment content), it can also be obtained in the following manner:
获取评论内容中出现预设标识的语句,预设标识包括表情标识、动画标识、符号标识、数字标识的至少任意一种;Obtaining sentences with preset identifiers in the comment content, and the preset identifiers include at least any one of emoticon identifiers, animation identifiers, symbol identifiers, and digital identifiers;
基于出现预设标识的语句,从评论内容中选取目标语句信息。Target sentence information is selected from the comment content based on the sentence in which the preset identifier appears.
其中,本申请实施例不对预设标识进行具体限定,例如可以为表情标识、符号标识、数字标识的至少任意一种。以预设标识为标签标识为例,可以理解的,当评论内容中出现表情符号时,可以更加生动的提示该评论内容,从而使得用户的浏览体验更佳。因此,本申请即可以从评论内容中选取目标语句信息的过程中,选取其中出现过表情符号的语句信息作为目标语句信息,以使后续根据该携带有表情符号的目标语句信息来生成该目标书籍的书签。The embodiment of the present application does not specifically limit the preset identifier, for example, it may be at least any one of an emoticon identifier, a symbol identifier, and a digital identifier. Taking the preset identifier as the tag identifier as an example, it can be understood that when an emoticon appears in the comment content, the comment content can be prompted more vividly, thereby making the user's browsing experience better. Therefore, in the process of selecting the target sentence information from the comment content, the present application can select the sentence information in which the emoticon has appeared as the target sentence information, so that the target book can be subsequently generated according to the target sentence information carrying the emoticon. bookmark.
再进一步的,本申请还可以选择获取其他用户针对目标书籍生成的评论内容,并获取其他用户针对目标书籍生成的评论内容中,出现次数最多的语句作为目标语句信息。其中该其他用户可以为目标书籍的作者,其他用户还可以为当前生成添加书签指令用户的其他好友用户或关注用户等等。同样的,本申请也不对其他用户的数量进行具体限定。Further, the present application may also choose to obtain the comment content generated by other users on the target book, and obtain the sentence with the most occurrences among the comment content generated by other users on the target book as the target sentence information. The other user may be the author of the target book, and the other user may also be another friend user or follow user of the user who currently generates the bookmarking instruction. Likewise, this application does not specifically limit the number of other users.
更进一步的,本申请实施例还可以根据该第二页用户在评论区中针对该目标书籍生成的评论内容中,选取其中出现次数最多的语句作为目标语句信息。可以理解的,由于其他用户为当前生成添加书签指令的用户或是其所感兴趣的用户,因此其他用户针对目标书籍生成的评论内容也可能为当前生成添加书签指令的用户所感兴趣的内容。因此,选取该第二页用户在评论区中针对该目标书籍生成的评论内容中次数最多的语句作为目标语句信息并以此生成针对目标书籍的书签,可以极大地提升用户的阅读体验。Further, in this embodiment of the present application, according to the comment content generated by the user on the second page for the target book in the comment area, the sentence with the most occurrences may be selected as the target sentence information. It can be understood that, since other users are the users who currently generate the bookmarking instruction or are interested in the user, the comment content generated by other users on the target book may also be interesting to the user who currently generates the bookmarking instruction. Therefore, selecting the sentence with the most times in the comment content generated by the user for the target book in the comment area on the second page as the target sentence information and generating a bookmark for the target book based on this, can greatly improve the user's reading experience.
同样的,本申请在根据第二页用户在评论区中针对该目标书籍生成的评论内容中次数最多的语句作为目标语句信息的过程中,也可以根据每个语句的文字数量,点赞数量,包括用户昵称信息,地理位置信息的至少一种的阅读参数。以及包括当前阅读页数以及当前阅读时长的阅读标签来共同生成该目标书籍的书签。Similarly, in this application, in the process of using the sentence with the highest number of times in the comment content generated by the user in the comment area for the target book on the second page as the target sentence information, it can also be based on the number of words of each sentence, the number of likes, At least one reading parameter including user nickname information and geographic location information. and a reading tag including the current number of pages read and the current reading duration to jointly generate the bookmark of the target book.
进一步可选的,在本申请一种可能的实施方式中,在S104(将目标语句信息作为目标书籍的书签内容)之后,还可以通实施下述步骤:Further optionally, in a possible implementation manner of the present application, after S104 (use the target sentence information as the bookmark content of the target book), the following steps may also be implemented:
基于用户属性以及历史阅读数据的至少一种信息,确定将包含目标语句信息的阅读页书签发送给生成添加书签指令的至少一个用户;Determine, based on at least one information of user attributes and historical reading data, to send the reading page bookmark containing the target sentence information to at least one user who generates the bookmark adding instruction;
将生成添加书签指令的至少一个用户中,获得相同阅读页书签的用户添加到同一阅读群组中。Among the at least one user who generated the bookmark adding instruction, the user who obtained the bookmark of the same reading page is added to the same reading group.
另外,在将目标语句信息作为书签内容之后,还包括:In addition, after the target sentence information is used as the bookmark content, it also includes:
当检测到包含目标语句信息的阅读页书签数量为多个时,获取用户信息,用户为生成添加书签指令的用户;When it is detected that the number of reading page bookmarks containing target sentence information is multiple, obtain user information, and the user is the user who generates the bookmark adding instruction;
从多个目标书籍的书签中,随机为用户分配一个目标书籍的书签。From the bookmarks of multiple target books, randomly assign a bookmark of a target book to the user.
其中,本申请中在生成目标书籍的书签之后,还可以将多个用户进行相同阅读群组的分组。需要说明的是,同一阅读群组的用户之间应该具备相同或相应的个人参数。Wherein, in the present application, after the bookmark of the target book is generated, multiple users may also be grouped into the same reading group. It should be noted that users in the same reading group should have the same or corresponding personal parameters.
例如,当个人参数对应于性别时,即可以将所有阅读该目标书籍的男性用户分为同一阅读群组中,也可以将所有阅读该目标书籍的女性用户分为同一阅读群组中。又或,当个人参数对应于年龄时,即可以将所有阅读该目标书籍的位于20-30岁年龄段的用户分为同一阅读群组中,也可以将所有阅读该目标书籍位于40-50岁年龄段的用户分为同一阅读群组中。还或,当个人参数对应于地理位置时,即可以将所有阅读该目标书籍的位于北京地区的用户分为同一阅读群组中,也可以将所有阅读该目标书籍位于上海地区的用户分为同一阅读群组中等等。For example, when the personal parameter corresponds to gender, all male users who read the target book can be divided into the same reading group, and all female users who read the target book can be divided into the same reading group. Or, when the personal parameter corresponds to age, all users in the age group of 20-30 who read the target book can be divided into the same reading group, or all users in the age group of 40-50 who read the target book can be divided into the same reading group. Age groups of users are grouped into the same reading group. Alternatively, when the personal parameter corresponds to the geographic location, all users in the Beijing area who read the target book can be divided into the same reading group, or all users in the Shanghai area who read the target book can be divided into the same reading group. Read the group and so on.
进一步的,在为多个用户分配对应的阅读群组后,即可将位于相同阅读群组的用户分配同一个目标书籍的书签。以使后续可以将具备同一书签的用户相互之间进行交流。Further, after assigning corresponding reading groups to multiple users, users in the same reading group can be assigned bookmarks of the same target book. So that users with the same bookmark can communicate with each other subsequently.
更进一步可选的,本申请可以基于预设的字段数据库,检测评论内容中是否包含非法字段内容;Further optionally, the present application can detect whether the comment content contains illegal field content based on a preset field database;
当确定包含时,将非法字段内容从评论内容中清除。When it is determined to contain, the illegal field content is removed from the comment content.
进一步的,本申请中在获取到针对目标书籍的评论内容后,可以首先基于预设的字段数据库,检测评论内容中是否包含非法字段内容。并在当确定包含时,将检测到的非法字段内容进行清除。Further, in the present application, after the review content for the target book is obtained, it can be first detected whether the review content contains illegal field content based on a preset field database. And when it is determined to contain, the detected illegal field content will be cleared.
需要说明的是,本申请不对字段数据库的生成方式进行具体限定,例如可以为接收从服务器中发送的标注有非法标识字段的数据库。当根据该各个标记有非法标识的字段检测到评论内容中出现对应的字段时,即可确定该评论内容中包含有非法字段内容,并在后续将其进行清除。It should be noted that this application does not specifically limit the generation method of the field database, for example, it may be to receive a database marked with an illegal identification field sent from the server. When it is detected that a corresponding field appears in the comment content according to the fields marked with illegal identifiers, it can be determined that the comment content contains illegal field content, and is subsequently cleared.
本申请还提出一种生成书签的方法、装置、目标终端及介质。The present application also provides a method, an apparatus, a target terminal and a medium for generating a bookmark.
图4示意性地示出了根据本申请实施方式的一种生成书签的方法的流程示意图。如图4所示,该方法应用于用户设备,包括:FIG. 4 schematically shows a schematic flowchart of a method for generating a bookmark according to an embodiment of the present application. As shown in Figure 4, the method is applied to user equipment, including:
S201,响应于对在目标书籍阅读页的添加书签操作,向服务器发送添加书签指令,添加书签指令包括书签内容附注信息,书签内容附注信息用于指示服务端获取书签内容。S201, in response to the bookmarking operation on the target book reading page, send a bookmarking instruction to the server, where the bookmarking instruction includes bookmark content annotation information, and the bookmark content annotation information is used to instruct the server to obtain the bookmark content.
其中,本申请实施例不对添加书签指令的生成方式做具体限定,例如可以为用户主动生成的,也可以为在检测到例如用户关闭该书籍等预设事件时,由设备自动生成的。The embodiment of the present application does not specifically limit the generation method of the bookmark adding instruction, for example, it may be generated automatically by the user, or may be automatically generated by the device when a preset event such as the user closing the book is detected.
进一步的,对于停止阅读目标书籍的事件而言,例如可以为当经过预设时间段没有接收到针对目标书籍的操作指令时,即可生成停止阅读目标书籍的事件。又或,也可以为当经过用户生成的针对目标书籍的退出指令时,即可生成停止阅读目标书籍的事件等等。Further, for the event of stopping reading the target book, for example, when no operation instruction for the target book is received after a preset period of time, the event of stopping reading the target book can be generated. Alternatively, an event of stopping reading of the target book may be generated when the user-generated exit instruction for the target book is passed.
S202,接收服务端发送的包含目标语句信息的阅读页书签,目标语句信息为基于目标书籍对应的用户评论内容生成的语句信息。S202: Receive a reading page bookmark including target sentence information sent by the server, where the target sentence information is sentence information generated based on user comment content corresponding to the target book.
S203,将包含目标语句信息的阅读页书签进行展示。S203, displaying the reading page bookmark including the target sentence information.
进一步的,在用户设备接收到服务端发送的包含目标语句信息的阅读页书签之后,即可以将包含目标语句信息的阅读页书签进行展示。Further, after the user equipment receives the reading page bookmark including the target sentence information sent by the server, it can display the reading page bookmark including the target sentence information.
可选的,本申请实施例在响应于在目标书籍的阅读页上的添加书签操作,向服务器发送添加书签指令,包括:Optionally, in this embodiment of the present application, in response to a bookmarking operation on the reading page of the target book, sending a bookmarking instruction to the server, including:
检测到在目标书籍阅读页上进行添加书签操作或检测到停止阅读目标书籍的事件时,向服务器发送添加书籍指令。When it is detected that a bookmark operation is performed on the reading page of the target book or an event of stopping reading the target book is detected, a book adding instruction is sent to the server.
进一步可选的,本申请实施例还可以获取书签内容附加语句信息,将书签内容附加语句信息添加至书签内容附注信息中,附加语句信息用于生成阅读页书签的内容。Further optionally, in this embodiment of the present application, additional sentence information of the bookmark content may be obtained, and the additional sentence information of the bookmark content is added to the annotation information of the bookmark content, and the additional sentence information is used to generate the content of the bookmark of the reading page.
进一步的,本申请中在用户生成的添加书签指令时,可以进一步的在其中添加对应的附加语句信息。可以理解的,该附加语句信息即为用户需要生成的标签内容。因此,服务器在获取到该附加语句信息后,可以直接将其作为书签内容的一部分并添加至阅读页书签中。Further, in the present application, when the user generates the bookmark adding instruction, the corresponding additional sentence information may be further added therein. It can be understood that the additional sentence information is the label content that the user needs to generate. Therefore, after acquiring the additional sentence information, the server can directly add it to the bookmark of the reading page as a part of the bookmark content.
进一步的如图5所示,为本申请的完整技术方案流程图。首先,需要接收用户生成的针对目标书籍的添加书签指令,或,当检测到停止阅读目标书籍的事件时,基于预设的字段数据库,检测评论内容中是否包含非法字段内容。并在当确定包含时,将非法字段内容从评论内容中清除,再在用户评论内容中确定目标语句信息,将目标语句信息作为目标书籍的书签内容。其中,对于在用户评论内容中确定目标语句信息来说,可以包括获取评论内容中,各个语句对应的出现次数,并在当检测到出现次数最多的对应语句的数量为多个时,确定每个对应语句的文字数量/点赞数量,以及将出现次数最多的对应语句中,文字数量/点赞数量满足范围的对应语句作为目标语句信息。Further, as shown in FIG. 5 , it is a flow chart of the complete technical solution of the present application. First, it is necessary to receive a bookmarking instruction for the target book generated by the user, or, when an event of stopping reading the target book is detected, based on a preset field database, it is necessary to detect whether the comment content contains illegal field content. When it is determined to be included, the illegal field content is removed from the comment content, and then the target sentence information is determined in the user comment content, and the target sentence information is used as the bookmark content of the target book. Wherein, determining the target sentence information in the user comment content may include obtaining the number of occurrences corresponding to each sentence in the comment content, and when it is detected that the number of corresponding sentences with the most occurrences is multiple, determining each The number of words/likes of the corresponding sentence, and the corresponding sentences with the number of words/likes satisfying the range among the corresponding sentences with the most occurrences are used as the target sentence information.
进一步的,在当检测到目标书籍的书签数量为多个时,获取用户信息。并从多个目标书籍的书签中,随机为用户分配一个目标书籍的书签,或者,基于每个用户的个人参数,为多个用户分配阅读群组,以使后续将位于相同阅读群组的用户分配同一个目标书籍的书签。Further, when it is detected that the number of bookmarks of the target book is multiple, user information is acquired. And from the bookmarks of multiple target books, randomly assign a bookmark of a target book to the user, or, based on the personal parameters of each user, assign a reading group to multiple users, so that users who will be in the same reading group will follow Assign bookmarks to the same target book.
在本申请的另外一种实施方式中,如图6a所示,本申请还提供一种生成书签的装置。其中,该装置应用于服务端,包括获取模块301,第一响应模块302,确定模块303,第一发送模块304,其中,In another implementation manner of the present application, as shown in FIG. 6a, the present application further provides an apparatus for generating a bookmark. Wherein, the device is applied to the server, including an
获取模块301,被设置为响应于接收到用户设备发送的在目标书籍的阅读页上添加书签指令,生成阅读页书签,所述阅读页书签包括所述阅读页位置标记信息,所述添加书签指令包括书签内容附注信息,所述书签内容附注信息用于指示所述服务端获取书签内容;The acquiring
第一响应模块302,被设置为响应于所述书签添加指令,获取所述目标书籍对应的用户评论内容;The
确定模块303,被设置为在所述用户评论内容中确定目标语句信息,将目标语句信息作为书签内容;The determining
第一发送模块304,被设置为将包含所述目标语句信息的阅读页书签发送至所述用户设备。The
本申请中,在响应于接收到用户设备发送的在目标书籍的阅读页上添加书签指令,生成阅读页书签,阅读页书签包括阅读页位置标记信息,添加书签指令包括书签内容附注信息,书签内容附注信息用于指示服务端获取书签内容;响应于书签添加指令,获取目标书籍对应的用户评论内容;在用户评论内容中确定目标语句信息,将目标语句信息作为书签内容;将包含目标语句信息的阅读页书签发送至用户设备。通过应用本申请的技术方案,可以根据预设规则,从该书籍的用户评论内容中自动选取一个语句作为该书籍的书签。进而避免相关技术中存在的书签生成方式只能由用户手动生成所导致的添加书签效果低的问题。In this application, in response to receiving an instruction to add a bookmark on the reading page of the target book sent by the user equipment, a bookmark for the reading page is generated, the bookmark for the reading page includes the position mark information of the reading page, and the instruction for adding a bookmark includes the annotation information of the bookmark content and the bookmark content. The annotation information is used to instruct the server to obtain the bookmark content; in response to the bookmark adding instruction, obtain the user comment content corresponding to the target book; determine the target sentence information in the user comment content, and use the target sentence information as the bookmark content; Reading page bookmarks are sent to the user device. By applying the technical solution of the present application, a sentence can be automatically selected from the user comment content of the book as the bookmark of the book according to preset rules. In this way, the problem of low bookmarking effect caused by the fact that the bookmark generation method in the related art can only be manually generated by the user is avoided.
在本申请的另一种实施方式中,获取模块301,还包括:In another implementation manner of the present application, the obtaining
获取模块301,被配置为当检测到所述书签内容附注信息中包含所述用户设备生成的附加语句信息时,将所述附加语句信息作为书签内容添加至所述阅读页书签。The acquiring
在本申请的另一种实施方式中,获取模块301,还包括:In another implementation manner of the present application, the obtaining
获取模块301,被配置为获取所述评论内容中,各个语句对应的出现次数;The obtaining
获取模块301,被配置为将所述出现次数最多的对应语句作为所述目标语句信息。The obtaining
在本申请的另一种实施方式中,获取模块301,还包括:In another implementation manner of the present application, the obtaining
获取模块301,被配置为当检测到所述出现次数最多的对应语句的数量为多个时,确定每个所述对应语句的文字数量;The acquiring
获取模块301,被配置为将所述出现次数最多的对应语句中,文字数量满足第一范围的对应语句作为所述目标语句信息。The obtaining
在本申请的另一种实施方式中,确定模块303,还包括:In another implementation manner of the present application, the determining
确定模块303,被配置为当检测到所述出现次数最多的对应语句的数量为多个时,确定每个所述对应语句的点赞数量;The determining
确定模块303,被配置为将所述出现次数最多的对应语句中,点赞数量满足第二范围的对应语句作为所述目标语句信息。The determining
在本申请的另一种实施方式中,确定模块303,还包括:In another implementation manner of the present application, the determining
确定模块303,被配置为获取用户的阅读参数;The determining
确定模块303,被配置为基于所述用户的阅读参数,生成用户标签;determining
确定模块303,被配置为将所述用户标签与所述出现次数最多的对应语句合并作为所述目标语句信息。The determining
在本申请的另一种实施方式中,生成模块304,还包括:In another embodiment of the present application, the
生成模块304,被配置为获取当前阅读页数以及当前阅读时长;The
生成模块304,被配置为基于所述当前阅读页数以及当前阅读时长,生成阅读标签;The
生成模块304,被配置为将所述阅读标签与所述出现次数最多的对应语句合并作为所述目标语句信息。The
在本申请的另一种实施方式中,确定模块303,还包括:In another implementation manner of the present application, the determining
确定模块303,被配置为获取所述评论内容中出现预设标识的语句,所述预设标识包括表情标识、动画标识、符号标识、数字标识的至少任意一种;The determining
确定模块303,被配置为基于出现所述预设标识的语句,从所述评论内容中选取所述目标语句信息。The determining
在本申请的另一种实施方式中,确定模块303,还包括:In another implementation manner of the present application, the determining
确定模块303,被配置为基于用户属性以及历史阅读数据的至少一种信息,确定将所述包含目标语句信息的阅读页书签发送给生成所述添加书签指令的至少一个用户;The determining
确定模块303,被配置为将所述生成所述添加书签指令的至少一个用户中,获得相同阅读页书签的用户添加到同一阅读群组中。The determining
在本申请的另一种实施方式中,确定模块303,还包括:In another implementation manner of the present application, the determining
确定模块303,被配置为基于预设的字段数据库,检测所述评论内容中是否包含非法字段内容;A
确定模块303,被配置为当确定包含时,将所述非法字段内容从所述评论内容中清除。The determining
在本申请的另外一种实施方式中,如图6b所示,本申请还提供一种生成书签的装置。其中,该装置应用于用户设备,包括第二响应模块305,第二发送模块306,展示模块307,其中,In another embodiment of the present application, as shown in FIG. 6b, the present application further provides an apparatus for generating a bookmark. Wherein, the apparatus is applied to user equipment, and includes a
第二响应模块305,被配置为响应于对在目标书籍阅读页的添加书签操作,向服务器发送添加书签指令,所述添加书签指令包括书签内容附注信息,所述书签内容附注信息用于指示服务端获取书签内容;The
第二发送模块306,被配置为接收所述服务端发送的包含目标语句信息的阅读页书签,所述目标语句信息为基于所述目标书籍对应的用户评论内容生成的语句信息;The
展示模块307,被配置为将所述包含目标语句信息的阅读页书签进行展示。The
本申请中,在响应于接收到用户设备发送的在目标书籍的阅读页上添加书签指令,生成阅读页书签,阅读页书签包括阅读页位置标记信息,添加书签指令包括书签内容附注信息,书签内容附注信息用于指示服务端获取书签内容;响应于书签添加指令,获取目标书籍对应的用户评论内容;在用户评论内容中确定目标语句信息,将目标语句信息作为书签内容;将包含目标语句信息的阅读页书签发送至用户设备。通过应用本申请的技术方案,可以根据预设规则,从该书籍的用户评论内容中自动选取一个语句作为该书籍的书签。进而避免相关技术中存在的书签生成方式只能由用户手动生成所导致的添加书签效果低的问题。In this application, in response to receiving an instruction to add a bookmark on the reading page of the target book sent by the user equipment, a bookmark for the reading page is generated, the bookmark for the reading page includes the position mark information of the reading page, and the instruction for adding a bookmark includes the annotation information of the bookmark content and the bookmark content. The annotation information is used to instruct the server to obtain the bookmark content; in response to the bookmark adding instruction, obtain the user comment content corresponding to the target book; determine the target sentence information in the user comment content, and use the target sentence information as the bookmark content; Reading page bookmarks are sent to the user device. By applying the technical solution of the present application, a sentence can be automatically selected from the user comment content of the book as the bookmark of the book according to preset rules. In this way, the problem of low bookmarking effect caused by the fact that the bookmark generation method in the related art can only be manually generated by the user is avoided.
在本申请的另一种实施方式中,第二发送模块306,还包括:In another implementation manner of the present application, the
第二发送模块306,被配置为检测到在所述目标书籍阅读页上进行添加书签操作或检测到停止阅读所述目标书籍的事件时,向服务器发送添加书籍指令。The
在本申请的另一种实施方式中,第二发送模块306,还包括:In another implementation manner of the present application, the
第二发送模块306,被配置为获取书签内容附加语句信息,将所述书签内容附加语句信息添加至所述书签内容附注信息中,所述附加语句信息用于生成所述阅读页书签的内容。The
图7是根据一示例性实施例示出的一种电子设备的逻辑结构框图。例如,电子设备400可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 7 is a block diagram of a logical structure of an electronic device according to an exemplary embodiment. For example, electronic device 400 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.
参照图7,电子设备400可以包括以下一个或多个组件:处理器401和存储器402。Referring to FIG. 7 , an electronic device 400 may include one or more of the following components: a
处理器401可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器401可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器401也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器401可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器401还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The
存储器402可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器402还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器402中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器401所执行以实现本申请中方法实施例提供的互动特效标定方法。
在一些实施例中,电子设备400还可选包括有:外围设备接口403和至少一个外围设备。处理器401、存储器402和外围设备接口403之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口403相连。具体地,外围设备包括:射频电路404、触摸显示屏405、摄像头406、音频电路407、定位组件408和电源409中的至少一种。In some embodiments, the electronic device 400 may optionally further include: a
外围设备接口403可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器401和存储器402。在一些实施例中,处理器401、存储器402和外围设备接口403被集成在同一芯片或电路板上;在一些其他实施例中,处理器401、存储器402和外围设备接口403中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The
射频电路404用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路404通过电磁信号与通信网络以及其他通信设备进行通信。射频电路404将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路404包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路404可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:城域网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路404还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The
显示屏405用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏405是触摸显示屏时,显示屏405还具有采集在显示屏405的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器401进行处理。此时,显示屏405还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏405可以为一个,设置电子设备400的前面板;在另一些实施例中,显示屏405可以为至少两个,分别设置在电子设备400的不同表面或呈折叠设计;在再一些实施例中,显示屏405可以是柔性显示屏,设置在电子设备400的弯曲表面上或折叠面上。甚至,显示屏405还可以设置成非矩形的不规则图形,也即异形屏。显示屏405可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The
摄像头组件406用于采集图像或视频。可选地,摄像头组件406包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件406还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The
音频电路407可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器401进行处理,或者输入至射频电路404以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在电子设备400的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器401或射频电路404的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路407还可以包括耳机插孔。
定位组件408用于定位电子设备400的当前地理位置,以实现导航或LBS(LocationBased Service,基于位置的服务)。定位组件408可以是基于美国的GPS(GlobalPositioning System,全球定位系统)、中国的北斗系统、俄罗斯的格雷纳斯系统或欧盟的伽利略系统的定位组件。The
电源409用于为电子设备400中的各个组件进行供电。电源409可以是交流电、直流电、一次性电池或可充电电池。当电源409包括可充电电池时,该可充电电池可以支持有线充电或无线充电。该可充电电池还可以用于支持快充技术。
在一些实施例中,电子设备400还包括有一个或多个传感器410。该一个或多个传感器410包括但不限于:加速度传感器411、陀螺仪传感器412、压力传感器413、指纹传感器414、光学传感器415以及接近传感器416。In some embodiments, the electronic device 400 also includes one or more sensors 410 . The one or more sensors 410 include, but are not limited to, an acceleration sensor 411 , a gyro sensor 412 , a pressure sensor 413 , a fingerprint sensor 414 , an
加速度传感器411可以检测以电子设备400建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器411可以用于检测重力加速度在三个坐标轴上的分量。处理器401可以根据加速度传感器411采集的重力加速度信号,控制触摸显示屏405以横向视图或纵向视图进行用户界面的显示。加速度传感器411还可以用于游戏或者用户的运动数据的采集。The acceleration sensor 411 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the electronic device 400 . For example, the acceleration sensor 411 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The
陀螺仪传感器412可以检测电子设备400的机体方向及转动角度,陀螺仪传感器412可以与加速度传感器411协同采集用户对电子设备400的3D动作。处理器401根据陀螺仪传感器412采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyroscope sensor 412 can detect the body direction and rotation angle of the electronic device 400 , and the gyroscope sensor 412 can cooperate with the acceleration sensor 411 to collect 3D actions of the user on the electronic device 400 . The
压力传感器413可以设置在电子设备400的侧边框和/或触摸显示屏405的下层。当压力传感器413设置在电子设备400的侧边框时,可以检测用户对电子设备400的握持信号,由处理器401根据压力传感器413采集的握持信号进行左右手识别或快捷操作。当压力传感器413设置在触摸显示屏405的下层时,由处理器401根据用户对触摸显示屏405的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 413 may be disposed on the side frame of the electronic device 400 and/or the lower layer of the
指纹传感器414用于采集用户的指纹,由处理器401根据指纹传感器414采集到的指纹识别用户的身份,或者,由指纹传感器414根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器401授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器414可以被设置电子设备400的正面、背面或侧面。当电子设备400上设置有物理按键或厂商Logo时,指纹传感器414可以与物理按键或厂商Logo集成在一起。The fingerprint sensor 414 is used to collect the user's fingerprint, and the
光学传感器415用于采集环境光强度。在一个实施例中,处理器401可以根据光学传感器415采集的环境光强度,控制触摸显示屏405的显示亮度。具体地,当环境光强度较高时,调高触摸显示屏405的显示亮度;当环境光强度较低时,调低触摸显示屏405的显示亮度。在另一个实施例中,处理器401还可以根据光学传感器415采集的环境光强度,动态调整摄像头组件406的拍摄参数。
接近传感器416,也称距离传感器,通常设置在电子设备400的前面板。接近传感器416用于采集用户与电子设备400的正面之间的距离。在一个实施例中,当接近传感器416检测到用户与电子设备400的正面之间的距离逐渐变小时,由处理器401控制触摸显示屏405从亮屏状态切换为息屏状态;当接近传感器416检测到用户与电子设备400的正面之间的距离逐渐变大时,由处理器401控制触摸显示屏405从息屏状态切换为亮屏状态。
本领域技术人员可以理解,图7中示出的结构并不构成对电子设备400的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 7 does not constitute a limitation on the electronic device 400, and may include more or less components than the one shown, or combine some components, or adopt different component arrangements.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器404,上述指令可由电子设备400的处理器420执行以完成上述生成书签的方法,该方法包括:响应于接收到用户设备发送的在目标书籍的阅读页上添加书签指令,生成阅读页书签,所述阅读页书签包括所述阅读页位置标记信息,所述添加书签指令包括书签内容附注信息,所述书签内容附注信息用于指示所述服务端获取书签内容;响应于所述书签添加指令,获取所述目标书籍对应的用户评论内容;在所述用户评论内容中确定目标语句信息,将目标语句信息作为书签内容;将包含所述目标语句信息的阅读页书签发送至所述用户设备。可选地,上述指令还可以由电子设备400的处理器420执行以完成上述示例性实施例中所涉及的其他步骤。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a
在示例性实施例中,还提供了一种应用程序/计算机程序产品,包括一条或多条指令,该一条或多条指令可以由电子设备400的处理器420执行,以完成上述生成书签的方法,该方法包括:响应于接收到用户设备发送的在目标书籍的阅读页上添加书签指令,生成阅读页书签,所述阅读页书签包括所述阅读页位置标记信息,所述添加书签指令包括书签内容附注信息,所述书签内容附注信息用于指示所述服务端获取书签内容;响应于所述书签添加指令,获取所述目标书籍对应的用户评论内容;在所述用户评论内容中确定目标语句信息,将目标语句信息作为书签内容;将包含所述目标语句信息的阅读页书签发送至所述用户设备。可选地,上述指令还可以由电子设备400的处理器420执行以完成上述示例性实施例中所涉及的其他步骤。In an exemplary embodiment, an application program/computer program product is also provided, including one or more instructions, which can be executed by the processor 420 of the electronic device 400 to complete the above-described method of generating a bookmark , the method includes: in response to receiving an instruction of adding a bookmark on the reading page of the target book sent by the user equipment, generating a bookmark of the reading page, the bookmark of the reading page including the position mark information of the reading page, and the instruction of adding a bookmark including the bookmark Content annotation information, the bookmark content annotation information is used to instruct the server to obtain the bookmark content; in response to the bookmark adding instruction, obtain the user comment content corresponding to the target book; determine the target sentence in the user comment content information, take the target sentence information as bookmark content; send the reading page bookmark including the target sentence information to the user equipment. Optionally, the above-mentioned instructions may also be executed by the processor 420 of the electronic device 400 to complete other steps involved in the above-mentioned exemplary embodiments.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。Other embodiments of the present application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of this application that follow the general principles of this application and include common knowledge or conventional techniques in the technical field not disclosed in this application . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the application being indicated by the following claims.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It is to be understood that the present application is not limited to the precise structures described above and shown in the accompanying drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010701027.9ACN111897765A (en) | 2020-07-20 | 2020-07-20 | Method, device, electronic device and medium for generating bookmarks |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010701027.9ACN111897765A (en) | 2020-07-20 | 2020-07-20 | Method, device, electronic device and medium for generating bookmarks |
| Publication Number | Publication Date |
|---|---|
| CN111897765Atrue CN111897765A (en) | 2020-11-06 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010701027.9APendingCN111897765A (en) | 2020-07-20 | 2020-07-20 | Method, device, electronic device and medium for generating bookmarks |
| Country | Link |
|---|---|
| CN (1) | CN111897765A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050216526A1 (en)* | 2004-03-25 | 2005-09-29 | Canon Kabushiki Kaisha | Document management system and document management method |
| US20060224942A1 (en)* | 2005-03-29 | 2006-10-05 | Fujitsu Limited | Electronic manual display apparatus |
| CN101258461A (en)* | 2005-09-09 | 2008-09-03 | 微软公司 | Reading mode for electronic documents |
| WO2008145945A1 (en)* | 2007-05-25 | 2008-12-04 | First Major Assets Limited | Indexing apparatus |
| KR20090014460A (en)* | 2007-08-06 | 2009-02-11 | 브이마크 코리아(유) | How to Advertise, Share, Send and Search Using Multimedia Bookmarks |
| CN102073674A (en)* | 2009-11-20 | 2011-05-25 | 索尼公司 | Information processing apparatus, bookmark setting method, and program |
| US20120089911A1 (en)* | 2009-03-10 | 2012-04-12 | Intrasonics S.A.R.L. | Bookmarking System |
| CN103279361A (en)* | 2013-06-17 | 2013-09-04 | 济南大学 | Uniform literature sharing device and method driven by small bookmarks |
| US20140118800A1 (en)* | 2012-10-26 | 2014-05-01 | Audible, Inc. | Electronic reading position management for printed content |
| US8732166B1 (en)* | 2006-12-14 | 2014-05-20 | Amazon Technologies, Inc. | Providing dynamically-generated bookmarks or other objects which encourage users to interact with a service |
| US20140282205A1 (en)* | 2013-03-14 | 2014-09-18 | Eugene Teplitsky | Apparatus, system and method for electronic book reading |
| CN106471458A (en)* | 2014-08-13 | 2017-03-01 | 谷歌公司 | Smart slider in eBook navigation interface |
| CN111264063A (en)* | 2017-09-22 | 2020-06-09 | 知识产权之桥一号有限责任公司 | Display control devices and computer programs |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050216526A1 (en)* | 2004-03-25 | 2005-09-29 | Canon Kabushiki Kaisha | Document management system and document management method |
| US20060224942A1 (en)* | 2005-03-29 | 2006-10-05 | Fujitsu Limited | Electronic manual display apparatus |
| CN101258461A (en)* | 2005-09-09 | 2008-09-03 | 微软公司 | Reading mode for electronic documents |
| US8732166B1 (en)* | 2006-12-14 | 2014-05-20 | Amazon Technologies, Inc. | Providing dynamically-generated bookmarks or other objects which encourage users to interact with a service |
| WO2008145945A1 (en)* | 2007-05-25 | 2008-12-04 | First Major Assets Limited | Indexing apparatus |
| KR20090014460A (en)* | 2007-08-06 | 2009-02-11 | 브이마크 코리아(유) | How to Advertise, Share, Send and Search Using Multimedia Bookmarks |
| US20120089911A1 (en)* | 2009-03-10 | 2012-04-12 | Intrasonics S.A.R.L. | Bookmarking System |
| CN102073674A (en)* | 2009-11-20 | 2011-05-25 | 索尼公司 | Information processing apparatus, bookmark setting method, and program |
| US20140118800A1 (en)* | 2012-10-26 | 2014-05-01 | Audible, Inc. | Electronic reading position management for printed content |
| US20140282205A1 (en)* | 2013-03-14 | 2014-09-18 | Eugene Teplitsky | Apparatus, system and method for electronic book reading |
| CN103279361A (en)* | 2013-06-17 | 2013-09-04 | 济南大学 | Uniform literature sharing device and method driven by small bookmarks |
| CN106471458A (en)* | 2014-08-13 | 2017-03-01 | 谷歌公司 | Smart slider in eBook navigation interface |
| CN111264063A (en)* | 2017-09-22 | 2020-06-09 | 知识产权之桥一号有限责任公司 | Display control devices and computer programs |
| Publication | Publication Date | Title |
|---|---|---|
| WO2022062788A1 (en) | Interactive special effect display method and terminal | |
| CN110046018A (en) | Show method, apparatus, electronic equipment and the medium of message | |
| WO2019105393A1 (en) | Web page content processing method, apparatus, browser, device and storage medium | |
| CN111104402A (en) | Method, device, electronic equipment and medium for searching data | |
| WO2020211607A1 (en) | Video generation method, apparatus, electronic device, and medium | |
| WO2022134632A1 (en) | Work processing method and apparatus | |
| CN109902089B (en) | Query method and device using heterogeneous index, electronic equipment and medium | |
| CN112770177A (en) | Multimedia file generation method, multimedia file release method and device | |
| CN110853124A (en) | Method, device, electronic equipment and medium for generating GIF dynamic graph | |
| CN112860046B (en) | Method, device, electronic equipment and medium for selecting operation mode | |
| CN112069350A (en) | Song recommendation method, apparatus, device, and computer storage medium | |
| CN110675473A (en) | Method, device, electronic equipment and medium for generating GIF dynamic graph | |
| CN113051485B (en) | Group searching method, device, terminal and storage medium | |
| CN110795660B (en) | Data analysis method, data analysis device, electronic device, and medium | |
| CN114357298A (en) | Information recommendation method and device, computer equipment and storage medium | |
| CN111159551B (en) | User-generated content display method and device and computer equipment | |
| CN110191236B (en) | Song playing queue management method and device, terminal equipment and storage medium | |
| CN112000899A (en) | Display method, device, electronic device and storage medium for scenic spot information | |
| CN114296620A (en) | Information interaction method, device, electronic device and storage medium | |
| CN112084041A (en) | Resource processing method and device, electronic equipment and storage medium | |
| CN114091444B (en) | Text processing method, device, computer equipment and storage medium | |
| CN111158780B (en) | Method, device, electronic device and medium for storing application data | |
| CN114791971A (en) | Information aggregation method, device, equipment and computer readable storage medium | |
| CN112560472B (en) | A method and device for identifying sensitive information | |
| CN111125095B (en) | Methods, devices, electronic equipment and media for adding data prefixes |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information | Country or region after:China Address after:201306 N2025 room 24, 2 New Town Road, mud town, Pudong New Area, Shanghai Applicant after:Shanghai Lianshang Network Technology Group Co.,Ltd. Address before:201306 N2025 room 24, 2 New Town Road, mud town, Pudong New Area, Shanghai Applicant before:SHANGHAI LIANSHANG NETWORK TECHNOLOGY Co.,Ltd. Country or region before:China | |
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20201106 |