Detailed Description
Fig. 1 is a flowchart illustrating a method for generating a reading note according to an exemplary embodiment of the invention .
As shown in fig. 1, the method for generating a reading note provided by this embodiment includes:
step 101, receiving note content input by a user.
The user can input reading notes by operating the electronic device, so that the electronic device can receive the reading notes and execute the method provided by the embodiment.
Specifically, the note content can be input by the user through a labeling function of the reading software, or can be input by the user through a highlighting function of the reading software, wherein the labeling function is that the user selects segments of characters in the reading software and selects the labeling function to input the note content of the user, and the highlighting function is that the user selects segments of characters and selects highlighting so that the segments of characters can be highlighted.
, when the user inputs the note content by reading the annotation function of the software, the form of the note content is not limited to text form, but also can be the voice content input by the user.
And 102, analyzing the note content, and determining a feature identifier corresponding to the note content according to an analysis result.
In actual application, the electronic equipment analyzes the note content after receiving the note content. If the note content is in a character form, the note content can be directly analyzed by adopting a semantic recognition algorithm, and if the note content is in a voice form, the voice content can be converted into the character form through the voice recognition function, and then the semantic recognition is carried out on the character form.
The semantic recognition algorithm can be preset, and after the note content is received, the note content is analyzed according to the preset semantic recognition algorithm.
For example, parts of nonsense words, such as ' yes ', thought, feel ' and the like, can be preset, multi-angle analysis is carried out on the remaining words to determine a characteristic mark, for example, emotion analysis can be carried out to determine emotional characteristics in the note content, such as ' sadness, joy, happiness ' and the like.
Specifically, a feature word corresponding to the feature identifier may be preset, for example, the sad emotion feature may include a plurality of words, such as "hurt, cry", and the like, and if the remaining words include the preset feature word, the feature identifier corresponding to the feature word is obtained, and it is determined that the note content corresponds to the feature identifier.
And 103, acquiring a target template associated with the feature identifier, and generating a reading note according to the target template and the note content.
The template may include various types, such as a music template, a picture template, and the like. The music template can be music with original singing or pure music.
In practice, at least labels are preset for the template, and the labels are used for identifying the characteristics of the template, such as "sadness, rain, snow" and the like.
The reading note generation method comprises the steps of obtaining a template associated with the feature identifier according to the corresponding relation between the label and the preset feature identifier, and generating the reading note by combining note content. Through analyzing the note content and acquiring the target template associated with the note content, the template which is more consistent with the characteristics included in the note content can be obtained, so that the style of the generated reading note is more fit with the reading comprehension issued by the user, and the user experience is further improved.
Specifically, if the template includes a picture template, the acquired target picture template may be used as a background pattern of the reading note, and the note content may be displayed on the target picture template. The specific display area of the note content can also be determined according to the pixel value of the target picture template, for example, the note content is displayed at a position with lighter color in the picture. According to the embodiment, the reading note with the picture can be generated according to the note content input by the user, so that the user is more interesting when reading the reading note.
, if the template includes a music template, the acquired target music template can be used as the background music of the reading note, the target music template can be embedded in the reading note, or the target music template and the reading note can be associated, and the background music is played at the same time when the reading note is displayed.
If the note content is in a voice form, a target music template of pure music can be selected, and when the user operation terminal triggers and displays the reading pen, the voice note content of the user and the target music template of the pure music are played at the same time.
In practical application, when the user operation terminal triggers and displays the reading notes, the generated reading notes can be displayed in a card form, and background music is played at the same time.
The method provided by the embodiment is used for generating the reading note, and is executed by the device provided with the method provided by the embodiment, and the device is generally realized in a hardware and/or software mode.
The method for generating the reading note comprises the steps of receiving note content input by a user; analyzing the note content, and determining a feature identifier corresponding to the note content according to an analysis result; and acquiring a target template associated with the feature identifier, and generating a reading note according to the target template and the note content. According to the method provided by the embodiment, the target template which is consistent with the characteristics of the note content input by the user can be determined according to the note content input by the user, and the reading note is generated by combining the target template and the note content, so that the generated reading note has interestingness, and the user experience is further improved.
Fig. 2 is a flowchart illustrating a method for generating a reading note according to another exemplary embodiment of the present invention.
As shown in fig. 2, the method for generating a reading note provided by this embodiment includes:
step 201, receiving note content input by a user.
The specific principle and implementation ofstep 201 are similar to those ofstep 101, and are not described herein again.
Step 202, analyzing the note content, and determining keywords included in the note content.
For example, parts of nonsense words, such as "yes, o, considered, felt" and the like, may be preset, and the remaining words are used as the keywords of the note content.
And step 203, determining a feature identifier corresponding to the note content according to the keyword.
The characteristic identification can belong to at least identification categories including an emotion identification category, a scene identification category, a person identification category, a place identification category and a time identification category.
Specifically, the vocabulary corresponding to the feature identifier may be preset, and it is determined whether the keyword corresponds to the preset vocabulary, and if so, the keyword may be considered to correspond to the feature identifier of the preset vocabulary.
, semantic recognition can be performed on the keywords to determine the feature identifiers corresponding to the keywords, i.e., the feature identifiers corresponding to the note content, a plurality of feature identifiers can be preset, such as "happy, sad", etc., the keywords can be recognized to determine whether they correspond to any feature identifiers, and if so, the note content can be determined to correspond to the feature identifiers, the note content can be composed of a plurality of keywords, and the keywords can correspond to a plurality of feature identifiers, so the note content can correspond to a plurality of feature identifiers.
In practical application, when the feature identifiers are preset, categories can be set for the feature identifiers, for example, an emotion identifier category, a scene identifier category, a person identifier category, a place identifier category and a time identifier category can be set, each mark category comprises at least preset feature identifiers, when the keywords are subjected to semantic recognition, the keywords can be analyzed from the dimensions of the set identifier categories, for example, the keywords are analyzed from the perspective of the emotion categories, the keywords are analyzed from the perspective of places, and the like.
And 204, determining target labels according to the characteristic identifications, and determining the template carrying at least target labels as a preselected template.
The corresponding relation between the characteristic mark and the label can be preset, so that the target label corresponding to the characteristic mark is determined according to the preset corresponding relation, each template carries at least label information, and the label information of the template is preset according to the style and the content of the template.
For example, the feature identifier comprises "sadness, rain, woman, bridge", the label of the template comprises "sadness, city, light", and the template is determined preselected templates.
Step 205, determining a target template in the pre-selected templates according to a preset rule.
The template may include any types including music template and picture template.
For example, 5 pre-selected templates are provided, wherein pre-selected templates carry all target labels, and other templates carry only partial target labels, and the pre-selected templates carrying all target labels are determined as target templates.
In practice, the templates may include any types of music templates, picture templates, if only templates are included, only categories of preselected templates and target templates are determined.
Since different identification categories have different degrees of importance, as alternative embodiments, as shown in fig. 2A, fig. 2A is a flowchart of a method for generating a reading note according to another exemplary embodiment of the present invention , on the basis of fig. 2, step 205 further includes:
step 2051, a weight value of an identifier category to which the feature identifier belongs is obtained.
All the feature identifiers of the reading notes can be acquired, and the weight values are determined according to the categories of the feature identifiers.
Specifically, the weight value of each feature identifier category may be preset, for example, if the emotion identifier is more important, the weight value of the emotion identifier category may be set to be larger.
And step 2052, determining a comprehensive score of the preselected template according to the weight value, and determining a target template in the preselected template according to the comprehensive score.
Specifically, the weighted values of the categories to which the feature identifiers corresponding to each target tag carried in the preselection template belong may be superimposed to obtain a composite score, and then the preselection template with the highest composite score is used as the target template.
, when multiple template types are included, a target template of each type can be determined according to the above steps, for example, if the template types include a music template and a picture template, a target music template and a target picture template are determined according to the above steps, and then a reading note is generated based on the determined target music template and the target picture template.
And step 206, generating a reading note according to the target template and the note content.
Step 206 is similar to step 103 in specific principles and implementation, and is not described herein again.
And step 207, associating the generated reading note with the electronic book operated by the user, so that other users can read the reading note when reading the electronic book.
After the reading note is generated, the electronic book information operated by the user can be acquired, and the reading note is associated with the electronic book. If the device for executing the embodiment is a server, the reading note and the association relationship between the reading note and the reading note can be stored in the server; if the device executing the embodiment is a terminal, the terminal can upload the reading notes and the association relationship between the reading notes and the association relationship to the server so that the server can store the reading notes and the association relationship.
Specifically, when other users download the electronic book for reading or browse the profile of the electronic book, the list of reading notes may be presented in the form of a list, and if the user selects a reading note therein, the reading note including the template, that is, the reading note including the music template and/or the picture template may be displayed, so that the user who has not read the electronic book can learn the electronic book through the notes of the other users.
According to the method for generating the reading note, the data processing amount can be reduced by determining the keyword included in the note content and then determining the characteristic identifier; meanwhile, the target label is determined according to the characteristic mark, the preselected template is further determined, and then the target template is determined, so that the target template matched with the meaning of the note content can be accurately determined, and the style of the generated reading note is closer to the reading comprehension of the user; the generated reading notes are associated with the electronic book, so that the sharing of the reading notes can be realized, and the reading comprehension communication among users is enhanced.
Fig. 3 is a block diagram of a device for generating a reading note according to an exemplary embodiment of the present invention.
As shown in fig. 3, the apparatus for generating a reading note provided in this embodiment includes:
a receivingmodule 31, configured to receive note content input by a user;
theanalysis module 32 is configured to analyze the note content, and determine a feature identifier corresponding to the note content according to an analysis result;
an obtainingmodule 33, configured to obtain a target template associated with the feature identifier;
and the generatingmodule 34 is configured to generate a reading note according to the target template and the note content.
The receivingmodule 31, the analyzingmodule 32, the obtainingmodule 33 and the generatingmodule 34 are connected in sequence.
The reading note generation device provided by the embodiment comprises a note content receiving unit, a note processing unit and a note processing unit, wherein the note content receiving unit receives note content input by a user; analyzing the note content, and determining a feature identifier corresponding to the note content according to an analysis result; and acquiring a target template associated with the feature identifier, and generating a reading note according to the target template and the note content. The device provided by the embodiment can determine the template according with the characteristics of the note content input by the user, and generates the reading note by combining the template and the note content, so that the generated reading note has interestingness, and the user experience is improved.
The specific principle and implementation of the device for generating reading notes provided by this embodiment are similar to those of the embodiment shown in fig. 1, and are not described herein again.
Fig. 4 is a block diagram of a device for generating a reading note according to another exemplary embodiment of the present invention.
As shown in fig. 4, on the basis of the foregoing embodiment, in the apparatus for generating a reading note provided by this embodiment, theanalysis module 32 includes:
an analyzingunit 321, configured to analyze the note content and determine a keyword included in the note content;
a feature identifier determining unit 322, configured to determine, according to the keyword, a feature identifier corresponding to the note content;
optionally, the feature identifier belongs to at least identifier categories:
emotion identification type, scene identification type, person identification type, place identification type and time identification type.
The analyzingunit 321 is connected to the feature identifier determining unit 322.
Optionally, the obtainingmodule 33 includes:
a preselectedtemplate determining unit 331, configured to determine target tags according to the feature identifiers, and determine a template carrying at least target tags as a preselected template;
a targettemplate determining unit 332, configured to determine a target template in the preselected templates according to a preset rule.
The preselectedtemplate determining unit 331 is connected to the targettemplate determining unit 332.
Optionally, the targettemplate determining unit 332 is specifically configured to:
acquiring a weight value of an identification category to which the feature identification belongs;
and determining a comprehensive score of the preselected template according to the weight value, and determining the target template in the preselected template according to the comprehensive score.
Optionally, the apparatus provided in this embodiment further includes:
the associating module 35 is configured to associate the generated reading note with an electronic book operated by a user, so that when another user reads the electronic book, the reading note can be read.
The association module 35 is connected to thegeneration module 34.
The specific principle and implementation of the device for generating reading notes provided by this embodiment are similar to those of the embodiment shown in fig. 2-2A, and are not described herein again.
The embodiment further provides types of generating equipment for reading notes, which includes:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement any methods as described above.
It will be understood by those skilled in the art that all or a portion of the steps of implementing the various method embodiments described above may be performed by hardware associated with program instructions, and that the program may be stored in a computer readable storage medium, which when executed performs the steps comprising the various method embodiments described above, including ROM, RAM, magnetic or optical disks, among various media capable of storing program code.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.