Auxiliary memory image generation method, system, device and medium
By extracting and generating auxiliary memory images, combined with voice information, it solves the difficult problem of memorizing classical poems and idioms, achieves intuitive and interactive memory effects, and improves learning efficiency and interest.
Patent Information
- Application Number
- CN202410947681.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Existing technology is difficult to effectively assist in memorizing Chinese classical poems and idioms, especially due to their abstract nature, which makes memorization difficult, and existing methods are ineffective.
By extracting the semantic information and contextual information of character combinations in text information, corresponding image elements are generated, combined with voice information, to form an auxiliary memory image, reducing memory difficulty and improving learning efficiency.
It significantly reduces the difficulty of understanding and memorizing poetry and other texts, improves learning efficiency and interest, enables readers to understand and memorize text content intuitively and accurately, and improves cultural literacy and artistic appreciation.
Smart Images

Figure CN118505857B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent education technology, and in particular to a method and system, device and medium for generating auxiliary memory images. Background Art
[0002] "Imagery" refers to the artistic image created by the unique emotional activities of the creative subject through objective objects. For example, in classical poetry, the scenery and objects described by the poet are objective "images"; and the "emotions" expressed by the scenery and the "will" expressed by the objects are subjective "meanings". The combination of "image" and "meaning" is the so-called "imagery". For example, the word "slanting sun" in ancient poetry, its objective "image" is the entity content in the image is the setting sun, and its "emotions" expressed by the scenery are often used to express gloomy, melancholy, miserable, and sad emotions, such as "slanting sun, grass and trees, ordinary alleys", and "wild grass and flowers beside Zhuque Bridge, sunset at the entrance of Wuyi Lane". By extension, in most literary works and even textual expressions, we can see words or combinations with similar semantic functions. The text has both entity meanings such as a certain object and a certain emotional color, that is, it can reflect a certain context.
[0003] Scientific research results show that image-based memory is often better than text-based memory; especially for some difficult-to-understand or lengthy texts, it is often more difficult for readers to memorize or remember deeply. For example, in the traditional teaching of Chinese classical poetry or some idioms, students are often required to rely on text reading to memorize or recite, but because the content is too abstract, the effect is usually not good, and there is a problem of not being able to remember or remember firmly. For this reason, a technical solution is urgently needed to visualize the abstract concepts in poetry, idioms and other texts to achieve the effect of assisting memory and reduce the difficulty of memory. Summary of the invention
[0004] The technical problem to be solved by the present invention is to overcome the above-mentioned defects in the prior art and provide a method for generating an auxiliary memory image, comprising the following steps:
[0005] Extract character combinations that meet preset requirements from text information;
[0006] Respectively obtaining semantic information and context information of each of the character combinations;
[0007] generating an image element corresponding to the character combination according to the semantic information and the context information;
[0008] An auxiliary memory image corresponding to the text information is generated based on a plurality of the image elements.
[0009] Preferably, the step of generating the image element corresponding to the character combination according to the semantic information and the context information comprises:
[0010] Determining entity content corresponding to the image element according to the semantic information;
[0011] An expression form matching the entity content is determined according to the context information.
[0012] Preferably, the character combination includes an image character combination; and the step of extracting the character combination meeting the preset requirements from the text information includes:
[0013] Using regular expressions to perform word segmentation on the text information to obtain a number of words to be processed;
[0014] Performing part-of-speech recognition processing on the plurality of words to be processed to obtain candidate image character combinations;
[0015] Determining the image character combination from the candidate image character combinations based on a preset text context requirement;
[0016] The step of respectively acquiring the semantic information and context information of each character combination comprises:
[0017] Based on a preset vocabulary knowledge base, a corresponding semantic information label is assigned to each of the image character combinations; based on a sentiment analysis algorithm, the sentiment tendency parameters of each of the image character combinations in the text information are evaluated, and a corresponding context information label is assigned to each of the image character combinations in combination with a predefined sentiment tendency classifier; and the semantic information label and the context information label corresponding to each of the image character combinations are integrated;
[0018] and / or,
[0019] The step of generating an auxiliary memory image corresponding to the text information based on a plurality of the image elements comprises:
[0020] Obtaining an external instruction, wherein the external instruction is used to select a plurality of the image elements and determine at least one of a positioning parameter, a size parameter, and a deformation parameter corresponding to each of the image elements;
[0021] A plurality of the image elements are configured according to the external instruction to generate the auxiliary memory image.
[0022] Preferably, the generating method further comprises:
[0023] Generating voice information corresponding to the text information;
[0024] The voice information and the video of the auxiliary memory image composed of a plurality of the image elements are played synchronously.
[0025] The present invention also provides a system for generating an auxiliary memory image, comprising:
[0026] An extraction module is used to extract character combinations that meet preset requirements from text information;
[0027] An acquisition module, used to respectively acquire semantic information and context information of each character combination;
[0028] A generating module, used for generating an image element corresponding to the character combination according to the semantic information and the context information;
[0029] A combination module is used to generate an auxiliary memory image corresponding to the text information based on a plurality of the image elements.
[0030] Preferably, the generating module is used for:
[0031] Determining entity content corresponding to the image element according to the semantic information;
[0032] An expression form matching the entity content is determined according to the context information.
[0033] Preferably, the character combination includes an image character combination; and the extraction module is used for:
[0034] Using regular expressions to perform word segmentation on the text information to obtain a number of words to be processed;
[0035] Performing part-of-speech recognition processing on the plurality of words to be processed to obtain candidate image character combinations;
[0036] Determining the image character combination from the candidate image character combinations based on a preset text context requirement;
[0037] The acquisition module is used for:
[0038] Based on a preset vocabulary knowledge base, a corresponding semantic information label is assigned to each of the image character combinations; based on a sentiment analysis algorithm, the sentiment tendency parameters of each of the image character combinations in the text information are evaluated, and a corresponding context information label is assigned to each of the image character combinations in combination with a predefined sentiment tendency classifier; and the semantic information label and the context information label corresponding to each of the image character combinations are integrated;
[0039] and / or,
[0040] The combination module is used to: obtain external instructions, and configure a number of the image elements according to the external instructions to generate the auxiliary memory image; wherein the external instructions are used to select a number of the image elements and determine at least one of the positioning parameters, size parameters and deformation parameters corresponding to each of the image elements.
[0041] Preferably, the generation system further comprises:
[0042] A voice module, used to generate voice information corresponding to the text information;
[0043] The playing module is used to synchronously play the voice information and the video composed of a plurality of the image elements to form the auxiliary memory image.
[0044] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for generating an auxiliary memory image when executing the computer program.
[0045] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for generating an auxiliary memory image is implemented.
[0046] The positive progressive effect of the present invention is that the present invention provides a method and system, device and medium for generating auxiliary memory images, which generates corresponding image elements by extracting the semantics and contextual information of text information character combinations, and then combines them into auxiliary memory images, so that the text content can be presented intuitively and accurately. For example, the images in poems and idioms are concretized, intuitive and interactive, which significantly reduces the difficulty of understanding and memorizing poems and other texts, improves the efficiency and fun of learning and mastering them, enables readers to enjoy the beauty of text, and is beneficial to their cultural literacy and artistic appreciation. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 This is a flow chart of a method for generating an auxiliary memory image according to Embodiment 1 of the present invention.
[0048] Figure 2 This is a module diagram of a system for generating auxiliary memory images according to Embodiment 2 of the present invention.
[0049] Figure 3 This is a structural block diagram of an electronic product according to Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0050] The method for generating an auxiliary memory image provided in this embodiment can be executed in an intelligent terminal, a computer terminal, a network device, a chip, a chip module or a similar computing device. The reference to "embodiment" in this application means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.
[0051] It should be understood that the "system", "device", "unit" and / or "module" used herein is a method for distinguishing different components, elements, parts, parts or assemblies at different levels. However, if other words can achieve the same purpose, the words can be replaced by other expressions. As shown in this specification, unless the context clearly indicates an exception, the words "one", "a", "a" and / or "the" do not specifically refer to the singular, but may also include the plural. Generally speaking, the terms "comprises" and "includes" only indicate the inclusion of clearly identified steps and elements, and these steps and elements do not constitute an exclusive list, and the method or device may also include other steps or elements.
[0052] Example 1
[0053] See also Figure 1 As shown, this embodiment specifically provides a method for generating an auxiliary memory image, comprising the following steps:
[0054] S1. Extracting character combinations that meet preset requirements from text information;
[0055] S2. Obtaining semantic information and context information of each character combination respectively;
[0056] S3. Generate image elements corresponding to the character combination according to semantic information and context information;
[0057] S4. Generate an auxiliary memory image corresponding to the text information based on a number of image elements.
[0058] The auxiliary memory images referred to in the present invention are images that can reflect the content of text information. Since they usually help readers understand and remember the text content, they can be used as auxiliary memory images. However, those skilled in the art will understand that the concept of the present invention is not limited to this, that is, the role and connotation of the image are not limited to the scope of auxiliary memory.
[0059] The text information in step S1 may be pre-stored, or may be generated in real time or received from external users, or may be obtained through other means. It is understood that the text information includes but is not limited to text content composed of one or more languages. Accordingly, the preset requirements for character combinations include but are not limited to specific words, phrases or short sentences set based on the corresponding types of text languages. For example, for Chinese poems, preset phrases that can represent the meaning of images may be included. Of course, the preset requirements may also include requirements for character combinations that can be converted into image elements, such as specific names, verbs or adjectives.
[0060] Step S2 obtains the semantic information and contextual information of each character combination respectively; the text can be understood through natural language processing technology or other intelligent analysis technology with semantic recognition function, and the corresponding poems or idioms input by the user are analyzed and recognized to obtain the key image phrases therein. It can be understood that semantic information is the content expressed by the character combination itself, such as "green mountains" and "bright moon"; and contextual information is the content corresponding to the semantic expression content, which can express emotional information. For example, in some phrases that express the imagery of poems, semantic information such as "night" and "brightness" and contextual information such as "tranquility" and "missing" are included, so that this step extracts the core visual and emotional elements of the text content such as poems.
[0061] As a preferred embodiment, the character combination includes an image character combination; step S1 includes:
[0062] Use regular expressions to segment text information and obtain several words to be processed;
[0063] Perform part-of-speech recognition on a number of words to be processed to obtain candidate image character combinations;
[0064] Determine an image character combination from candidate image character combinations based on a preset text context requirement;
[0065] Step S2 includes:
[0066] Based on the preset vocabulary knowledge base, a corresponding semantic information label is assigned to each image character combination; based on the sentiment analysis algorithm, the sentiment tendency parameter of each image character combination in the text information is evaluated, and a corresponding context information label is assigned to each image character combination in combination with a predefined sentiment tendency classifier; and the semantic information label and context information label corresponding to each image character combination are integrated. Among them, the sentiment tendency parameter can be a quantitative parameter used to characterize the sentiment expression tendency of the image character combination in the text information, and the sentiment tendency classifier can be a predefined category result obtained by grading according to the quantitative parameter.
[0067] Specifically, as an implementation method for extracting character combinations such as key image words from text information, there are input characters: input_text (str), which represents the poetry or idiom text input by the user; preset character dictionary: parsed_data (dict), which contains some preset key images and corresponding semantics and contexts; key_images (list), which is a list of key images in the text; semantic_tags (dict) and emotional_tags (dict), which are the semantic information and context information of each image. Accordingly, the algorithm processing logic is as follows:
[0068] a. Preprocessing: Use regular expressions to remove punctuation marks and special characters from the input text, and perform word segmentation to break the text into words or phrases.
[0069] b. Key image identification: that is, using part-of-speech tagging to identify nouns, verbs, and adjectives as potential candidate image character combinations, and combining context analysis to screen out words that are closely related to the theme of the poem as the final image character combination.
[0070] c. Semantic label assignment: that is, searching and assigning the most appropriate semantic label for each key image character combination based on a vocabulary knowledge base such as the WordNet dictionary. For example, "moon" corresponds to "night" and "smile" corresponds to "happiness".
[0071] d. Sentiment label assignment: that is, using sentiment analysis algorithms such as VADER sentiment analyzer to evaluate the sentiment tendency of each image in the context, combined with manually defined rules or machine learning models, to assign sentiment labels to each image character combination, such as "homesickness" corresponds to "missing".
[0072] e. Result integration, that is, integrating the information obtained in the above steps into the parsed_data dictionary for subsequent construction of corresponding image elements.
[0073] Step S3 generates image elements corresponding to the character combination according to semantic information and context information; image elements are specific contents of several images used to construct the final image, and a diversified image element database can be pre-constructed, including image elements corresponding to rich single images, combined images, action images and emotional images, and classified and stored according to semantics and context to ensure the breadth and artistry of the image element library and meet the aesthetic needs of different user groups. The generated image elements can be generated according to the labels parsed from the character combination in the text information such as poems, and the image elements with the highest matching degree can be intelligently selected from the image element material library. The matching process comprehensively considers semantics and context to ensure that the image elements are highly consistent with the artistic conception of the text content such as poems.
[0074] As a preferred implementation, step S3 includes:
[0075] S31. Determine the entity content corresponding to the image element according to the semantic information;
[0076] S32. Determine an expression form that matches the entity content based on the context information.
[0077] Step S31 extracts the entity content in the semantic information, and the obtained entity content can be used to convert into an image element, such as "moon"; step S32 determines one or more expressions corresponding to the entity content according to the context information; specifically, the expression includes but is not limited to adjusting the parameters such as color, brightness, saturation, etc. of the entity content; and adding other corresponding image elements according to the context information. Take the extracted character combination "dark moon" as an example, the semantic information is the moon; the context information is dim and gloomy; step S31 determines the image combination corresponding to the moon according to the semantic information; further, step S32 selects the image element whose expression is the waning moon according to the above context, preferably, it can match the image element corresponding to the context information, such as "dark clouds".
[0078] As a preferred implementation, step S4 includes:
[0079] S41. Obtaining an external instruction, the external instruction is used to select a number of image elements and determine at least one of a positioning parameter, a size parameter and a deformation parameter corresponding to each image element;
[0080] S42. Configure a plurality of image elements according to external instructions to generate an auxiliary memory image.
[0081] Step S4 allows the user to freely combine the matched images through simple dragging, scaling, rotating and other operations to create a visual work that fully expresses the imagery of the poem. It can support multi-layer editing, thereby encouraging users to give full play to their creativity and explore the multiple meanings of the poem in depth.
[0082] As a preferred implementation, the generation method further includes:
[0083] S5. Generate voice information corresponding to the text information;
[0084] S6. Synchronously play the voice information and the video composed of several image elements to form an auxiliary memory image.
[0085] S5 and S6 integrate speech synthesis technology to provide corresponding speech information such as recitation audio for each auxiliary memory image corresponding to the text content, such as each poem; the combination of recitation audio and auxiliary memory image is played synchronously, for example, as the recitation audio is played, the image elements involved are added one by one and finally form an auxiliary memory image, which helps to enhance the reader's visual memory. Furthermore, interactive games such as filling in the blanks and connecting words can be designed based on several image elements of the auxiliary memory image, integrating the learning of poetry into interesting games, effectively improving the memory effect.
[0086] As a specific example, a user such as a child inputs an ancient poem through the system interface, such as "The moon shines brightly in front of the bed, I wonder if it is frost on the ground"; it is parsed, and key images such as "bed", "bright moon", "light", and "frost on the ground" are identified, and semantic labels such as "furniture", "night", "bright", and "cold" are assigned to them, as well as context labels such as "warmth of home", "tranquility", and "coldness". According to the parsed key images and their semantic and context labels, corresponding image elements are provided for matching. For example, "bright moon" matches a series of bright moon images in the night sky, and considering the emotion of "tranquility", gentle cartoon or hand-painted moon images are recommended first. Then, on the user interaction interface of image combination, children can select the matched "bright moon" image, drag and place it near the position representing "bed", adjust the size and angle, and even add "frost on the ground" elements, such as tiny frost flower patterns, to create a picture that matches the artistic conception of the poem. After completing the image combination, the voice reading corresponding to the poem will be played, showing the animation process from poem analysis to image combination, and small games such as "Find Things in the Poem" may pop up. Finding and clicking on image elements directly related to the poem in the picture can further consolidate memory.
[0087] The auxiliary memory image generation method of the present embodiment generates corresponding image elements by extracting the semantic and contextual information of the text information character combination, and then combines them into an auxiliary memory image, which can make the text content intuitive and accurate. For example, the imagery in poems and idioms is visualized and the operation is interactive, which significantly reduces the difficulty of understanding and memorizing poems, idioms and other texts, improves the efficiency and fun of learning and mastering them, and enables readers to enjoy the beauty of text and enhance their personal cultural literacy and artistic appreciation.
[0088] Example 2
[0089] See also Figure 2 This embodiment also provides a system for generating an auxiliary memory image, including:
[0090] Extraction module 1, used to extract character combinations that meet preset requirements from text information;
[0091] Acquisition module 2, used to respectively acquire semantic information and context information of each character combination;
[0092] A generating module 3, used for generating image elements corresponding to the character combination according to semantic information and context information;
[0093] The combination module 4 is used to generate an auxiliary memory image corresponding to the text information based on a plurality of image elements.
[0094] The auxiliary memory images referred to in the present invention are images that can reflect the content of text information. Since they usually help readers understand and remember the text content, they can be used as auxiliary memory images. However, those skilled in the art will understand that the concept of the present invention is not limited to this, that is, the role and connotation of the image are not limited to the scope of auxiliary memory.
[0095] In this embodiment, the text information processed by the extraction module 1 can be pre-stored, or can be generated in real time or received from external users, or obtained through other means. It can be understood that the text information includes but is not limited to text content composed of one or more languages. Accordingly, the preset requirements of character combinations include but are not limited to specific words, phrases or short sentences set based on the corresponding types of text languages. For example, for Chinese poems, preset phrases that can represent the meaning of images can be included. Of course, the preset requirements can also include requirements for character combinations that can be converted into image elements, such as specific names, verbs or adjectives.
[0096] Acquisition module 2 obtains the semantic information and contextual information of each character combination respectively; it can understand the text through natural language processing technology or other intelligent analysis technology with semantic recognition function, and analyze and recognize the poems or idioms input by the user, so as to obtain the key image phrases. Semantic information refers to the content expressed by the character combination itself, such as "green mountains" and "bright moon"; and contextual information refers to the content corresponding to the semantic expression content, which can express emotional information. For example, in some phrases that express the imagery of poems, semantic information such as "night" and "brightness" and contextual information such as "tranquility" and "missing" can be used to extract the core visual and emotional elements of the text content such as poems.
[0097] As a preferred embodiment, the character combination includes an image character combination; the extraction module 1 is used for:
[0098] Use regular expressions to segment text information and obtain several words to be processed;
[0099] Perform part-of-speech recognition on a number of words to be processed to obtain candidate image character combinations;
[0100] Determine an image character combination from candidate image character combinations based on a preset text context requirement;
[0101] Acquisition module 2 is used to:
[0102] Based on a preset vocabulary knowledge base, a corresponding semantic information label is assigned to each image character combination; based on a sentiment analysis algorithm, the sentiment tendency parameter of each image character combination in the text information is evaluated, and a corresponding context information label is assigned to each image character combination in combination with a predefined sentiment tendency classifier; and the semantic information label and context information label corresponding to each image character combination are integrated. Among them, the sentiment tendency parameter can be a quantitative parameter used to characterize the sentiment expression tendency of the image character combination in the text information, and the sentiment tendency classifier can be a predefined category result obtained by grading according to the quantitative parameter.
[0103] Specifically, as an implementation method for extracting character combinations such as key image words from text information, there are input characters: input_text (str), which represents the poetry or idiom text input by the user; preset character dictionary: parsed_data (dict), which contains some preset key images and corresponding semantics and contexts; key_images (list), which is a list of key images in the text; semantic_tags (dict) and emotional_tags (dict), which are the semantic information and context information of each image. Correspondingly, the algorithm processing logic is as follows:
[0104] a. Preprocessing: Use regular expressions to remove punctuation marks and special characters from the input text, and perform word segmentation to break the text into words or phrases.
[0105] b. Key image identification: that is, using part-of-speech tagging to identify nouns, verbs, and adjectives as potential candidate image character combinations, and combining context analysis to screen out words that are closely related to the theme of the poem as the final image character combination.
[0106] c. Semantic label assignment: that is, to find and assign the most appropriate semantic label for each image character combination based on the vocabulary knowledge base. For example, "moon" corresponds to "night" and "smile" corresponds to "happiness".
[0107] d. Sentiment label assignment: that is, using sentiment analysis algorithms such as VADER sentiment analyzer to evaluate the sentiment tendency of each image character combination in the context, combined with manually defined rules or machine learning models, to assign sentiment labels to each image character combination, such as "homesickness" corresponds to "missing".
[0108] e. Result integration: Integrate the information obtained in the above steps into the parsed_data dictionary for subsequent construction of corresponding image elements.
[0109] The generation module 3 generates image elements corresponding to the character combination according to the semantic information and context information; the image elements are the specific contents of several images used to construct the final image, and a diversified image element database can be pre-constructed, including image elements corresponding to rich single images, combined images, action images and emotional images, and classified and stored according to semantics and context to ensure the breadth and artistry of the image element library and meet the aesthetic needs of different user groups. The generated image elements can be based on the labels parsed from the character combination in the text information such as poems, and the image elements with the highest matching degree can be intelligently selected from the image element material library. The matching process comprehensively considers semantics and context to ensure that the image elements are highly consistent with the artistic conception of the text content such as poems.
[0110] As a preferred implementation, the generation module 3 is used for:
[0111] The entity content corresponding to the image element is determined based on the semantic information; the expression form matching the entity content is determined based on the context information.
[0112] The generation module 3 extracts the entity content in the semantic information, and the obtained entity content can be used to convert into an image element, such as "moon"; and determines one or more expressions corresponding to the entity content according to the context information; specifically, the expression includes but is not limited to adjusting the parameters such as color, brightness, saturation, etc. of the entity content; and adding other corresponding image elements according to the context information. Take the extracted character combination "dark moon" as an example, the semantic information is the moon; the context information is dim and gloomy; the generation module 3 determines the image combination corresponding to the moon according to the semantic information, and further selects the image element in which the expression is a waning moon according to the above context, preferably, it can match the image element corresponding to the context information, such as "dark clouds".
[0113] As a preferred embodiment, the combination module 4 is used to: obtain external instructions, configure a number of image elements according to the external instructions to generate an auxiliary memory image; wherein the external instructions are used to select a number of image elements and determine at least one of the positioning parameters, size parameters and deformation parameters corresponding to each image element.
[0114] Combination Module 4 allows users to freely combine matching images through simple dragging, scaling, rotating and other operations to create a visual work that fully expresses the imagery of the poem. It can support multi-layer editing, thereby encouraging users to give full play to their creativity and explore the multiple meanings of poetry in depth.
[0115] As a preferred embodiment, the generation system further includes:
[0116] A voice module 5, used to generate voice information corresponding to the text information;
[0117] The playing module 6 is used to synchronously play the voice information and the video composed of a plurality of image elements to form an auxiliary memory image.
[0118] The auxiliary memory image generation system of the present embodiment generates corresponding image elements by extracting the semantic and contextual information of text information character combinations, and then combines them into auxiliary memory images, which can enable the text content to be presented intuitively and accurately. For example, the imagery in poems and idioms is visualized and the operation is interactive, which significantly reduces the difficulty of understanding and memorizing poems, idioms and other texts, improves the efficiency and fun of learning and mastering them, and enables readers to enjoy the beauty of text and enhance their personal cultural literacy and artistic appreciation.
[0119] Example 3
[0120] Figure 3 The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for generating the auxiliary memory image in the above embodiment is implemented. Figure 3 The electronic device 30 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0121] like Figure 3 As shown, the electronic device 30 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 30 may include, but are not limited to: at least one processor 31, at least one memory 32, and a bus 33 connecting different system components (including the memory 32 and the processor 31).
[0122] The bus 33 includes a data bus, an address bus, and a control bus.
[0123] The memory 32 may include a volatile memory, such as a RAM 321 and / or a cache memory 322 , and may further include a ROM 323 .
[0124] The memory 32 may also include a program tool 325 having a set (at least one) of program modules 324, such program modules 324 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0125] The processor 31 executes various functional applications and data processing by running the computer programs stored in the memory 32, such as the method for generating the auxiliary memory image as described above in the present invention.
[0126] The electronic device 30 may also communicate with one or more external devices 34 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an I / O interface 35. Furthermore, the model generating device may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 36. Figure 3 As shown, the network adapter 36 communicates with other modules of the model-generated device via the bus 33. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0127] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0128] Example 4
[0129] This embodiment also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps in the method for generating an auxiliary memory image in the above embodiment are implemented. The readable storage medium may be more specifically, but not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0130] In a possible implementation, the present invention may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps in the method for generating an auxiliary memory image as described above. The program code for executing the present invention may be written in any combination of one or more programming languages, and the program code may be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device, partially on the remote device, or completely on the remote device.
[0131] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims
1. A method for generating an auxiliary memory image, characterized in that: The steps include: Extract character combinations that meet preset requirements from text information; Respectively obtaining semantic information and context information of each character combination; generating an image element corresponding to the character combination according to the semantic information and the context information; Generating an auxiliary memory image corresponding to the text information based on a plurality of the image elements; The step of generating an image element corresponding to the character combination according to the semantic information and the context information comprises: Determining entity content corresponding to the image element according to the semantic information; Determining, according to the context information, an expression form that matches the entity content; The character combination includes an image character combination; and the step of extracting the character combination that meets the preset requirements from the text information includes: Using regular expressions to perform word segmentation on the text information to obtain a number of words to be processed; Performing part-of-speech recognition processing on the plurality of words to be processed to obtain candidate image character combinations; Determining the image character combination from the candidate image character combinations based on a preset text context requirement; The step of respectively acquiring the semantic information and context information of each character combination comprises: Based on a preset vocabulary knowledge base, a corresponding semantic information label is assigned to each of the image character combinations; based on a sentiment analysis algorithm, the sentiment tendency parameters of each of the image character combinations in the text information are evaluated, and a corresponding context information label is assigned to each of the image character combinations in combination with a predefined sentiment tendency classifier; and the semantic information label and the context information label corresponding to each of the image character combinations are integrated; The step of generating an auxiliary memory image corresponding to the text information based on a plurality of the image elements comprises: Obtaining an external instruction, wherein the external instruction is used to select a plurality of the image elements and determine at least one of a positioning parameter, a size parameter, and a deformation parameter corresponding to each of the image elements; A plurality of the image elements are configured according to the external instruction to generate the auxiliary memory image.
2. The method for generating an auxiliary memory image according to claim 1, characterized in that: The generating method further comprises: Generating voice information corresponding to the text information; The voice information and the video of the auxiliary memory image composed of a plurality of the image elements are played synchronously.
3. A system for generating auxiliary memory images, characterized in that: include: An extraction module is used to extract character combinations that meet preset requirements from text information; An acquisition module, used to respectively acquire the semantic information and context information of each character combination; A generating module, used for generating an image element corresponding to the character combination according to the semantic information and the context information; A combination module, used for generating an auxiliary memory image corresponding to the text information based on a plurality of the image elements; The generation module is used for: Determining entity content corresponding to the image element according to the semantic information; Determining, according to the context information, an expression form that matches the entity content; The character combination includes an image character combination; the extraction module is used for: Using regular expressions to perform word segmentation on the text information to obtain a number of words to be processed; Performing part-of-speech recognition processing on the plurality of words to be processed to obtain candidate image character combinations; Determining the image character combination from the candidate image character combinations based on a preset text context requirement; The acquisition module is used for: Based on a preset vocabulary knowledge base, a corresponding semantic information label is assigned to each of the image character combinations; based on a sentiment analysis algorithm, the sentiment tendency parameters of each of the image character combinations in the text information are evaluated, and a corresponding context information label is assigned to each of the image character combinations in combination with a predefined sentiment tendency classifier; and the semantic information label and the context information label corresponding to each of the image character combinations are integrated; The combination module is used to: obtain external instructions, configure several of the image elements according to the external instructions to generate the auxiliary memory image; the external instructions are used to select several of the image elements and determine at least one of the positioning parameters, size parameters and deformation parameters corresponding to each of the image elements.
4. The system for generating auxiliary memory images according to claim 3, characterized in that: Also includes: A voice module, used to generate voice information corresponding to the text information; The playing module is used to synchronously play the voice information and the video composed of a plurality of the image elements to form the auxiliary memory image.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for generating an auxiliary memory image according to any one of claims 1 to 2 is implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating an auxiliary memory image according to any one of claims 1 to 2 is implemented.
